Summary: | Portage ignores exit status of filter-bash-environment.py | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Rajiv Aaron Manglani (RETIRED) <rajiv> |
Component: | Core - Ebuild Support | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | avenj, esigra, python, ramereth, schwupp-diwupp, uhlar |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 335925 | ||
Attachments: | portage debug output |
Description
Rajiv Aaron Manglani (RETIRED)
2010-05-23 08:22:31 UTC
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-3.4.6, glibc-2.5-r4, 2.6.25.14 i686) ================================================================= System uname: Linux-2.6.25.14-i686-AMD_Athlon-TM-_XP_2500+-with-glibc2.0 Timestamp of tree: Sun, 23 May 2010 07:15:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r14, 2.5.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r6 sys-apps/baselayout: 1.11.14-r8 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc: 3.4.6-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow bash-completion berkdb bzip2 cli cracklib crypt cups curl cxx dri fortran gdbm iconv mmx modules mudflap ncurses nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs unicode x86 xorg zaptel zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Created attachment 232553 [details]
portage debug output
portage debug output of command `PORTAGE_DEBUG=1 emerge -av1 python`
I completely uninstalled dev-lang/python:2.6 and I was able to install dev-lang/python-2.6.4-r1 without any problems. this box has only 2.4.x and 2.5.x also. upgrading 2.4.4-r14 to 2.4.6 didnt help. could the issue be with Portage 2.1.6.13 ? on this broken box, notice this line: >>> Preparing source in /var/tmp/portage/dev-lang/python-2.6.4-r1/work ... on a working box, the install says: >>> Preparing source in /var/tmp/portage/dev-lang/python-2.6.4-r1/work/Python-2.6.4 ... seems like python2.6* needed EAPI=2 which is only provided by python2.6* I've hit this bug at the OSUOSL and has left me unable to upgrade python on the rest of our machines. Please fix ASAP if possible! The problem was caused by combination of 2 bugs in Portage: - Portage wasn't properly handling EPYTHON variable. This bug was fixed in Portage >=2.1.7.1. - Portage was ignoring exit status of filter-bash-environment.py. Failure of filter-bash-environment.py was causing that some variables (e.g. S) were empty. This bug is present in all released versions of Portage. I have fixed it in Portage: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff;h=451f102ad2e3bf62c9c6bdf5b1786c88352bad10 I have added a workaround in dev-lang/python ebuilds. *** Bug 320885 has been marked as a duplicate of this bug. *** This is in 2.2_rc68, but I'll leave this bug open until it's in an unmasked version. This is fixed in 2.1.9. |