Created attachment 384910 [details] emerge --info output Trying to emerge sys-apps/portage-2.2.13, I get the traceback below. It appears that the ebuild tries to compile some package with all Python implementations listed in PYTHON_COMPAT in the ebuild, regardless of whether they are actually present on the system. Ebuild excerpt: --------------- # Recompile the emaint module with lower optimization than the # distutils-r1 default, since emaint breaks when __doc__ is # optimized away. local python d for python in "${PYTHON_COMPAT[@]}" ; do python=${python/_/.} d=${EPREFIX}/usr/$(get_libdir)/${python}/site-packages/portage/emaint "${EPREFIX}/usr/bin/${python}" -O -m compileall -q -f -d "${d}" "${D%/}${d}" || die done In my case, it tries to call /usr/bin/pypy which is not present. Traceback: ---------- running install_egg_info Writing /var/tmp/portage/sys-apps/portage-2.2.13/image//_python3.3/usr/lib64/python3.3/site-packages/portage-2.2.13-py3.3.egg-info * python2_7: running distutils-r1_run_phase python_install_all /var/tmp/portage/sys-apps/portage-2.2.13/temp/environment: line 3428: /usr/bin/pypy: No such file or directory * ERROR: sys-apps/portage-2.2.13::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 3704: Called distutils-r1_src_install * environment, line 1199: Called _distutils-r1_run_common_phase 'python_install_all' * environment, line 304: Called multibuild_for_best_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all' * environment, line 2412: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all' * environment, line 2437: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install_all' * environment, line 2435: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install_all' * environment, line 746: Called distutils-r1_run_phase 'python_install_all' * environment, line 1162: Called python_install_all * environment, line 3428: Called die * The specific snippet of code: * "${EPREFIX}/usr/bin/${python}" -O -m compileall -q -f -d "${d}" "${D%/}${d}" || die; * * If you need support, post the output of `emerge --info '=sys-apps/portage-2.2.13::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-apps/portage-2.2.13::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-apps/portage-2.2.13/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.2.13/temp/environment'. * Working directory: '/var/tmp/portage/sys-apps/portage-2.2.13/work/portage-2.2.13' * S: '/var/tmp/portage/sys-apps/portage-2.2.13/work/portage-2.2.13'
Created attachment 384936 [details] build.log same here, when upgrading from 2.2.12 to 2.2.13: 1st run of emerge -1v portage fails (build.log attached) 2nd run is successful (same on another ~amd64 system) Portage 2.2.12 (python 3.3.5-final-0, hardened/linux/amd64/no-multilib/selinux, gcc-4.8.3, glibc-2.19-r1, 3.15.10-hardened-r2 x86_64) ================================================================= System uname: Linux-3.15.10-hardened-r2-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.2 KiB Mem: 32937748 total, 31321980 free KiB Swap: 0 total, 0 free Timestamp of tree: Wed, 17 Sep 2014 13:45:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p47 dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.1 dev-util/cmake: 2.8.12.2-r2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.1 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=corei7-avx -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/" INSTALL_MASK="/lib/systemd /lib64/systemd /usr/lib/systemd /usr/lib64/systemd /etc/systemd" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync11.de.gentoo.org/gentoo-portage/" USE="X acl acpi alsa amd64 avx berkdb bindist bzip2 cli consolekit cracklib crypt cxx dbus dri gdbm glamor hardened iconv ipv6 justify kde mmx modules ncurses nls nptl open_perms opengl openmp pam pax_kernel pcre policykit pulseaudio qt3support qt4 readline selinux session sse sse2 sse4 sse4_1 ssl ssse3 tcpd udev udisks unconfined unicode urandom vdpau wayland xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
This bug was my mistake, and it's fixed in CVS already, so if you sync again then you will get the fixed ebuild: 17 Sep 2014; Zac Medico <zmedico@gentoo.org> portage-2.2.13.ebuild: Fix last commit to account for PYTHON_TARGETS. 17 Sep 2014; Zac Medico <zmedico@gentoo.org> portage-2.2.13.ebuild: Recompile the emaint module with lower optimization than the distutils-r1 default, since emaint breaks when __doc__ is optimized away.
Works nicely now, thanks!
(In reply to Georg Brandl from comment #3) > Works nicely now, thanks! Great, thanks for testing. :)