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

[SCM] Debian package checker branch, master, updated. 2.5.10-118-gdb6c4a1



The following commit has been merged in the master branch:
commit db6c4a17fd48e30328399a1af8b1de6bb79d6ac7
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Aug 16 12:41:21 2012 +0200

    c/binaries.desc: Update the "extract SONAME" shell snippet
    
    Based on the snippet posted in #661928.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/binaries.desc b/checks/binaries.desc
index c6f3e25..6a3a374 100644
--- a/checks/binaries.desc
+++ b/checks/binaries.desc
@@ -145,7 +145,8 @@ Info: The package name of a library package should usually reflect
  the soname of the included library. The package name can determined
  from the library file name with the following code snippet:
  .
-  $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -e's/\([0-9]\)\.so\./\1-/; s/\.so\.//'
+  $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
+      sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
 
 Tag: binary-with-bad-dynamic-table
 Severity: serious
diff --git a/debian/changelog b/debian/changelog
index f6a5f64..2cece61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ lintian (2.5.11) UNRELEASED; urgency=low
       apparently-corrupted-elf-binary.
     + [NT] Remove some references to objdump in tag descriptions
       as Lintian uses readelf.
+    + [JW,NT] Update the "extract SONAME" shell snippet to properly
+      handle SONAMEs with uppercase letters.
   * checks/conffiles:
     + [NT] Remove leading slash on the filename when emitting
       file-in-etc-rc.d-marked-as-conffile.

-- 
Debian package checker


Reply to: