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

[lintian] 01/01: c/binaries: Relax the regexp used to used to recognize arch-specific paths



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

jwilk pushed a commit to branch master
in repository lintian.

commit c8f37650e7f13984d40f583e6d50a65f965962ea
Author: Jakub Wilk <jwilk@debian.org>
Date:   Fri Oct 2 17:11:06 2015 +0200

    c/binaries: Relax the regexp used to used to recognize arch-specific paths
    
    Recognize path as architecture-specific if the GNU triplet is immediately
    followed by underscore so that Python debug extension module paths, such
    as _imaging.i386-linux-gnu_d.so, are recognized as architecture-specific.
---
 checks/binaries.pm | 2 +-
 debian/changelog   | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/checks/binaries.pm b/checks/binaries.pm
index f6b36d3..2ed5575 100644
--- a/checks/binaries.pm
+++ b/checks/binaries.pm
@@ -296,7 +296,7 @@ sub run {
 
         if ($multiarch eq 'same') {
             unless ($fname
-                =~ m,\b$gnu_triplet_re\b|/(?:$ruby_triplet_re|java-\d+-openjdk-\Q$arch\E|\.build-id)/,
+                =~ m,\b$gnu_triplet_re(?:\b|_)|/(?:$ruby_triplet_re|java-\d+-openjdk-\Q$arch\E|\.build-id)/,
               ) {
                 tag 'arch-dependent-file-not-in-arch-specific-directory',$file;
             }
diff --git a/debian/changelog b/debian/changelog
index dde7a9e..beaf6af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,11 @@ lintian (2.5.38) UNRELEASED; urgency=medium
   * checks/binaries.desc:
     + [NT] Update description of a tag now that debhelper properly
       strips static libraries.
+    + [JW] Relax the regular expression used to used to recognize
+      architecture-specific paths to avoid false positive
+      arch-dependent-file-not-in-arch-specific-directory in Python debug
+      packages.  Thanks to Matthias Klose for the bug report.
+      (Closes: #795275)
   * checks/files.{desc,pm}:
     + [AB] Apply patch by Mattia Rizzolo to also check for files in /build
       and /tmp/buildd in dir-or-file-in-build-tree.  (Closes: #797532)

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


Reply to: