I've been having problems in the tinderbox with revdep-rebuild: it continued not finding _any_ elf file broken, although I did know there were quite a bit (no preserved-rebuild enabled). Then I tried something manually: tinderbox revdep-rebuild # ldd /usr/bin/opd linux-gate.so.1 => (0xf7fe7000) libopenobex.so.1 => /usr/lib/libopenobex.so.1 (0xf7f31000) libbluetooth.so.2 => not found libc.so.6 => /lib/libc.so.6 (0xf7de7000) /lib/ld-linux.so.2 (0xf7fcb000) tinderbox revdep-rebuild # LD_LIBRARY_PATH=$(<2_ldpath.rr) ldd /usr/bin/opd bash: /usr/bin/ldd: Argument list too long tinderbox revdep-rebuild # ls -l 2_ldpath.rr -rw-r--r-- 1 root root 167706 Aug 1 17:48 2_ldpath.rr oups! tinderbox revdep-rebuild # wc -l /etc/ld.so.conf 57 /etc/ld.so.conf Now, I'm looking for a way to filter this down because otherwise it's a _biiit_ unmanageable for the tinderbox :(
xargs -d : --arg-file=2_ldpath.rr scanelf -R -E ET_DYN -F '%F' | xargs -n1 dirname | sort -u > 2_ldpath.rr.filtered.lines with this I filtered down the list so that it can actually be loaded; probably revdep-rebuild could use something along those lines to reduce the amount of paths that are added in search...
There is also the --no-ld-path option. That does not append anything to the ldpath and will give false positives for libraries in non-standard places. I don't know if that is appropriate for the tinderbox or not. Also, can you attach 2_ldpath.rr from the tinderbox, so that I have something to play with?
Created attachment 202011 [details] 2_ldpath.rr from tinderbox Here comes the file since I need to run revdep-rebuild again. I could probably ignore ldpath and just rebuild a bunch of software that way but I don't really know whether that's a very good idea.
Same problem here on a regular user gentoo box (not a tinderbox-like system at all). Diego's filter works though it takes forever to run. Attaching my obese 2_ldpath.rr.
Created attachment 255281 [details] My obese 2_ldpath.rr
Adding /usr/lib/debug/* to ${SEARCH_DIRS_MASK} trims enough directories for revdep-rebuild to work again for me. I guess that these are not strictly needed for a thorough library dependency check. Might be relevant to add to the default set of skipped directories?
No fixes made it into gentoolkit-0.3.0. Let's try to see if this can be fixed once and for all with the python rewrite.
*** Bug 187644 has been marked as a duplicate of this bug. ***