Bug#727683: lintian: erroneously reports a warning on :-separated RPATHs
Package: lintian
Version: 2.5.19
Severity: normal
While working on my unofficial syslog-ng packages[1], I came across a
spurious warning when running Lintian on the results:
E: syslog-ng-core: binary-or-shlib-defines-rpath usr/lib/syslog-ng/3.5.0rc1/libcryptofuncs.so /usr/lib/syslog-ng:/usr/lib/syslog-ng/3.5.0rc1
This seemed strange, as the RPATH some of the binaries set
(/usr/lib/syslog-ng:/usr/lib/syslog-ng/3.5.0rc1) is, by the letter of
policy, allowed: both components are under /usr/lib/$srcpkg.
The reason lintian fails is because it's prepared to find multiple
RPATHs set within an object, but not for the case where a single
record uses : as a separator (a'la PATH). It ends up checking that the
rpath is either /usr/lib/$srcpkg or /usr/lib/$srcpkg/: the ':'
confuses it.
I will submit a patch in a few minutes that corrects lintian by
splitting the rpath into components first.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lintian depends on:
ii binutils 2.23.90.20130927-1
ii bzip2 1.0.6-5
ii diffstat 1.57-1
ii file 1:5.14-2
ii gettext 0.18.3.1-1
ii hardening-includes 2.4
ii intltool-debian 0.35.0+20060710.1
ii libapt-pkg-perl 0.1.29+b1
ii libarchive-zip-perl 1.30-7
ii libclass-accessor-perl 0.34-1
ii libclone-perl 0.35-1
ii libdigest-sha-perl 5.85-1+b1
ii libdpkg-perl 1.16.12
ii libemail-valid-perl 1.192-1
ii libfile-basedir-perl 0.03-1
ii libipc-run-perl 0.92-1
ii liblist-moreutils-perl 0.33-1+b2
ii libparse-debianchangelog-perl 1.2.0-1
ii libtext-levenshtein-perl 0.06~01-2
ii libtimedate-perl 1.2000-1
ii liburi-perl 1.60-1
ii man-db 2.6.5-2
ii patchutils 0.3.2-2
ii perl [libdigest-sha-perl] 5.18.1-4
ii t1utils 1.37-2
Versions of packages lintian recommends:
ii libautodie-perl 2.21-1
ii libperlio-gzip-perl 0.18-1+b3
ii perl-modules [libautodie-perl] 5.18.1-4
Versions of packages lintian suggests:
pn binutils-multiarch <none>
ii dpkg-dev 1.16.12
ii libhtml-parser-perl 3.71-1+b1
ii libtext-template-perl 1.46-1
ii xz-utils 5.1.1alpha+20120614-2
-- no debconf information
Reply to: