Bug#482450: lintian: false package-name-doesnt-match-sonames because of a second _ in the SONAME
Package: lintian
Version: 1.23.48
Severity: normal
Tags: patch
Hi,
I've package with two underscore in the SONAME.
soname:
libclaw_dynamic_library.so.1
filenames:
/usr/lib/libclaw_dynamic_library.so.1.5.2b
/usr/lib/libclaw_dynamic_library.so.1
package name:
libclaw-dynamic-library1
The command presented in the info message works fine:
objdump -p ./build-tree/libclaw_dynamic_library.so.1.5.2b | sed -n
-e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed
-e's/\([0-9]\)\.so\./\1-/; s/\.so\.//'
libclaw_dynamic_library1
But lintian complains about the second _:
W: libclaw-dynamic-library1: package-name-doesnt-match-sonames
libclaw-dynamic_library
This minor patch fix the problem:
--- binaries.orig 2008-05-22 22:55:27.000000000 +0200
+++ binaries 2008-05-22 22:55:37.000000000 +0200
@@ -146,7 +146,7 @@
foreach my $expected_name (@sonames) {
$expected_name =~ s/([0-9])\.so\./$1-/;
$expected_name =~ s/\.so(\.|\z)//o;
- $expected_name =~ s/_/-/o;
+ $expected_name =~ s/_/-/og;
if ((lc($expected_name) eq $pkg)
|| (lc($expected_name) eq $base_pkg)) {
Best regards,
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lintian depends on:
ii binutils 2.18.1~cvs20080103-4 The GNU assembler, linker and bina
ii diffstat 1.45-2 produces graph of changes introduc
ii dpkg-dev 1.14.19 package building tools for Debian
ii file 4.24-2 Determines file type using "magic"
ii gettext 0.17-2 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libdigest-sha-perl 5.47-1 Perl extension for SHA-1/224/256/3
ii libparse-debianchan 1.1.1-2 parse Debian changelogs and output
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii man-db 2.5.2-1 on-line manual pager
ii perl [libdigest-sha 5.10.0-10 Larry Wall's Practical Extraction
lintian recommends no packages.
-- no debconf information
Reply to: