Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403315 - app-emulation/libvirt-0.9.8 fails in 'postrm' phase: python_pkg_setup() not called
Summary: app-emulation/libvirt-0.9.8 fails in 'postrm' phase: python_pkg_setup() not c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-12 18:37 UTC by Torsten Kaiser
Modified: 2012-02-15 18:00 UTC (History)
2 users (show)

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


Attachments
build.log from app-emulation/libvirt-0.9.8 (libvirt-0.9.8-build.log,485.54 KB, text/plain)
2012-02-12 19:05 UTC, Torsten Kaiser
Details
/var/tmp/portage/._unmerge_/app-emulation/libvirt-0.9.8/temp/build.log (build.log,16.55 KB, text/plain)
2012-02-12 19:08 UTC, Torsten Kaiser
Details
libvirt 0.9.8 build.log (build.log,2.05 KB, text/plain)
2012-02-15 10:49 UTC, Dragos Delcea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kaiser 2012-02-12 18:37:56 UTC
After upgrading cyrus-sasl running revdep-rebuild wanted to rebuild libvirt.
Trying to do this ended in:
 * Messages for package app-emulation/libvirt-0.9.8:

 * The 'postrm' phase of the 'app-emulation/libvirt-0.9.8' package has
 * failed with exit value 1.
 * 
 * The problem occurred while executing the ebuild file named
 * 'libvirt-0.9.8.ebuild' located in the '/var/db/pkg/app-
 * emulation/libvirt-0.9.8' directory. If necessary, manually remove the
 * environment.bz2 file and/or the ebuild file located in that directory.
 * 
 * Removal of the environment.bz2 file is preferred since it may allow the
 * removal phases to execute successfully. The ebuild will be sourced and
 * the eclasses from the current portage tree will be used when necessary.
 * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
 * removal phases to be skipped entirely.
 * ERROR: app-emulation/libvirt-0.9.8 failed (postrm phase):
 *   python_pkg_setup() not called
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called pkg_postrm
 *   environment, line 2698:  Called python_mod_cleanup 'libvirt.py'
 *   environment, line 4243:  Called _python_check_python_pkg_setup_execution
 *   environment, line  644:  Called die
 * The specific snippet of code:
 *           die "python_pkg_setup() not called";
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/libvirt-0.9.8',
 * the complete build log and the output of 'emerge -pqv =app-emulation/libvirt-0.9.8'.
 * The complete build log is located at '/var/tmp/portage/._unmerge_/app-emulation/libvirt-0.9.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/._unmerge_/app-emulation/libvirt-0.9.8/temp/environment'.
 * S: '/var/tmp/portage/._unmerge_/app-emulation/libvirt-0.9.8/work/libvirt-0.9.8'

Trying to remerge it a second time resulted in the same error.
I do not think that removing environment.bz2 will help in this case, because that file is already up-to-date from the rebuilding.

emerge --info:
Portage 2.1.10.46 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.3.0-rc3 x86_64)
=================================================================
System uname: Linux-3.3.0-rc3-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.1
Timestamp of tree: Sun, 12 Feb 2012 17:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo nx x11 sunrise local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=6 --load-average=7 --keep-going"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j6"
PKGDIR="/var/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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-local/layman/nx /usr/portage-local/layman/x11 /usr/portage-local/layman/sunrise /root/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac aalib ace acl acpi ads aften aio alisp alsa altenburgcards amarok amd64 amr amrnb amrr amrwb animgif ao apache2 apng aqua_theme archive async audacious audiofile autoipd avahi bcel bcp bdf beagle berkdb bigpatch binfilter bittorrent bl blas blender-game bluetooth bonusscripts boost bzip2 c++ cairo calendar carbone_theme cblas-external cdda cdio cdparanoia cdr cgi chm chroot cifsupcall cisco cli clucene cmdctrl cmdsubmenu compress connectionstatus consolekit contactnotes corefonts cpio cpufreq cracklib crypt cscope css ctype cups curl custom-optimization cutterlimit cutterqueue cuttime cvs cvsgraph cxx dar64 dbase dbm dbus dbx dc1394 declarative demo device-mapper divx djvu dlz dmi dmx dnotify doc domainkeys double-precision dpmod dri dts dv dvb dvbplayer dvd dvdarchive dvdchapjump dvdr dvdread dvi ecc editor elf emoticon encode enscript equalizer excel exif exiv2 expat extensions extra extra-algorithms extra-cardsets extraengine extras fam fat fbcon festival ffmpeg fftw file file-icons flac fluidsynth fmod font-server fontconfig fortran fping fpx ftp fts3 fuse g3dvl gcj gd gdbm gecko geoip gif gimp git gkrellm glib glibc-omitfp glitz glsa glut gmedia gmp gnutls gopher gpac gpg gpgme gphoto2 gpm graphics graphite graphviz gs gstreamer gtk gtk3 gudev gutenprint gzip hddtemp hdri highlight history html htmlhandbook http httpd hvm hwdb ical iceweasel iconv icq icu id3 id3tag ide idea ieee1394 image imagemagick imap infowidget inherit-graph inkjar innodb inotify ipfilter ipsec iptc irc irrlicht ithreads jabber jack jad jadetex java java-external java6 jce jingle jit jni john jpeg jpeg2k juju jumpplay kde kdecards kdepim kexi kipi kmid kpathsea ktts latex lcms ldap libcaca libkms libmpeg2 libnotify libsamplerate libsexy libssh2 libvisual libwww liemikuutio lights lirc lircsettings livebuffer llvm lm_sensors logrotate logviewer loop-playback lua lucene lyx lzma lzo mad magic mail mailwrapper mainmenuhooks maps masquerade math matroska maya-shaderlibrary mbox mbrola md5sum mdev mdnsresponder-compat meanwhile menu-plugin menubar menuorg metric mhash mikmod mime mimencode minizip mixer mjpeg mmap mmx mmxext mng modplug modules motif mounts-check mozdevelop mozdom mozilla mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpg123 mplayer mppe-mppc mpu401 mschap msn mtp mudflap multilib multiprocess musepack music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nat ncurses net netjack netmeeting network network-cron networkmanager nfs nfsidmap nfsv4 nfsv41 nls nntp normalize nova nptl nptlonly nsplugin nspr nss ntfs nuv offensive ogg ogg123 ole openexr opengl openmp openssh openssl openvg openvpn pam pango pascal pcap pcre pda pdf pdfimport perl php physfs pixmaps pkcs11 plasma player pmu png policykit posix postfix postscript povray pppd pptp pth pulseaudio python qemu qt3support qt4 query-browser quicktime radio rar raw rc5 rdesktop readline realmedia remix replaygain restrict-javascript rle rss rtc rtmp rtsp samba sasl sbig scanner screen script sdk sdl sdl-image sdl-sound sdlaudio seamonkey search secure-delete semantic-desktop sensord server session shared-dricore shorten shout sid signatures simplexml skins smime smp smtp sndfile sockets socks5 solver songs sortrecords sound soundex sounds sox speech speedo speex spell spice sql sqlite sqlite3 sse sse2 sse3 sse4a ssl stars stats stemmer stlport stream submenu subtitles subversion suhosin svg svgz swat sylpheed sysfs syslog system-libvncserver system-sqlite systray sysvipc szip t1lib taglib tagwriting tb4 tcpd teletext tetex tex texteffect textures tftp tga themes theora thesaurus threads threadsafe tidy tiff timercmd timerinfo tk tls toolbar tools transcode trayicon truetype tta ttxtsubs twolame ui unicode unlock-notify usb userfiles utils uudeview uuencode v4l v4l2 valgrind vamp vcd vcdx vdr video videos vim-syntax visualization vlm vnc vncviewer voice volctrl vorbis vorbis-psy vpx wav wavpack web webdav webinterface webkit webm webp wifi winpopup wireshark wma wmf wmp x264 xanim xcb xcf xcomposite xen xext xface xforms xfs xft xhtml xine xinerama xml xorg xosd xplanet xpm xrandr xrender xscreensaver xsl xspice xv xvid xvmc xvnc yahoo yv12 zip zlib zrtp zvbi" 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" 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 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="x86_64 arm cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l vesa radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-02-12 18:53:17 UTC
full build.log please
Comment 2 Torsten Kaiser 2012-02-12 19:05:05 UTC
Created attachment 301677 [details]
build.log from app-emulation/libvirt-0.9.8

build.log had already been cleaned up by portage, but retrying it with FEATURES=noclean gave the same error again and left the attached build.log
Comment 3 Torsten Kaiser 2012-02-12 19:08:45 UTC
Created attachment 301679 [details]
/var/tmp/portage/._unmerge_/app-emulation/libvirt-0.9.8/temp/build.log

... there was even a second build.log
Comment 4 Dragos Delcea 2012-02-15 10:44:58 UTC
I get the exact error message when trying to recompile.
[ebuild   R   ~] app-emulation/libvirt-0.9.8  USE="avahi json libvirtd lvm nls parted python qemu sasl udev virt-network -caps -debug -iscsi -lxc -macvtap -nfs -numa -openvz -pcap -phyp -policykit (-selinux) -uml -virtualbox -xen" 0 kB

My system is pretty tame, x86_64 mostly stable, with only a few things marked ~ (like the qemu-kvm & related stuff).
Comment 5 Dragos Delcea 2012-02-15 10:45:25 UTC
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.2.6-gentoo.e6510 x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo.e6510-x86_64-Intel-R-_Core-TM-_i5_CPU_M_540_@_2.53GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 15 Feb 2012 10:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fakeroot fixlafiles news noinfo parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi alsa amd64 bluetooth cdr consolekit cups dbus dri gnome gtk3 hal iconv mime mmap mmx mmx2 multilib ncurses networkmanager nls nptl opengl pam pcmcia policykit pulseaudio sse sse2 sse3 ssl ssse3 threads unicode usb v4l v4l2 xattr xcb xinerama xml zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="plug ioplug dmix adpcm alaw asym copy dshare dsnoop empty extplug file hooks iec958 ladspa lfloat linear meter mulaw multi null rate route share shm softvol mmap_emul" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" QEMU_SOFTMMU_TARGETS="x86_64 i386" USERLAND="GNU" VIDEO_CARDS="vesa nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Dragos Delcea 2012-02-15 10:49:39 UTC
Created attachment 302039 [details]
libvirt 0.9.8 build.log
Comment 7 Michael Kefeder 2012-02-15 14:47:04 UTC
I can confirm this problem, I get the very same "python_pkg_setup() not called" message. I am on x86_64 with mostly stable packages, except for the kvm stuff.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2012-02-15 18:00:54 UTC
This should be fixed in CVS.