emerge --depclean -vp >>> These are the packages that would be unmerged: sys-libs/db selected: 4.2.52_p4-r2 protected: none omitted: 4.3.29-r2 Then I unmerge the selected one, then do emerge -DNuavt world: These are the packages that would be merged, in reverse order: Calculating world dependencies... done! [nomerge ] app-text/acroread-7.0.9-r1 USE="cups -ldap -nsplugin" LINGUAS="en -da -de -es -fi -fr -it -ja -ko -nb -nl -pt -sv -zh_CN -zh_TW" [nomerge ] net-print/cups-1.2.6 USE="X dbus jpeg nls pam png ppds ssl tiff -php -samba -slp" [nomerge ] sys-libs/pam-0.78-r5 USE="berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb -selinux" [ebuild NS ] sys-libs/db-4.2.52_p4-r2 USE="java -bootstrap -doc -nocxx -tcl -test" 0 kB Total: 1 package (1 in new slot), Size of downloads: 0 kB Using app-portage/gentoolkit-0.2.3: equery d db [ Searching for packages depending on db... ] dev-lang/perl-5.8.8-r2 (berkdb? sys-libs/db) dev-lang/python-2.4.3-r4 (!build & berkdb? >=sys-libs/db-3.1) dev-libs/apr-util-0.9.12 (berkdb? =sys-libs/db-4*) dev-libs/cyrus-sasl-2.1.22-r2 (berkdb? >=sys-libs/db-3.2) dev-util/subversion-1.3.2-r3 (berkdb? =sys-libs/db-4*) mail-mta/sendmail-8.14.0 (>=sys-libs/db-3.2) sys-devel/libperl-5.8.8-r1 (berkdb? sys-libs/db) sys-libs/gdbm-1.8.3-r3 (berkdb? sys-libs/db) sys-libs/pam-0.78-r5 (berkdb? >=sys-libs/db-4.1.25) Looking at the pam-0.78-r5 ebuild, I don't see why it would want this older version of db. db is not in my world file. Reproducible: Always Steps to Reproduce: emerge --info Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 17 Mar 2007 19:20:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 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="-O2 -march=pentium4 -pipe" 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 /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac alsa amr arts audiofile avahi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus dri dvd dvdr encode exif fam firefox flac fortran freetype gdbm gif gnutls gpm gtk hal iconv idn ipv6 isdnlog java jpeg jpeg2k kde kdeenablefinal lcms libg++ lm_sensors logrotate mad midi mmx mng mp3 mpeg mplayer musicbrainz ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline real reflection ruby sasl session spell sse sse2 ssl startup-notification svg threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xine xml xorg xscreensaver xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel8x0" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) > Looking at the pam-0.78-r5 ebuild, I don't see why it would want this older > version of db. db is not in my world file. You only need the latest version of db but you'll probably need to run revdep-rebuild after the older version is removed. *** This bug has been marked as a duplicate of bug 164678 ***
(In reply to comment #1) > You only need the latest version of db but you'll probably need to run > revdep-rebuild after the older version is removed. Revdep-rebuild won't help with stuff like apr/apr-util, you'll to re-emerge it manually in case you have those installed.
(In reply to comment #0) > [nomerge ] sys-libs/pam-0.78-r5 USE="berkdb -nis -pam_chroot > -pam_console -pam_timestamp -pwdb -selinux" > [ebuild NS ] sys-libs/db-4.2.52_p4-r2 USE="java -bootstrap -doc -nocxx > -tcl -test" 0 kB It seems like db-4.2.52_p4-r2 is being pulled in because you have the newer version masked. Check the output of `emerge -pv =sys-libs/db-4.3.29-r2`.
(In reply to comment #3) > It seems like db-4.2.52_p4-r2 is being pulled in because you have the newer > version masked. Check the output of `emerge -pv =sys-libs/db-4.3.29-r2`. Yeah, there's the problem. I guess sys-libs/db-4.3.29-r2 must have been stable at one point, then went back into testing. I just unmerged this and everything is fine.
The behavior of --depclean removing db-4.2.52_p4-r2 instead of the masked version is actually a variation of bug 149816.
*** This bug has been marked as a duplicate of bug 149816 ***