Package: lintian
Version: 2.2.8
Severity: normal
Tags: patch

Hi!

Library packages containing a plus sign in their names always trigger
lintian check "symbols-declares-dependency-on-other-package". This is
because of a bug in the parser for symbols files: It doesn't strip the
SONAME from the input line if it contains a character that has special
meaning in regular expressions. Quoting these characters in the string
before applying the regex fixes the test. Patch against lintian 2.2.8
is attached. Please apply.

Thanks,

Daniel.
--- shared-libs.orig    2009-03-12 06:14:52.000000000 +0100
+++ shared-libs 2009-03-29 03:15:09.000000000 +0200
@@ -381,9 +381,11 @@
 
        if (m/^([^\s|*]\S+)\s\S+\s*(?:\(\S+\s+\S+\)|#MINVER#)?/) {
            # soname, main dependency template
+           my $soname_quoted;
 
            $soname = $1;
-           s/^$soname\s*//;
+           $soname_quoted = quotemeta($soname);
+           s/^$soname_quoted\s*//;
            $soname = format_soname($soname);
 
            if ($symbols_control{$soname}) {

Reply via email to