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

[SCM] Debian package checker branch, master, updated. 2.5.4-58-g539f5b4



The following commit has been merged in the master branch:
commit 539f5b406ac6956d1a10fbdbdd5bed0cf5dc1d48
Author: Jakub Wilk <jwilk@debian.org>
Date:   Wed Dec 21 21:09:17 2011 +0100

    Check for M-A foreign packages with shared libraries
    
    ... in public library directories.
    
    Acked-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/shared-libs b/checks/shared-libs
index 35fc437..fe9f089 100644
--- a/checks/shared-libs
+++ b/checks/shared-libs
@@ -582,6 +582,11 @@ if ($type eq 'udeb') {
         if not $we_call_postinst and $must_call_ldconfig;
 }
 
+my $multiarch = $info->field('multi-arch') // 'no';
+if ($multiarch eq 'foreign' and $must_call_ldconfig) {
+    tag 'shlib-in-multi-arch-foreign-package', $must_call_ldconfig;
+}
+
 if (-f $info->control('prerm')) {
     local $_ = slurp_entire_file($info->control('prerm'));
     if (/^[^\#]*\bldconfig\b/m) {
diff --git a/checks/shared-libs.desc b/checks/shared-libs.desc
index f6dacac..7d13f39 100644
--- a/checks/shared-libs.desc
+++ b/checks/shared-libs.desc
@@ -428,3 +428,10 @@ Info: The dependency_libs field in the .la file has not been cleared.  It has
 Ref: http://wiki.debian.org/ReleaseGoals/LAFileRemoval,
      http://lists.debian.org/debian-devel/2011/05/msg01003.html,
      http://lists.debian.org/debian-devel/2011/05/msg01146.html
+
+Tag: shlib-in-multi-arch-foreign-package
+Severity: serious
+Certainty: certain
+Ref: https://wiki.ubuntu.com/MultiarchSpec
+Info: The package is marked as Multi-Arch: foreign, but it includes a shared
+ library in a public library directory.
diff --git a/debian/changelog b/debian/changelog
index 406ce90..9eb2b3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ lintian (2.5.5) UNRELEASED; urgency=low
     + Added:
       - dependency-is-not-multi-archified
       - preinst-uses-dpkg-maintscript-helper-without-predepends
+      - shlib-in-multi-arch-foreign-package
     + Removed:
       - uploader-address-missing
 
@@ -44,6 +45,9 @@ lintian (2.5.5) UNRELEASED; urgency=low
       (Closes: #650838)
   * checks/nmu:
     + [JW] Properly handle uploader names with commas.
+  * checks/shared-libs{,.desc}:
+    + [JW] Check for Multi-Arch foreign packages shipping shared
+      libraries in public library directories.  (Closes: #650444)
   * checks/source-copyright:
     + [JW] Allow a trailing slash in the DEP-5 1.0 URL.
       (Closes: #649813)

-- 
Debian package checker


Reply to: