Package: lintian Version: 2.5.48 Severity: normal Since recently, I'm seeing a lot of binary-or-shlib-defines-rpath [1] errors from lintinan on Trilinos [2]. It says in the description of the warning: ``` To fix this problem, look for link lines like:
gcc test.o -o test -Wl,--rpath,/usr/local/lib or gcc test.o -o test -R/usr/local/lib and remove the -Wl,--rpath or -R argument. ``` Indeed, the Trilinos installation contains many of those lines, but they are necessary too. When executing the test binaries (which are compiled in the build tree alongside the libraries), they have to find the linked shared libraries. Messing with the rpath is necessary. That's not true later on when the libraries are _installed_, of course. For this, CMake has the switch CMAKE_SKIP_INSTALL_RPATH [3], which serves exactly that purpose. For some reason, lintian doesn't seem to be happy with that though. Looks like a bug in Lintian? Can you confirm? [1] https://lintian.debian.org/tags/binary-or-shlib-defines-rpath.html [2] https://tracker.debian.org/pkg/trilinos [3] https://cmake.org/cmake/help/v3.0/variable/CMAKE_SKIP_INSTALL_RPATH.html -- System Information: Debian Release: stretch/sid APT prefers yakkety-updates APT policy: (500, 'yakkety-updates'), (500, 'yakkety-security'), (500, 'yakkety'), (100, 'yakkety-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.8.0-34-generic (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/dash Init: systemd (via /run/systemd/system) Versions of packages lintian depends on: ii binutils 2.27-8ubuntu2 ii bzip2 1.0.6-8build1 ii diffstat 1.61-1 ii file 1:5.28-2ubuntu1 ii gettext 0.19.8.1-1ubuntu2 ii intltool-debian 0.35.0+20060710.4 ii libapt-pkg-perl 0.1.29build7 ii libarchive-zip-perl 1.59-1 ii libclass-accessor-perl 0.34-1 ii libclone-perl 0.38-2 ii libdpkg-perl 1.18.10ubuntu1 ii libemail-valid-perl 1.200-1 ii libfile-basedir-perl 0.07-1 ii libipc-run-perl 0.94-1 ii liblist-moreutils-perl 0.416-1 ii libparse-debianchangelog-perl 1.2.0-10 ii libperl5.22 [libdigest-sha-perl] 5.22.2-3 ii libtext-levenshtein-perl 0.13-1 ii libtimedate-perl 2.3000-2 ii liburi-perl 1.71-1 ii libyaml-libyaml-perl 0.41-6build1 ii man-db 2.7.5-1 ii patchutils 0.3.4-1 ii perl 5.22.2-3 ii t1utils 1.39-2 ii xz-utils 5.1.1alpha+20120614-2.1ubuntu1 Versions of packages lintian recommends: ii dpkg 1.18.10ubuntu1 ii libperlio-gzip-perl 0.19-1build1 ii perl 5.22.2-3 ii perl-modules-5.22 [libautodie-perl] 5.22.2-3 Versions of packages lintian suggests: pn binutils-multiarch <none> ii dpkg-dev 1.18.10ubuntu1 ii libhtml-parser-perl 3.72-2 pn libtext-template-perl <none> -- no debconf information

