Red Hat Bugzilla – Bug 182607
RFE: rpmbuild should warn for unused shared libraries
Last modified: 2007-11-30 17:11:24 EST
According to Ulrich Drepper's "How to write shared libraries" document
unused shared libraries are to be avoided because they impose unwanted overheads.
A huge number of shared libraries in FC have unused dependencies.
As part of sanity checking the package
rpmbuild could run "ldd -u -r " on all binaries and shared libraries and warn
about unused libraries. This could make package authors aware of the issue and
provide an incentive to improve the package.
Just my 2 cents.
The idea is sound, and rpm could pretty easily add a build root policy check like
the attached script if desired.
However, the choice to eliminate unused shared libraries is way outside the scope of rpm
even though a rpmbuild build root policy script might very well be an efficient implementation
Created attachment 126302 [details]
script to run ldd -u -r against executables and libraries
find /bin | ldd-unused.sh