Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340609 - sys-apps/file-5.04 USE=python / distutils/python.eclass? - invalid atom: dev-lang/python:2.6
Summary: sys-apps/file-5.04 USE=python / distutils/python.eclass? - invalid atom: dev-...
Status: RESOLVED DUPLICATE of bug 340387
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://git.overlays.gentoo.org/gitweb...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 01:42 UTC by Jeroen Roovers (RETIRED)
Modified: 2010-10-12 05:58 UTC (History)
1 user (show)

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


Attachments
sys-apps:file-5.04:20101012-010219.log [x86~stable,fail] (20101012-010219.log,40.95 KB, text/plain)
2010-10-12 01:45 UTC, Jeroen Roovers (RETIRED)
Details
environment file (environment,213.12 KB, text/plain)
2010-10-12 02:18 UTC, Jeroen Roovers (RETIRED)
Details
Patch to set EAPI=1 (file-5.04.ebuild.patch,599 bytes, patch)
2010-10-12 02:40 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2010-10-12 01:42:49 UTC
Seems to be an EAPI problem. Compare bug #286063.

make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-5.04/work/file-5.04/doc'
Making all in python
make[2]: Entering directory `/var/tmp/portage/sys-apps/file-5.04/work/file-5.04/python'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-5.04/work/file-5.04/python'
make[2]: Entering directory `/var/tmp/portage/sys-apps/file-5.04/work/file-5.04'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-5.04/work/file-5.04'
make[1]: Leaving directory `/var/tmp/portage/sys-apps/file-5.04/work/file-5.04'
invalid atom: dev-lang/python:2.6
 * ERROR: sys-apps/file-5.04 failed:
 *   unexpected portageq exit code: 2
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 5485:  Called distutils_src_compile
 *   environment, line 1550:  Called python_execute_function 'distutils_building'
 *   environment, line 4080:  Called _python_calculate_PYTHON_ABIS
 *   environment, line  761:  Called _python_final_sanity_checks
 *   environment, line  862:  Called has_version 'dev-lang/python:2.6'
 *     ebuild.sh, line  198:  Called die
 * The specific snippet of code:
 *                      die "unexpected portageq exit code: ${retval}"


Tue Oct 12 03:41:47 CEST 2010
Portage 2.2_rc92 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1-JeR i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-JeR-i686-AMD_Athlon-TM-_XP_2500+-with-gentoo-1.12.13
Timestamp of tree: Mon, 11 Oct 2010 15:45:03 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3, 2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo JeR
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -Wall -ggdb -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/distcc/bin /usr/share/X11/app-defaults/XTerm /usr/share/X11/app-defaults/XTerm-color /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -Wall -ggdb -march=athlon-xp"
DISTDIR="/newaches/gentoo/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages metadata-transfer news notitles parallel-fetch protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ "
LANG="en_GB"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en en_GB nl"
MAKEOPTS="-j10"
PKGDIR="/keeps/gentoo/packages/astrid"
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="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acpi alsa asf audiofile bash-completion berkdb bl boost branding bzip2 cairo cdda cddb cdio cdparanoia cdr chroot cli cpath cracklib crypt cscope css cups curl custom-cflags custom-cxxflags cxx dbus dga dillo divx dri dts dv dvd dvdr dvdread edl elf emboss encode exif extensions fame fbcon ffmpeg fftw flac flash fontconfig fontforge foomaticdb fortran freetype gdbm geoip ggi gif gimpprint glib glut gmedia gnokii gnutls gpm grp gs gstreamer gtk gtk2 hog iconv id3tag idn imlib inkjar ipv6 jingle jpeg ladspa lcms libcaca libsamplerate live lm_sensors logrotate lua lzo mad matroska midi mikmod mjpeg mmx mng modplug modules mozilla mozsvg mozxmlterm mp3 mp4 mpeg mplayer mudflap multislot musepack mvl ncurses nethack network network-cron nforce2 nl nls nptl nptlonly nsplugin nss nvidia offensive ogg opengl openmp openssl optimisememory pam pango pcre pda pdf perl physfs plotutils png ppds pppd python qpak qt3support quicktime readline realmedia reflection rtc rtsp ruby samba savedconfig server session sftplogging shout skins smux snmp speex spell sse ssl stream svg sysfs syslog tcpd test tetex tga theora threads tiff truetype unicode upnp usb userlocales utils v4l v4l2 vcd vidix vim visualizer vlm vorbis wad web webdav-neon win32codecs winbind wmp x264 x86 xanim xcb xcomposite xml xml2 xorg xosd xterm-color xulrunner xv xvid xvmc 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 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" 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 evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB nl" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia via" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-12 01:45:10 UTC
Created attachment 250295 [details]
sys-apps:file-5.04:20101012-010219.log [x86~stable,fail]
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-12 02:18:33 UTC
Created attachment 250303 [details]
environment file
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-12 02:31:24 UTC
 *   environment, line  862:  Called has_version 'dev-lang/python:2.6'

That executes so in _python_final_sanity_checks():
            if ! has_version "$(python_get_implementational_package)"; then
                die "$(python_get_implementational_package) is not installed";
            fi;

but it never dies, because python_get_implementational_package() which does:

    if [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "CPython" ]]; then
        echo "dev-lang/python:${PYTHON_ABI}"
    [...]

therefore assuming EAPI=1 while the ebuild has an implicit EAPI=0.

Correct me if I'm wrong. It does look like it's just portage-2.2 that dies here, though:

astrid /keeps/gentoo/local/app-portage/foobar # ebuild foobar-2.ebuild setup
 * Package:    app-portage/foobar-2
 * Repository: JeR
 * USE:  elibc_glibc kernel_linux test userland_GNU x86
invalid atom: dev-lang/python:2.6
 * ERROR: app-portage/foobar-2 failed:
 *   unexpected portageq exit code: 2
 * 
 * Call stack:
 *         ebuild.sh, line  56:  Called pkg_setup
 *   foobar-2.ebuild, line   9:  Called has_version 'dev-lang/python:2.6'
 *         ebuild.sh, line 198:  Called die
 * The specific snippet of code:
 *                      die "unexpected portageq exit code: ${retval}"
 * 
 * If you need support, post the output of 'emerge --info =app-portage/foobar-2',
 * the complete build log and the output of 'emerge -pqv =app-portage/foobar-2'.
 * This ebuild is from an overlay named 'JeR': '/keeps/gentoo/local/'
 * The complete build log is located at '/keeps/gentoo/emergelogs/astrid/app-portage:fo
obar-2:20101012-022952.log'.                                                            * The ebuild environment file is located at '/var/tmp/portage/app-portage/foobar-2/tem
p/die.env'.                                                                             * S: '/var/tmp/portage/app-portage/foobar-2/work/foobar-2'
astrid /keeps/gentoo/local/app-portage/foobar # cat foobar-2.ebuild 
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

pkg_setup() {
        has_version dev-lang/python:2.6
}
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-12 02:40:21 UTC
Created attachment 250309 [details, diff]
Patch to set EAPI=1

A simple and safe fix, although I think there's more to it than this.
Comment 5 Zac Medico gentoo-dev 2010-10-12 02:41:42 UTC
(In reply to comment #3)
> Correct me if I'm wrong. It does look like it's just portage-2.2 that dies
> here, though:

That's right, but it will be reduced to a eqawarn message in the next portage release.
Comment 6 Zac Medico gentoo-dev 2010-10-12 02:45:10 UTC
(In reply to comment #4)
> Created an attachment (id=250309) [details]
> Patch to set EAPI=1
> 
> A simple and safe fix, although I think there's more to it than this.

That's the correct fix. There aren't many differences between EAPI 0 and 1, so there's not much that you need to account for:

http://dev.gentoo.org/~zmedico/portage/doc/portage.html#package-ebuild-eapi-1
Comment 7 SpanKY gentoo-dev 2010-10-12 05:57:33 UTC

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