Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189914 - revdep-rebuild -X fails to catch packages
Summary: revdep-rebuild -X fails to catch packages
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 09:27 UTC by Christian Speckner
Modified: 2007-09-12 23:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Speckner 2007-08-23 09:27:05 UTC
This happened to me during the recent expat mess: doing "revdep-rebuild -X" found all broken libraries and binaries but emerged only a very minor part of the corresponding packages. This happened for me on three stable systems, two of which are "x86" and one "ppc". Unfortunately, I cannot provide any of .revdep* files since I have been busy since the incident returning the systems to working condition and the corresponding files have been overwritten. Plain revdep-rebuild seems to work. Most of the skipped packages were kde, but I'm not sure if this is relevant.

Reproducible: Always

Steps to Reproduce:
Haven't tried for obvious reasons this but should do the job
1. Break libexpat
2. run revdep-rebuild -X
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-23 09:44:40 UTC
Of course if does, -X ignores slots.

<snip>
-X | --package-names
emerge the best packages available, not neccessarily the exact version of the installed package
</snip>
Comment 2 Christian Speckner 2007-08-23 12:30:04 UTC
Afaik "revdep-rebuild -X" is supposed to emerge to most recent versions of the packages available, I'll happily stand corrected if I am wrong. I run "-X" because I wanted to avoid double merging of packages that would be updated lateron anyway (this is also what is suggested in the ewarn text of the expat ebuild, and, btw, http://www.gentoo.org/proj/en/desktop/gnome/howtos/gnome-2.18-upgrade.xml suggests the same).

To make myself clear, what happened was that MOST of the packages that should have pulled in were simply ignored (the order of 60 from 70), and most of them were certainly NOT slotted. However, I did take a look at the kde packages installed after reading your comment and noticed that I still have the 3.4 versions of several kde packages installed for which no ebuilds exist anymore. However, I doubt that this is the cause of the problem because, as I just checked, the only version of KDE installed on my girlfriends notebook is 3.5, and I ran into the same thing there.
Comment 3 Christian Speckner 2007-08-23 12:32:18 UTC
Oh, to avoid misunderstandings, the 3.4 versions are garbage left over by previous updates, I also have the 3.5 versions installed which I am using.
Comment 4 Christian Speckner 2007-08-23 13:11:06 UTC
The remaining information I can offer (for my notebook, I can add the info for the other two systems on request)

gondolin kde-base # emerge --info
Portage 2.1.2.12 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r6-r6 i686)
=================================================================
System uname: 2.6.20-gentoo-r6-r6 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 22 Aug 2007 09:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -msse3"
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/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LINGUAS="de en"
MAKEOPTS="-j 3"
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.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa apache2 arts audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt ctype cups dba dbus doc dri dts dvb dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fastbuild ffmpeg firefox foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog jack jpeg kde kerberos lcms ldap libg++ libwww mad memlimit midi mikmod mjpeg mmx mng motif mp3 mpeg mtp mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf pdflib perl pl plotutils png posix ppds pppd python qt qt3 qt3support qt4 quicktime readline real reflection samba sdl session simplexml slang smp soap sockets spell spl sse sse2 sse3 ssl svg tcltk tcpd tetex theora tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis wifi win32codecs x264 x86 xcomposite xine xinerama xml xml2 xorg xosd xsl xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="fbdev vesa fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

gondolin kde-base # eix gentoolkit
[I] app-portage/gentoolkit
     Available versions:  0.2.2 0.2.3 0.2.3-r1 ~0.2.4_pre3 ~0.2.4_pre4 ~0.2.4_pre5 ~0.2.4_pre6
     Installed versions:  0.2.3-r1(16:27:40 03.04.2007)
     Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
     Description:         Collection of administration scripts for Gentoo
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-23 13:57:37 UTC
Well frankly, if you problem is not slots, there's zero we could do without the /root/.revdep-rebuild* files you've deleted. Sorry.
Comment 6 michael@smith-li.com 2007-08-23 20:00:03 UTC
This is fixed in the next version of revdep-rebuild. Recommend RESOLVED:FIXED and don't use -X anymore.
Comment 7 yuk 2007-08-24 08:44:55 UTC
(In reply to comment #6)
> This is fixed in the next version of revdep-rebuild. Recommend RESOLVED:FIXED
> and don't use -X anymore.
> 

I had the same problem (not only with libexpat).
Now, to be sure, I always run "revdep-rebuild -np -p": this catches all borken files (with some false-positive, yes, but it is better then some false-negative).
In my case without "-np" revdep-rebuild used the libexpat.so.0 found in /opt/vmware/workstation/lib/lib/ and didn't report many broken files. This happened due the manipulation of the LD_LIBRARY_PATH. But obviously only VMWare Workstation could find that libexpat.so.0, many other program were broken.

I think it's not a great idea expand the LD_LIBRARY_PATH to all the possible paths before trying "ldd"...

Bye
Fabio
Comment 8 Paul Varner (RETIRED) gentoo-dev 2007-09-12 23:22:13 UTC
Most likely this is a duplicate of bug #189720.  However, without the .revdep-rebuild files, I can't duplicate the issue to verify anything.