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

[lintian] 01/02: c/binaries: Improve shared-lib-without-dependency-information tag



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 7da69dc76a7647cd4a9d5ae6e5ad93dc9fddcc0f
Author: Guillem Jover <guillem@debian.org>
Date:   Sat Sep 5 02:24:47 2015 +0200

    c/binaries: Improve shared-lib-without-dependency-information tag
    
    Ignore kFreeBSD kernel modules, syslinux modules, and fix the regex
    matching the dynamic linker when used with multiarch paths.
    
    Signed-off-by: Guillem Jover <guillem@debian.org>
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/binaries.pm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/checks/binaries.pm b/checks/binaries.pm
index 57ca2f0..0ca8d7c 100644
--- a/checks/binaries.pm
+++ b/checks/binaries.pm
@@ -479,13 +479,15 @@ sub run {
         # statically linked?
         if (!scalar(@{ $objdump->{NEEDED} })) {
             if ($fileinfo =~ m/shared object/o) {
-                # Some exceptions: kernel modules, detached debugging
-                # information and the dynamic loader (which itself has
-                # no dependencies).
+                # Some exceptions: kernel modules, syslinux modules, detached
+                # debugging information and the dynamic loader (which itself
+                # has no dependencies).
+                next if ($fname =~ m%^boot/modules/%);
                 next if ($fname =~ m%^lib/modules/%);
                 next if ($fname =~ m%^usr/lib/debug/%);
+                next if ($fname =~ m%\.(?:[ce]32|e64)$%);
                 next
-                  if ($fname =~ m%^lib(?:|32|64)/(?:[\w/]+/)?ld-[\d.]+\.so$%);
+                  if ($fname =~ m%^lib(?:|32|x32|64)/(?:[-\w/]+/)?ld-[\d.]+\.so$%);
                 tag 'shared-lib-without-dependency-information', $file;
             } else {
                 # Some exceptions: files in /boot, /usr/lib/debug/*,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: