Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288110 - dev-lang/python-{2.5.4-r3,2.6.4,3.1.1-r1} fails to build on uclibc
Summary: dev-lang/python-{2.5.4-r3,2.6.4,3.1.1-r1} fails to build on uclibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue7589
Whiteboard:
Keywords:
: 299808 301281 303655 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-07 19:46 UTC by Radson Santos
Modified: 2010-02-06 09:16 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,132.58 KB, text/plain)
2009-10-08 11:53 UTC, Radson Santos
Details
emerge --info out (emerge_--info.txt,2.62 KB, text/plain)
2009-10-08 11:54 UTC, Radson Santos
Details
python-2.6.4-uclibc-no-nis.log (python-2.6.4-uclibc-no-nis.log,179.59 KB, text/plain)
2010-01-16 10:07 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radson Santos 2009-10-07 19:46:34 UTC
Hello folks,

The package python-2.5.4-r3 does not compile in a chroot environment using the profile of uclibc. I'm using stage3-uclibc.

# emerge -pv python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] dev-lang/python-2.5.4-r3  USE="ncurses readline ssl threads xml -berkdb -build -doc -examples -gdbm -ipv6 -sqlite -tk -ucs2 -wininst" 0 kB 

-----------------
The break point:
changing mode of build/scripts-2.5/smtpd.py from 644 to 755
make: *** [sharedmods] Error 1
 * 
 * ERROR: dev-lang/python-2.5.4-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3975:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/python-2.5.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-2.5.4-r3/temp/environment'.
 * 
---------------------
make.conf:

CFLAGS="-Os -mtune=i386 -pipe"
CXXFLAGS="-Os -mtune=i386 -pipe"
CHOST="i386-gentoo-linux-uclibc"
FEATURES="ccache buildpkg"
PKGDIR="${PORTDIR}/packages/uclibc"

	
======================
	
I am following the steps in the wiki (http://en.gentoo-wiki.com/wiki/Tiny_Gentoo). 

I searched something about the problem and did not find results. Someone had the same problem?
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-10-07 19:50:44 UTC
Please attach the complete build.log
Comment 2 Radson Santos 2009-10-08 11:53:22 UTC
Created attachment 206433 [details]
build.log
Comment 3 Radson Santos 2009-10-08 11:54:18 UTC
Created attachment 206435 [details]
emerge --info out
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-08 12:04:05 UTC
Can you reproduce this bug with dev-lang/python-2.6.3?
Comment 5 Radson Santos 2009-10-08 12:50:10 UTC
# emerge =python-2.6.3
Calculating dependencies \
!!! All ebuilds that could satisfy "=dev-lang/python-2.6.3" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/python-2.6.3 (masked by: EAPI 2)

The current version of portage supports EAPI '1'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see MASKED PACKAGES section in the emerge man page or 
refer to the Gentoo Handbook.
-------------------------------------

I tried to unmask it, but without success.


(In reply to comment #4)
> Can you reproduce this bug with dev-lang/python-2.6.3?
> 

Comment 6 Radson Santos 2009-10-09 18:15:08 UTC
Hi,

I tried another tutorial[1], following other steps and got the same error.
I used the profile "uclibc/x86" for both. There is the possibility of an error in the profile?

Thanks!

[1] http://www.bulah.com/embedded-guide.html
Comment 7 dougztr 2009-10-19 08:43:00 UTC
This bug is caused by the nismodule failing. Uclibc provides a stub libnsl which Python detects and then trys to create the module.

You can work around this by creating the following file:

/etc/portage/env/dev-lang
<code>
PYTHON_DISABLE_MODULES=nis
</code>
Comment 8 Radson Santos 2009-10-22 11:49:46 UTC
Thank you,

After performing the procedure indicated, could finish the construction of the chroot environment.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-23 15:33:49 UTC
This bug hasn't been fixed yet.
Comment 10 A. Craig West 2009-12-18 05:22:50 UTC
I am able to reproduce this with python-2.6.4, and the suggested workaround does work. The bug still needs to be fixed, though...
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-21 06:41:42 UTC
Does this bug affect 3.1 slot?
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-23 00:19:37 UTC
Please attach build logs of python:2.6 and python:3.1.
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-26 14:38:32 UTC
It's better to create a patch for setup.py, which will cause that setup.py will automatically disable building of nis module, when required headers are absent.
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-30 03:03:34 UTC
My patch has been applied in upstream repository.
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-07 15:13:46 UTC
*** Bug 299808 has been marked as a duplicate of this bug. ***
Comment 16 SpanKY gentoo-dev 2010-01-16 10:07:38 UTC
Created attachment 216664 [details]
python-2.6.4-uclibc-no-nis.log

python-2.6.4 still fails and it's the current stable version
Comment 17 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-17 17:06:04 UTC
*** Bug 301281 has been marked as a duplicate of this bug. ***
Comment 18 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-26 18:54:44 UTC
Fixed in 2.5.4-r4, 2.6.4-r1 and 3.1.1-r1.
Comment 19 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-06 09:16:07 UTC
*** Bug 303655 has been marked as a duplicate of this bug. ***