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

Bug 296354

Summary: sys-apps/pkgcore-0.5.5 fails to compile
Product: Gentoo Linux Reporter: Robin Johnson <robbat2>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: major CC: ferringb
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-12-09 22:35:09 UTC
>>> Emerging (19 of 49) sys-apps/pkgcore-0.5.5
 * pkgcore-0.5.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                        [ ok ]
 * checking ebuild checksums ;-) ...                                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                                          [ ok ]
 * CPV:  sys-apps/pkgcore-0.5.5
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
>>> Unpacking source...
>>> Unpacking pkgcore-0.5.5.tar.bz2 to /dev/shm/portage/sys-apps/pkgcore-0.5.5/work
>>> Source unpacked in /dev/shm/portage/sys-apps/pkgcore-0.5.5/work
>>> Compiling source in /dev/shm/portage/sys-apps/pkgcore-0.5.5/work/pkgcore-0.5.5 ...
python2.6 setup.py build
Traceback (most recent call last):
  File "setup.py", line 14, in <module>
    from snakeoil import distutils_extensions as snk_distutils
ImportError: No module named snakeoil
 * ERROR: sys-apps/pkgcore-0.5.5 failed:
 *   Building failed
 * 
 * Call stack:
 *     ebuild.sh, line   49:  Called src_compile
 *   environment, line 3274:  Called distutils_src_compile
 *   environment, line  800:  Called die


# equery f snakeoil |grep egg
/usr/lib64/python2.5/site-packages/snakeoil-0.3.3-py2.5.egg-info
/usr/lib64/python2.6/site-packages/snakeoil-0.3.3-py2.6.egg-info


Portage 2.2_rc56 (!/etc/portage/profile, gcc-4.4.2, glibc-2.11-r1, 2.6.32-rc6-00346-gaa021ba x86_64)
=================================================================
System uname: Linux-2.6.32-rc6-00346-gaa021ba-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Sep 2009 23:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
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.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -g"
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digests autoaddcvs buildpkg ccache collision-protect cvs distlocks fixpackages lmirror mirror multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_CA en_GB en_ZA en_US en af"
MAKEOPTS="-j8 -l10"
PKGDIR="/home/gentoo/packages/bohr-int/"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /code/layman/x11 /code/layman/java-overlay /code/layman/Spring /code/layman/oss-overlay"
SYNC=""
USE="a52 aac aalib acl acpi adns adplug agg aio alsa amd64 amr animgif apache2 ares audiofile audit avahi bash-completion berkdb bluetooth bonjour bzip2 cairo calendar cdaudio cdda cddb cdio cdparanoia cdr chardet clamav cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx daap dbus dc1394 dia diskio djbfft dri dts dv dvb dvd dvdr dvdread emf encode exif expat fam ffmpeg fftw firefox flac fltk fontconfig foomaticdb fortran gd gdbm geoip gif gimp glut gmp gnokii gnutls gps graphviz gsm gstreamer hal ical iconv id3tag idea ieee1394 imagemagick imlib inkjar ipod ipv6 jack java5 java6 javacomm jbig jpeg jpeg2k lash lcms ldap libedit libgcrypt libnotify libsamplerate lm_sensors logitech-mouse lzo mad maildir mhash midi mikmod mmap mmx mng modplug modules mozilla mp3 mp3tunes mp4 mpeg mplayer mudflap multilib multitarget musepack nas ncurses nls nocd nptl nptlonly nsplugin offensive ofx ogg openal openexr opengl openmp oss pam pccntl pch pcre pda pdf perl plotutils png portaudio posix postscript povray ppds pulseaudio python quicktime raw rdesktop readline reflection rpc rss ruby savedconfig scanner sdl session sid simplexml slp smp sms smux sndfile snmp sockets socks5 solver speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs syslog sysvipc taglib theora threads thunar tidy tiff timidity truetype tta twolame unicode urandom usb v4l v4l2 vcd vcdx videos vim-syntax vorbis vorbis-psy wavpack wideband wifi wma wmf x264 xanim xattr xcb xcomposite xfs xine xinerama xinetd xml xorg xosd xpm xscreensaver xsl xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel usb-audio usb-usx2y ad1816a ad1848 ad1848-lib ad1889 serial-u16550 virmidi seq-dummy dummy" 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 asis auth_digest       imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http" APACHE2_MPMS="prefork" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse void wacom" KERNEL="linux" LCD_DEVICES="g15 glk graphlcd iowarrior ncurses null png ppm text usbhub usblcd X xosd" LINGUAS="en_CA en_GB en_ZA en_US en af" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev ati radeon v4l vga vesa radeonhd" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Brian Harring (RETIRED) gentoo-dev 2009-12-09 23:11:49 UTC
play w/ the python version, doing an import of snakeoil- (python${VER} -c 'import snakeoil' specifically).

Pkgcore now relies on snakeoil during it's build/install phase.  My bet, portage is invoking pkgcore's setup.py w/ 3.1, and no snakeoil is available for 3.1...
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-12-09 23:24:07 UTC
for i in 2.5 2.6 3 3.1 ; do echo === $i ; python${i} -c 'import snakeoil' ; done ;
=== 2.5
=== 2.6
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named snakeoil
=== 3
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named snakeoil
=== 3.1
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named snakeoil

Default python IS set to 2.6 here. So it's NOT a py3k issue.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-12-10 00:16:53 UTC
Doing:
"emerge snakeoil pkgcore"
fixed the issue. So the question is what was wrong with the previous copy of snakeoil?
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-11 00:46:14 UTC
It was probably bug #295340. Snakeoil ebuild was relying (and partially still relies) on internals of some eclasses.

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