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

[lintian] 01/01: Ensure that PAM modules are placed in the "admin" section, additionally preventing a false positive for libpam-krb5 which was being caught by a "libfoo1" => "libs" entry. (Closes: #885899)



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

lamby pushed a commit to branch master
in repository lintian.

commit 96b2240e9c0043017715b49a59362fa975c4189d
Author: Chris Lamb <lamby@debian.org>
Date:   Sun Dec 31 09:40:27 2017 +0000

    Ensure that PAM modules are placed in the "admin" section, additionally preventing a false positive for libpam-krb5 which was being caught by a "libfoo1" => "libs" entry. (Closes: #885899)
---
 data/fields/name_section_mappings                     |  1 +
 debian/changelog                                      |  4 ++++
 t/tests/fields-wrong-section/debian/debian/control.in | 11 +++++++++++
 t/tests/fields-wrong-section/tags                     |  1 +
 4 files changed, 17 insertions(+)

diff --git a/data/fields/name_section_mappings b/data/fields/name_section_mappings
index 1fdc1cf..695523f 100644
--- a/data/fields/name_section_mappings
+++ b/data/fields/name_section_mappings
@@ -34,6 +34,7 @@ lib.*-cil(?:-dev)?$          => cli-mono
 # data files
 ^gir\d+\.\d+-.*-\d+\.\d+$    => introspection
 ^(?:x?fonts|ttf)-                       => fonts
+^libpam-                                => admin
 ^(?:aspell|hunspell|myspell|mythes)-    => localization
 ^hyphen-[a-z]{2}(?:-[a-z]{2})?$         => localization
 ^dict-freedict-                         => localization
diff --git a/debian/changelog b/debian/changelog
index 5d2902c..6ddd40a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -52,6 +52,10 @@ lintian (2.5.67) UNRELEASED; urgency=medium
       check for packages where an upstream signature exists but is not
       being used.  (Closes: #885621)
 
+  * data/fields/name_section_mappings:
+    + [CL] Ensure that PAM modules are placed in the "admin" section,
+      additionally preventing a false positive for libpam-krb5 which was
+      being caught by a "libfoo1" => "libs" entry.  (Closes: #885899)
   * data/files/python-generic-modules:
     + [CL] Add "examples".
   * data/standards-version/release-dates:
diff --git a/t/tests/fields-wrong-section/debian/debian/control.in b/t/tests/fields-wrong-section/debian/debian/control.in
index 09f5041..77da84d 100644
--- a/t/tests/fields-wrong-section/debian/debian/control.in
+++ b/t/tests/fields-wrong-section/debian/debian/control.in
@@ -205,3 +205,14 @@ Description: {$description} (gir1.2-pkg)
  Lintian.  It is part of the Lintian test suite and may do very odd
  things.  It should not be installed like a regular package.  It may
  be an empty package.
+
+Package: libpam-{$source}1
+Architecture: all
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
+Description: {$description} (PAM module with number suffix)
+ Test for PAM modules.
+ .
+ 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.  It may
+ be an empty package.
diff --git a/t/tests/fields-wrong-section/tags b/t/tests/fields-wrong-section/tags
index f279058..3dbb951 100644
--- a/t/tests/fields-wrong-section/tags
+++ b/t/tests/fields-wrong-section/tags
@@ -12,6 +12,7 @@ W: libfields-wrong-section-perl: wrong-section-according-to-package-name libfiel
 W: libfields-wrong-section-ruby1.8: wrong-section-according-to-package-name libfields-wrong-section-ruby1.8 => ruby
 W: libghc-fields-wrong-section: wrong-section-according-to-package-name libghc-fields-wrong-section => haskell
 W: libjs-fields-wrong-section: wrong-section-according-to-package-name libjs-fields-wrong-section => javascript
+W: libpam-fields-wrong-section1: wrong-section-according-to-package-name libpam-fields-wrong-section1 => admin
 W: libphp-fields-wrong-section: wrong-section-according-to-package-name libphp-fields-wrong-section => php
 W: python-fields-wrong-section: wrong-section-according-to-package-name python-fields-wrong-section => python
 W: python3-fields-wrong-section: wrong-section-according-to-package-name python3-fields-wrong-section => python

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


Reply to: