Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410665

Summary: python eclass tries to compile/install for every entry of USE_PYTHON, also the deps are not checked/met
Product: Gentoo Linux Reporter: Thomas Sachau <tommy>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Sachau gentoo-dev 2012-04-03 15:41:12 UTC
This is probably some issue in the python eclass, i will just copy the output here:

>>> Emerging (1 of 1) dev-libs/boost-1.48.0-r1
 * boost_1_48_0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                                                                                               [ ok ]
>>> ABI=amd64
 * ERROR: dev-libs/boost-1.48.0-r1 failed (setup phase):
 *   dev-lang/python:2.6 is not installed
 * 
 * Call stack:
 *                ebuild.sh, line  86:  Called pkg_setup
 *   boost-1.48.0-r1.ebuild, line 107:  Called python_pkg_setup
 *            python.eclass, line 431:  Called _python_calculate_PYTHON_ABIS
 *            python.eclass, line 879:  Called _python_final_sanity_checks
 *            python.eclass, line 363:  Called die
 * The specific snippet of code:
 *   				die "$(python_get_implementational_package) is not installed"

emerge -pv boost:

[ebuild   R    ] dev-libs/boost-1.48.0-r1  USE="eselect python -debug -doc -icu -mpi -static-libs -test -tools" MULTILIB_ABI="amd64 x86" 0 kB

Since boost has no explicit dependency on python:2.6 and the installed python:2.7 does satisfy the python dependency, python:2.6 got depcleaned resulting in preserved libs for boost. After trying to recompile boost, i got the above message.

emerge --info:


Portage 2.2.0_alpha98-r1 (hardened/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 2.6.32-gentoo-r41 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r41-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sa 3. Dez 16:06:39 CET 2011
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo enlightenment multilib sunrise Meins
Installed sets: @enlightenment, @fonts, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/home/thomas/daten/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-multilib metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.UTF-8@euro"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j5 --load-average=8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/thomas/daten"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage/layman/multilib-portage /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="cvs://tommy@cvs.gentoo.org:/var/cvsroot"
USE="3dnow X alsa amd64 berkdb cli cracklib crypt cups custom-cflags custom-cxxflags custom-optimization cxx dri gpm hardened java5 java6 justify mmx modules mudflap ncurses nls nptl nptlonly nsplugin ogg openmp pam pax_kernel pppd readline scanner session sse sse2 ssl sysfs tcpd unicode urandom v4l vorbis xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" multilib_abi="amd64 x86"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Gilbert gentoo-dev 2012-04-03 16:01:13 UTC
Adding Arfrever and myself as the last to touch that.
Comment 2 Mike Gilbert gentoo-dev 2012-04-03 16:19:38 UTC
I think this is simply happening because you have USE_PYTHON="2.6 ..." but do not have python-2.6 installed.

We could probably make that throw a more useful error, but that's a different bug.
Comment 3 Thomas Sachau gentoo-dev 2012-04-03 21:37:33 UTC
Adjusting title and changing assignee

This should still be fixed, even if the current python eclass makes it hard to understand and fix issues without introducing new ones.
Comment 4 DaboD 2012-04-21 15:32:48 UTC
USE_PYTHON is troublesome. Especially with binary packages.

If packages build with USE_PYTHON="2.7 3.1 3.2", and try to install these packages into the root with USE_PYTHON="2.7 3.1" and python:2.7 python:3.1 installed, installation fails.

I think there are three approach to solve this problem
1.USE_PYTHON should be treat as a kind of dependency
2.Can portage drop the python:3.2 part with warning?
3.Just install all files without check python versions.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-02 14:17:31 UTC

*** This bug has been marked as a duplicate of bug 402813 ***