[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#919957: Please check for binaries depending on unused libraries



On Mon, 21 Jan 2019 08:39:27 +0200 Adrian Bunk <bunk@debian.org> wrote:
> On Sun, Jan 20, 2019 at 03:45:35PM -0800, Josh Triplett wrote:
> > I'd love to see lintian catch issues like this:
> > 
> > $ ldd -u /sbin/badblocks
> > Unused direct dependencies:
> > 	/lib/x86_64-linux-gnu/libblkid.so.1
> > 
> > Lintian already parses binaries and libraries with objdump, so catching
> > this seems reasonable.
> 
> This does not sound like a good idea to me, since fixing such warnings 
> would result in many ugly (and sometimes not upstreamable) hacks.

In most cases, fixing such warnings would involve either adding
--as-needed or just removing a library from linking for a given program.

- Josh


Reply to: