Bug#635354: [checks/binaries] static libs should trigger binary-in-etc, arch-dependent-file-in-usr-share
Package: lintian
Version: 2.5.1
Tags: patch
Currently only shared libraries and ELF executables can trigger
binary-in-etc or arch-dependent-file-in-usr-share. The attached patch
makes lintian issue these tags also for static libraries.
--
Jakub Wilk
diff --git a/checks/binaries b/checks/binaries
--- a/checks/binaries
+++ b/checks/binaries
@@ -252,9 +252,6 @@
tag 'arch-independent-package-contains-binary-or-object', $file;
}
- # ELF?
- next unless $fileinfo =~ m/^[^,]*\bELF\b/o;
-
if ($file =~ m,^etc/,) {
tag 'binary-in-etc', $file;
}
@@ -263,6 +260,9 @@
tag 'arch-dependent-file-in-usr-share', $file;
}
+ # ELF?
+ next unless $fileinfo =~ m/^[^,]*\bELF\b/o;
+
if ($arch ne 'all' and $fileinfo !~ m/$ARCH_REGEX{$arch}/) {
if ($file =~ m,(?:^|/)lib(\d{2})/, or $file =~ m,^emul/ia(\d{2}),) {
tag 'binary-from-other-architecture', $file
Reply to: