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?
Please attach the complete build.log
Created attachment 206433 [details] build.log
Created attachment 206435 [details] emerge --info out
Can you reproduce this bug with dev-lang/python-2.6.3?
# 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? >
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
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>
Thank you, After performing the procedure indicated, could finish the construction of the chroot environment.
This bug hasn't been fixed yet.
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...
Does this bug affect 3.1 slot?
Please attach build logs of python:2.6 and python:3.1.
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.
My patch has been applied in upstream repository.
*** Bug 299808 has been marked as a duplicate of this bug. ***
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
*** Bug 301281 has been marked as a duplicate of this bug. ***
Fixed in 2.5.4-r4, 2.6.4-r1 and 3.1.1-r1.
*** Bug 303655 has been marked as a duplicate of this bug. ***