I've tried upgrading to the latest unstable version of gentoolkit, and I've tried deleting the temporary files used by revdep-rebuild. In any case, the --package-names or -X option is ignored, and it uses explicit versions instead.
Thought you might like to see my emerge --info: Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) XP 2800+ Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -finline-functions -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -finline-functions -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://gentoo.ccccom.com http://adelie.polymtl.ca/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X Xaw3d aalib acl acpi aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bonobo bzip2 cdr crypt cups curl dga directfb eds emacs emacs-w3 emboss encode esd evo exif expat f77 f90 fam fbcon ffmpeg flac foomaticdb fortran gb gcj gd gd-external gdbm ggi gif gimpprint glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib innodb ipv6 java jpeg junit kde kerberos lcms ldap libg++ libgda libwww mad mhash mikmod mmx mng motif mozilla mp3 mpeg msn mysql ncurses nls nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl php plotutils png postgres ppds python qt quicktime radeon readline samba sasl scanner sdl slang spell sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs winbind wxwindows xine xml xml2 xmms xslt xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
While the final emerge command that gets run does use explicit versions, the versions numbers are coming from calling emerge without a version number. See below for a revdep-rebuild run with an outdated package. # revdep-rebuild --package-names --library=libgmp.so.3 --pretend Configuring search environment for revdep-rebuild Checking reverse dependencies... Packages containing binaries and libraries using libgmp.so.3 will be emerged. Collecting system binaries and libraries... done. (/root/.revdep-rebuild.1_files) Checking dynamic linking... found /usr/bin/clamdscan found /usr/bin/clamscan found /usr/bin/freshclam found /usr/bin/sigtool found /usr/kde/3.5/bin/kcalc found /usr/kde/3.5/lib/kde3/kcalc.so found /usr/kde/3.5/lib/libkdeinit_kcalc.so found /usr/lib/libclamav.so.1.0.17 found /usr/lib/libgmpxx.so.3.0.5 found /usr/lib/python2.3/lib-dynload/mpz.so found /usr/sbin/clamd done. (/root/.revdep-rebuild_a8169cc3.3_rebuild) Assigning files to packages... /usr/bin/clamdscan -> app-antivirus/clamav /usr/bin/clamscan -> app-antivirus/clamav /usr/bin/freshclam -> app-antivirus/clamav /usr/bin/sigtool -> app-antivirus/clamav /usr/kde/3.5/bin/kcalc -> kde-base/kcalc /usr/kde/3.5/lib/kde3/kcalc.so -> kde-base/kcalc /usr/kde/3.5/lib/libkdeinit_kcalc.so -> kde-base/kcalc /usr/lib/libclamav.so.1.0.17 -> app-antivirus/clamav /usr/lib/libgmpxx.so.3.0.5 -> dev-libs/gmp /usr/lib/python2.3/lib-dynload/mpz.so -> dev-lang/python /usr/sbin/clamd -> app-antivirus/clamav done. (/root/.revdep-rebuild_a8169cc3.4_packages_raw, /root/.revdep-rebuild_a8169cc3.4_package_owners) Cleaning list of packages to rebuild... done. (/root/.revdep-rebuild_a8169cc3.4_packages) Assigning packages to ebuilds... done. (/root/.revdep-rebuild_a8169cc3.4_ebuilds) Evaluating package order... done. (/root/.revdep-rebuild_a8169cc3.5_order) All prepared. Starting rebuild... emerge --oneshot --pretend =dev-libs/gmp-4.1.4-r3 =app-antivirus/clamav-0.88 =dev-lang/python-2.3.5-r2 =kde-base/kcalc-3.5.1 These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] dev-libs/gmp-4.1.4-r3 [4.1.4] USE="-doc% -nocxx%" [ebuild R ] app-antivirus/clamav-0.88 [ebuild R ] dev-lang/python-2.3.5-r2 [ebuild R ] kde-base/kcalc-3.5.1 Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild. Since my gmp package was outdated, you will notice that the output states that gmp will be upgraded from 4.1.4 to 4.1.4-r3