On 1/21/10, Helmut Jarausch <jarau...@igpm.rwth-aachen.de> wrote: > Upgrading to media-libs/jpeg-8 > poses a new level of difficulty (to me). > > I cannot use emerge @preserved-rebuild since I still > have kde-3 packages and still have problems with the > kde-sunset overlay which I have to resolve lateron. > > Now, I try to find out which packages depend on jpeg-7. > First idea > revdep-rebuild -p -L /usr/lib64/libjpeg.so.7 > > but this also finds packages which depend on > /usr/lib64/libjpeg.so.7 AND /usr/lib64/libjpeg.so.8 > probably because they depend on /usr/lib64/libjpeg.so.7 > only indirectly. > > But how to find out these intermediate libraries which depend > on /usr/lib64/libjpeg.so.7 directly?
I don't know why you wouldn't want to fix the kde3 overlay part ASAP, but here is a guesswork, which might dig you something useful: ls /usr/lib64/*.so | xargs -r scanelf -BF%n | grep 'libjpeg\.so\.7' | awk '{ print $2 }' | xargs -r qfile -qC | uniq It doesn't understand, e.g., slots, nor is really optimized. For such, we'd need a separate program, which we'd call ... umm, lemme think ... is reverse-dependency-rebuilder good? ;) -- Arttu V.