Package: lintian Version: 2.5.42.1 If you run the binaries-missing-depends-on-libc test with -Wl,--as-needed in LDFLAGS (or on by default in your linker), then you might not actually get libc linked into the C++ library. Then the test fails because only the C library has libc in NEEDED but is missing the Depends.
Running the test with -Wl,--no-as-needed fixes this and seems like a smart thing to do in general as we don't want the linker to silently remove things we're trying to test. Attached patch does that. -- Dan
diff -Nru lintian-2.5.42.1/t/tests/binaries-missing-depends-on-libc/debian/debian/rules lintian-2.5.42.1endless1/t/tests/binaries-missing-depends-on-libc/debian/debian/rules --- lintian-2.5.42.1/t/tests/binaries-missing-depends-on-libc/debian/debian/rules 2016-02-08 12:50:20.000000000 -0800 +++ lintian-2.5.42.1endless1/t/tests/binaries-missing-depends-on-libc/debian/debian/rules 2016-03-29 15:02:25.000000000 -0700 @@ -2,6 +2,9 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all +# Make sure the C++ library actually links to libc +export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed + %: dh $@