This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author djc
Recipients djc
Date 2009-09-22.09:21:56
SpamBayes Score 1.3074215e-07
Marked as misclassified No
Message-id <1253611318.55.0.148600850079.issue6965@psf.upfronthosting.co.za>
In-reply-to
Content
I have a bug report in the Gentoo tracker
(http://bugs.gentoo.org/show_bug.cgi?id=221183):

"This is a rather strange request, but please bear me.
While building Posix module, python checks (among others) for
tmpfile, tmpnam and tmpnam_r
however man pages state explicitly, that in case tmpfile is available, other
two should not be used
if libpython2.5.a is built with either of them, linker complains each
time it's
added

While this doesn't break anything, it's still a bit annoying.
so I propose to remove functionality as an enhancement:
to change in Modules/posixmodule.c
#ifdef HAVE_TMPNAM
to
#ifdef HAVE_TMPNAM && !defined(HAVE_TMPFILE)

Your thoughts?"

man 3 tmpnam state "Never use this function.  Use mkstemp(3) or
tmpfile(3) instead.".

Not sure whether this is exposed anywhere, but I figured this bug would
be better handled upstream from Gentoo.
History
Date User Action Args
2009-09-22 09:21:58djcsetrecipients: + djc
2009-09-22 09:21:58djcsetmessageid: <1253611318.55.0.148600850079.issue6965@psf.upfronthosting.co.za>
2009-09-22 09:21:57djclinkissue6965 messages
2009-09-22 09:21:56djccreate