Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209163 - dev-lang/python-2.5.1-r4 IPv6 tests broken?
Summary: dev-lang/python-2.5.1-r4 IPv6 tests broken?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: Normal minor (vote)
Assignee: Gentoo non-Linux Team
URL: http://files.irix-tools.homeunix.net/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-06 18:20 UTC by Stuart Shelton
Modified: 2008-12-27 18:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-02-06 18:20:50 UTC
Building python with USE="ipv6" reveals some anomolies on IRIX:

Firstly, we do see:

checking for grep that handles long lines and -e... /opt/portage/usr/bin/grep
checking for egrep... /opt/portage/usr/bin/grep -E

... but then we have:

checking if --enable-ipv6 is specified... yes
checking ipv6 stack type... ./configure[14163]: /usr/xpg4/bin/grep:  not found
unknown

... which looks as if it thinks we're Solaris.  This appears to be on line 14163 of the Makefile, where '/usr/xpg4/bin/grep' is hardcoded.  This should be patched for prefix use, at least.

Later, the build fails with:

checking for getaddrinfo... yes
checking getaddrinfo bug... buggy
Fatal: You must get working getaddrinfo() function.
       or you can specify "--disable-ipv6".
make: *** No targets specified and no makefile found.  Stop.

Which I'm happy to believe, except that IRIX does support IPv6 and no other packages complained....

After a bit of digging, I found http://code-bear.com/bearlog/2005/03/16/fun-with-makefiles-tonight/ which seems to report the exact same issue on Mac OS X Server.  Having said that, this report is from 2005 and I can't find the same text in any of python's Makefiles, suggesting that this particular bug has been fixed (or, at least, the Makefile changed).

I'll dig through the configure script and try to find out what it's choking on, to see whether the error is spurious or not.
Comment 1 Fabian Groffen gentoo-dev 2008-02-12 10:40:00 UTC
from configure.in:

        solaris)
            if test -f /etc/netconfig; then
                          if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then

So that check should be axed.  The check suggests it simply runs only for the detected os, but in reality it simply loops over all known os/implementations for ipv6 to see if one works.

I patched this now, as for configure thinking your IRIX's ipv6 isn't good enough... looking at the AC_TRY_RUN check, that may be reasonable.  So we could mask the ipv6 flag on IRIX, unless you can come up with a patch which teaches python to do proper ipv6 on IRIX.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-19 18:57:26 UTC
Same issue on:
dev-lang/python-2.5.2-r2 ?

If so, I feel like use.mask ipv6 for python on IRIX seems reasonable. But, chances are if you hit it in the first place that you want ipv6, right? ;-)
Comment 3 Stuart Shelton 2008-05-23 15:24:15 UTC
Yep - same problem on Python-2.5.2-r2.

Find config.log here: http://files.irix-tools.homeunix.net/irix/config.log

IRIX does (obviously) have getaddrinfo() and has a full IPv6 stack and headers.  INET6_ADDRSTRLEN is defined in <netinet/in.h> so I'm not sure why configure isn't seeing it (it isn't using '-nostdinc' either...)

A number of packages do work with USE=ipv6 (dev-libs/apr, net-misc/wget, x11-libs/libXmu, dev-libs/libxml2, net-misc/rsync) so this appears to be a python bug - USE="ipv6" should be masked for this package, but not for all IRIX packages.
Comment 4 Fabian Groffen gentoo-dev 2008-12-27 18:44:53 UTC
ipv6 masked for python, thanks