This is a somewhat tricky bug to track down, and I'm still not entirely certain what causes it. However, I *think* it happens when a package with a shared library is upgraded using the new-ish feature of portage that keeps those libraries around so you can rebuild dependent packages before removing the library. That said, I most recently had the problem with app-text/poppler, and managed to catch some evidence of the actual bug this time. I am happy to help track this down further, however I will be out of town for a week starting this Friday. Reproducible: Always Steps to Reproduce: 1. Upgrade app-text/poppler to version 0.14.1 from a version using an earlier soname 2. Attempt to run revdep-rebuild on the old libraries 3. Check the files list for poppler Actual Results: Revdep-rebuild fails on all or most packages, and poppler owns files in /var/tmp/portage. Expected Results: Revdep-rebuild should finish with no errors, and poppler should not own any files in /var/tmp/portage. Re-emerging poppler will fix the problem (you may have to remove the old libraries before this works; you can check by running equery belongs /var/tmp/portage). Once you do, the revdep-rebuild will finish normally. Before re-emerging poppler, I ran these commands to confirm the problem: $ equery belongs libpoppler.so libpoppler-glib.so libpoppler-qt4.so [ Searching for file(s) libpoppler.so,libpoppler-glib.so,libpoppler-qt4.so in *... ] app-text/poppler-0.14.1 (/var/tmp/portage/app-text/poppler-0.14.1/work/poppler-0.14.1_build/(update)/lib/libpoppler-glib.so -> libpoppler-glib.so.5) app-text/poppler-0.14.1 (/var/tmp/portage/app-text/poppler-0.14.1/work/poppler-0.14.1_build/(update)/lib/libpoppler.so -> libpoppler.so.6) app-text/poppler-0.14.1 (/var/tmp/portage/app-text/poppler-0.14.1/work/poppler-0.14.1_build/(update)/lib/libpoppler-qt4.so -> libpoppler-qt4.so.3) $ equery belongs /var/tmp/portage [ Searching for file(s) /var/tmp/portage in *... ] app-text/poppler-0.14.1 (/var/tmp/portage) $ After re-emerging poppler, the same commands yielded the proper results: $ equery belongs libpoppler.so libpoppler-glib.so libpoppler-qt4.so [ Searching for file(s) libpoppler.so,libpoppler-glib.so,libpoppler-qt4.so in *... ] app-text/poppler-0.14.1 (/usr/lib/libpoppler-qt4.so -> libpoppler-qt4.so.3) app-text/poppler-0.14.1 (/usr/lib/libpoppler-glib.so -> libpoppler-glib.so.5) app-text/poppler-0.14.1 (/usr/lib/libpoppler.so -> libpoppler.so.6) $ equery belongs /var/tmp/portage [ Searching for file(s) /var/tmp/portage in *... ] $ emerge --info: $ emerge --info Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1-iqgryn i686) ================================================================= System uname: Linux-2.6.34-gentoo-r1-iqgryn-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-1.12.13 Timestamp of tree: Wed, 11 Aug 2010 10:00:18 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/hddtemp/hddtemp.db" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US 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="/usr/portage/local/custom" SYNC="rsync://iqgryn-server.homelinux.net/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acct acl acpi aim akode alsa animgif ao arts audiofile avahi bash-completion bluetooth boost branding bzip2 cairo calendar caps cdaudio cdda cddb cdparanoia cdr chardet chroot cjk cleartype cli consolekit contrib cracklib crypt cscope css cuda cups curl cvs cxx d dbus detex device-mapper dga disk-partition diskio divx doc dri dvd dvdr elf emboss encode exif expat fam fastcgi fat ffmpeg fftw firefox flac fmod font-server fontforge foomaticdb fortran fts3 gcj gd gdbm gif gimp git glibc-omitfp glitz glsa glut gmedia gmp gnutls gphoto2 gpm graphics gs gsm gstreamer gtk gtkhtml hal handbook hbci hddtemp iconv icq id3 idn imagemagick imlib iostats jabber jadetex java java5 java6 jpeg jpeg2k kde kpathsea kqemu lame laptop latex lcms libnotify libsamplerate lm_sensors logrotate lua lyrics lzma lzo mad matroska md5sum md5sum-external mdnsresponder-compat mfd-rewrites mikmod mjpeg mmap mmx mmxext mng modules motif moznocompose moznoirc moznomail mp3 mp4 mpd mpeg msn mudflap multiuser music musicbrainz nano-syntax ncurses network network-cron nls nowin nptl nptlonly nsplugin ntfs nvidia objc ocaml ofa offensive ofx ogg openal opengl openmp optimization optimized-qmake pam pango pcre pdf perl phonon pic pipe png policykit posix ppds prediction pulseaudio qt-static qt3 qt3support qt4 rdesktop readline realmedia reflection reiserfs restrict-javascript rtc scenarios schroedinger science screen sdl sensord session slp smp snmp speex spell spl sqlite srt sse sse2 ssh ssl startup-notification stream stroke subtitles subversion svg symlink sysfs syslog sysvipc tcpd tex4ht theora threads thunderbird tiff toolbar transcode truetype udev unicode usb userlocales utempter vcd vdpau videos vidix vim-syntax vim-with-x vnc voice vorbis winbind wma wmf wmp x264 x86 xcb xcomposite xetex xine xinerama xml xorg xpm xprint xscreensaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="emu10k1" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS $
Probably some preserve_old_lib bug. Can anyone else confirm?