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

[lintian] 01/01: checks/binaries.pm: Also check contrib/libdevel (etc.) for development-package-ships-elf-binary-in-path. Thanks Niels!



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

lamby pushed a commit to branch master
in repository lintian.

commit 6781f858be818d696d7ddf39d6fcd2de569d5e2e
Author: Chris Lamb <lamby@debian.org>
Date:   Sun Dec 10 20:13:34 2017 +0000

    checks/binaries.pm: Also check contrib/libdevel (etc.) for development-package-ships-elf-binary-in-path. Thanks Niels!
---
 checks/binaries.pm                                            |  2 +-
 .../debian/debian/control.in                                  | 11 +++++++++++
 .../debian/debian/libcontrib-dev.install                      |  4 ++++
 .../debian/debian/rules                                       |  2 ++
 4 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/checks/binaries.pm b/checks/binaries.pm
index 7930413..cead9f1 100644
--- a/checks/binaries.pm
+++ b/checks/binaries.pm
@@ -347,7 +347,7 @@ sub run {
 
         tag 'development-package-ships-elf-binary-in-path', $file
           if exists($PATH_DIRECTORIES{$file->dirname})
-          and $info->field('section', 'NONE') eq 'libdevel'
+          and $info->field('section', 'NONE') =~ m/(?:^|\/)libdevel$/
           and $info->field('multi-arch', 'NONE') ne 'foreign';
 
         $objdump = $info->objdump_info->{$fname};
diff --git a/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/control.in b/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/control.in
index b2ec2ee..f96bd53 100644
--- a/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/control.in
+++ b/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/control.in
@@ -40,3 +40,14 @@ Description: {$description} (M-A: same)
  things.  It should not be installed like a regular package.
  .
  This package specifies Multi-Arch: same.
+
+Package: libcontrib-dev
+Architecture: any
+Section: contrib/libdevel
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (contrib)
+ This is a test package designed to exercise some feature or tag of
+ Lintian.  It is part of the Lintian test suite and may do very odd
+ things.  It should not be installed like a regular package.
+ .
+ This package is in the contrib/libdevel section.
diff --git a/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/libcontrib-dev.install b/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/libcontrib-dev.install
new file mode 100644
index 0000000..61667a8
--- /dev/null
+++ b/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/libcontrib-dev.install
@@ -0,0 +1,4 @@
+contrib	/usr/bin
+contrib	/var/lib/private
+contrib-script	/usr/bin
+contrib-script	/var/lib/private
diff --git a/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/rules b/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/rules
index ec7f7ba..61a11fb 100755
--- a/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/rules
+++ b/t/tests/binaries-development-package-ships-elf-binary-in-path/debian/debian/rules
@@ -7,7 +7,9 @@ override_dh_auto_build:
 	cp /bin/true none
 	cp /bin/true same
 	cp /bin/true foreign
+	cp /bin/true contrib
 	
 	cp script none-script
 	cp script same-script
 	cp script foreign-script
+	cp script contrib-script

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


Reply to: