Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits: 02ee7f48 by Jeremy Bícha at 2025-12-07T23:54:31-05:00 Remove library-not-linked-against-libc check This check made assumptions that are no longer true. -Wl,--as-needed is set by default since Debian 11 which results in many library files (particularly plugins) not linking directly against libc. Ubuntu enables LTO optimization by default and many Debian packages opt in to that, which also can trigger this Lintian check. This was seen with evolution-data-server 3.56.2-5. Further, the default Salsa CI pipeline fails for any Lintian error, so we should be cautious about having Lintian errors. https://udd.debian.org/lintian-tag/library-not-linked-against-libc?affected=yes reports that this is emitted 5000 times before getting past the openkim-models package in an alphabetical list Closes: #896012 Closes: #909267 - - - - - 3 changed files: - lib/Lintian/Check/Binaries/Prerequisites.pm - t/recipes/checks/binaries/prerequisites/binaries-libc-link/eval/hints - − tags/l/library-not-linked-against-libc.tag Changes: ===================================== lib/Lintian/Check/Binaries/Prerequisites.pm ===================================== @@ -120,15 +120,6 @@ sub visit_installed_files { my $linked_with_libc = any { m{^ libc[.]so[.] }x } @{$item->elf->{NEEDED} // []}; - $self->pointed_hint('library-not-linked-against-libc', $item->pointer) - if !$linked_with_libc - && $is_shared - && @{$item->elf->{NEEDED} // [] } - && (none { /^libc[.]so[.]/ } @{$item->elf->{NEEDED} // [] }) - && $item->name !~ m{/libc\b} - && (!$self->built_with_octave - || $item->name !~ m/\.(?:oct|mex)$/); - $self->pointed_hint('program-not-linked-against-libc', $item->pointer) if !$linked_with_libc && !$is_shared ===================================== t/recipes/checks/binaries/prerequisites/binaries-libc-link/eval/hints ===================================== @@ -1,3 +1,2 @@ binaries-libc-link (binary): shared-library-lacks-prerequisites [usr/lib/basic/libbasic-nodeps] binaries-libc-link (binary): program-not-linked-against-libc [usr/bin/basic] -binaries-libc-link (binary): library-not-linked-against-libc [usr/lib/basic/libbasic-nolibc] ===================================== tags/l/library-not-linked-against-libc.tag deleted ===================================== @@ -1,14 +0,0 @@ -Tag: library-not-linked-against-libc -Severity: error -Check: binaries/prerequisites -Explanation: The package installs a library which is not dynamically linked - against libc. - . - It is theoretically possible to have a library which doesn't use any - symbols from libc, but it is far more likely that this is a violation - of the requirement that "shared libraries must be linked against all - libraries that they use symbols from in the same way that binaries - are". -See-Also: - debian-policy 10.2, - Bug#698720 View it on GitLab: https://salsa.debian.org/lintian/lintian/-/commit/02ee7f48e629bc5db2594376adbb57674eca0d5c -- View it on GitLab: https://salsa.debian.org/lintian/lintian/-/commit/02ee7f48e629bc5db2594376adbb57674eca0d5c You're receiving this email because of your account on salsa.debian.org.

