I somehow "managed" to have two versions of dev-libs/glib in one slot: [U] dev-libs/glib Available versions: (1) 1.2.10-r5 (2) 2.8.6 2.10.3 (~)2.10.3-r1 2.12.4-r1 (~)2.12.6 (~)2.12.7 (~)2.12.9 Installed: 1.2.10-r5(1)(19:24:34 01.09.2006)(-hardened) 2.10.3(2)(12:15:18 22.08.2006)(-debug -doc -hardened) 2.12.9(2)(21:58:58 17.01.2007)(-debug -doc -hardened) Now when I try to emerge glib again or unmerge the 2.10.3-ebuild emerge crashes. Posted this problem on the gentoo-users-ml, Bo <bo.andresen@zlin.dk> pointed out to try to update portage to solve that issue, no success. Reproducible: Always Expected Results: It should be possible to remove the ebuild dev-libs/glib-2.10.3 without a problem. # emerge --info Portage 2.1.2-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.16-suspend2-r8 i686) ================================================================= System uname: 2.6.16-suspend2-r8 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.12.6 Timestamp of tree: Sat, 20 Jan 2007 23:29:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 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 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4m -Os -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=pentium4m -Os -pipe -fomit-frame-pointer -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE@euro" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/initng-portage" SYNC="rsync://172.32.99.10/gentoo-portage" USE="X acpi alsa avahi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal howl iconv ipv6 isdnlog jpeg ldap libg++ mad mikmod mmx mp3 mpeg ncurses nls nptl nptlonly nvidia ogg opengl osd oss pam pcre perl png ppds pppd python quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd tetex truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical cron daemon dev dllaunch envparser find fstat history idleprobe initctl interactive iparser last limit logfile netprobe ngc4 pause pidfile reload renice rlparser simple_launcher stcmd stdout suid syncron syslog unneeded provide" INPUT_DEVICES="keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
# emerge -Ca "=dev-libs/glib-2.10.3" >>> These are the packages that would be unmerged: dev-libs/glib selected: 2.10.3 protected: none omitted: 2.12.4-r1 1.2.10-r5 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Would you like to unmerge these packages? [Yes/No] >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging dev-libs/glib-2.10.3... Traceback (most recent call last): File "/usr/bin/emerge", line 5270, in ? retval = emerge_main() File "/usr/bin/emerge", line 5251, in emerge_main mtimedb["ldpath"]): File "/usr/bin/emerge", line 3416, in unmerge vartree=vartree, ldpath_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 3887, in unmerge ldpath_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 6813, in unmerge self.settings, 0, 0, self.vartree.dbapi) File "/usr/lib/portage/pym/portage.py", line 2966, in doebuild_environment raise portage_exception.UnsupportedAPIException(mycpv, eapi)
Apparently /var/db/pkg/dev-libs/glib-2.10.3 is corrupt. What does the content look like? Normally, it should just contain the number 0. Go ahead and remove that file, then the unmerge will probably succeed.
(In reply to comment #2) > Apparently /var/db/pkg/dev-libs/glib-2.10.3 is corrupt. I meant to say '/var/db/pkg/dev-libs/glib-2.10.3/EAPI'.
This exception is handled in svn r5749.
This has been released in 2.1.2-r2.
(In reply to comment #3) > (In reply to comment #2) > > Apparently /var/db/pkg/dev-libs/glib-2.10.3 is corrupt. > > I meant to say '/var/db/pkg/dev-libs/glib-2.10.3/EAPI'. I removed that file and got another error: # emerge -Ca "=dev-libs/glib-2.10.3" >>> These are the packages that would be unmerged: dev-libs/glib selected: 2.10.3 protected: none omitted: 2.12.4-r1 1.2.10-r5 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Would you like to unmerge these packages? [Yes/No] >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging dev-libs/glib-2.10.3... /var/db/pkg/dev-libs/glib-2.10.3/glib-2.10.3.ebuild: line 1: ¤V: command not found !!! ERROR: dev-libs/glib-2.10.3 failed. Call stack: ebuild.sh, line 1508: Called die !!! error sourcing ebuild !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/binpkgs/dev-libs/glib-2.10.3/temp/build.log'. !!! FAILED prerm: 1 A removal phase of the 'dev-libs/glib-2.10.3' package has failed with exit value 1. The problem occurred while executing the ebuild located at '/var/db/pkg/dev-libs/glib-2.10.3/glib-2.10.3.ebuild'. If necessary, manually remove the ebuild in order to skip the execution of removal phases. -- Then I removed '/var/db/pkg/dev-libs/glib-2.10.3/glib-2.10.3.ebuild' and the unmerge succeeded. Thank you, Stefan.