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

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



On Sun, Jan 20, 2019 at 03:45:35PM -0800, Josh Triplett wrote:
> Package: lintian
> Version: 2.5.122
> Severity: normal
> 
> 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.

People blindly removing libraries due to lintian might also introduce 
new bugs, there are some nasty special cases where this might not be 
safe.

Instead of doing this manually on a per-package basis, making 
--as-needed the default as Ubuntu already does would be the
proper way forward.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


Reply to: