Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38011 - revdep-rebuild ignores /usr/kde/*/bin/
Summary: revdep-rebuild ignores /usr/kde/*/bin/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 100694 110306 (view as bug list)
Depends on: 62644
Blocks:
  Show dependency tree
 
Reported: 2004-01-12 16:19 UTC by Alexander Wagner
Modified: 2006-01-17 19:00 UTC (History)
4 users (show)

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


Attachments
patch for revdep-rebuild (revdep-rebuild.patch,898 bytes, patch)
2004-04-22 07:56 UTC, Gregorio Guidi (RETIRED)
Details | Diff
patch to use /etc/ld.so.conf and PATH to search (revdep-rebuild-38011.patch,1.95 KB, patch)
2004-06-23 13:00 UTC, Paul Varner (RETIRED)
Details | Diff
patch to use /etc/ld.so.conf, PATH and ROOTPATH (revdep-rebuild-38011.patch,1.88 KB, patch)
2004-06-23 19:25 UTC, Paul Varner (RETIRED)
Details | Diff
patch to use /etc/ld.so.conf, PATH and ROOTPATH (revdep-rebuild.30811.patch,1.97 KB, patch)
2004-07-26 12:03 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Wagner 2004-01-12 16:19:41 UTC
revdep-rebuild searches in /usr/kde/*/lib/, but not in the KDE-bin, which seems to be missing from SEARCH_DIRS

Due to a missing libXm.so.3 (something about downgrade from openmotif-2.2.2, I've read), I had several broken binaries which revdep-rebuild didn't find, so it didn't remerge kdebase, which I had to do manually.

$ grep -rn libXm.so.3 /usr/kde/3.1/bin
Binary file /usr/kde/3.1/bin/nspluginscan matches
Binary file /usr/kde/3.1/bin/nspluginviewer matches
Binary file /usr/kde/3.1/bin/timidity matches

Reproducible: Didn't try
Steps to Reproduce:
1. install openmotiv-2.2.2, emerge kde-base, then downgrade to openmotif-2.1.30-r3 (I'm not sure about this step)
2. use revdep-rebuild to repair binaries broken by missing libXm.so.3
Actual Results:  
broken nspluginscan, nspluginviewer and timidity in /usr/kde/3.1/bin/ are not 
found, kdebase not rebuilt 

Expected Results:  
remerge kdebase 

I have gentoolkit-0.1.38 installed, if this matters. 
 
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22) 
================================================================= 
System uname: 2.4.22 i686 AMD Athlon(tm) XP 2400+ 
Gentoo Base System version 1.4.3.10 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer 
-ffast-math" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer 
-ffast-math" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif 
gpm gtk gtk2 imlib java jpeg kde libg++ libwww libxine mad mikmod mmx motif 
mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib png qt quicktime 
readline samba sasl scanner sdl slang spell sse ssl svga tcpd tetex truetype 
x86 xine xml2 xmms xv zlib"
Comment 1 Alexander Wagner 2004-01-18 10:42:24 UTC
I noticed that "timidity" doesn't belong to kdebase, but to kdemultimedia, which wasn't remerged either.
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2004-04-22 07:56:49 UTC
Created attachment 29817 [details, diff]
patch for revdep-rebuild

This fix is really trivial, can it be applied, thanks (gentoolkit-0.2.0_pre8).
Comment 3 Benjamin Braatz 2004-06-22 17:19:44 UTC
Just found a broken tuxracer due to updated tk.

When someone gets to fix this bug, could /usr/games/{bin,lib} also be added, please.

Thanks!
Comment 4 SpanKY gentoo-dev 2004-06-22 17:30:07 UTC
better fix would be to go through $PATH and /etc/ld.so.conf
Comment 5 Paul Varner (RETIRED) gentoo-dev 2004-06-23 13:00:55 UTC
Created attachment 33976 [details, diff]
patch to use /etc/ld.so.conf and PATH to search

This patch replaces the hardcoded directories with the following:  The
directories searched by the script are derived from /etc/ld.so.conf, ROOTPATH
from /etc/profile.env, SEARCH_DIRS entry in /etc/make.conf and SEARCH_DIRS in
the environment executing the script. In both /etc/make.conf and the
environment, SEARCH_DIRS is a space delimited list of directories.

For the person asking that /usr/games/bin be searched, the file
/etc/env.d/90games does not define a ROOTPATH variable.  This means that games
are not in root's PATH variable and still won't be searched by default.  Adding
SEARCH_DIRS="/usr/games/bin" to /etc/make.conf would resolve this.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2004-06-23 13:03:23 UTC
Not sure that it makes a real difference, but the patch was generated against revdep-rebuild in gentoolkit-0.2.0_pre8.
Comment 7 SpanKY gentoo-dev 2004-06-23 15:14:26 UTC
/usr/games/bin/ does not appear in ROOTPATH because you shouldnt run games as root ;)

why not just use ${ROOTPATH}:${PATH}
Comment 8 Paul Varner (RETIRED) gentoo-dev 2004-06-23 19:25:25 UTC
Created attachment 34016 [details, diff]
patch to use /etc/ld.so.conf, PATH and ROOTPATH

I didn't add it because I was trying to keep as much duplication of results out
of the mix.  Once I decided that was okay through the use of the environment
and /etc/make.conf, I didn't follow through and add PATH as well as ROOTPATH.
Comment 9 Paul Varner (RETIRED) gentoo-dev 2004-06-23 19:44:05 UTC
In my testing of this patch, One of the drawbacks I found is that it won't find executibles that are installed in a location not in the path, but called through a script in the path.  One such example is OpenOffice. (Which I don't consider a great loss since it always complains it is broken when it isn't)  That is the reason that I added support for setting a SEARCH_DIRS variable in /etc/make.conf.  Since revdep-rebuild is tied tightly to portage, I felt that was best location to place it.  The Gentoo developers may disagree with me, so feel free to move it to a different location (or tell me and I will move it).  I do feel strongly that it should be in a configuration file since modifications to the script itself get overwritten with updates.
Comment 10 Paul Varner (RETIRED) gentoo-dev 2004-07-26 12:03:16 UTC
Created attachment 36210 [details, diff]
patch to use /etc/ld.so.conf, PATH and ROOTPATH

Discovered a bug in the previous patch where /lib and /usr/lib were excluded
from the search.
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-17 13:53:08 UTC
Can the trivial patch at least be applied? It can't do any harm.
Thanks.
Comment 12 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-24 15:40:17 UTC
I went ahead and applied it to CVS.
Comment 13 Petteri Räty (RETIRED) gentoo-dev 2005-03-28 11:17:51 UTC
Could the trivial patch go to the stable version? It would be very useful.
Comment 14 Paul Varner (RETIRED) gentoo-dev 2005-10-24 06:39:30 UTC
Reopening as this has not been fixed in a stable release of gentoolkit
Comment 15 Paul Varner (RETIRED) gentoo-dev 2005-10-24 06:40:28 UTC
*** Bug 110306 has been marked as a duplicate of this bug. ***
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-12-03 07:24:16 UTC
*** Bug 100694 has been marked as a duplicate of this bug. ***
Comment 17 Paul Varner (RETIRED) gentoo-dev 2006-01-17 19:00:27 UTC
Fixed in gentoolkit-0.2.1