Package: dpkg-dev
Version: 1.19.2
Severity: minor

Dear Maintainer,

Working on a package, it would have made my life easier if 
dpkg-shlibdeps told me that it was caused by a rpath on the
binary.

The attached patch improves the error message.

Cheers,
Sylvestre


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'buildd-unstable'), (500, 'stable'), 
(300, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg-dev depends on:
ii  binutils      2.31.1-11
ii  bzip2         1.0.6-9
ii  libdpkg-perl  1.19.2
ii  make          4.2.1-1.2
ii  patch         2.7.6-3
ii  perl          5.28.1-3
ii  tar           1.30+dfsg-3
ii  xz-utils      5.2.2-1.3

Versions of packages dpkg-dev recommends:
ii  build-essential      12.5
ii  clang-5.0 [c-compil  1:5.0.2-2
ii  clang-6.0 [c-compil  1:6.0.1-9.2
ii  clang-7 [c-compiler  1:7.0.1-2
ii  clang-8 [c-compiler  1:8~svn349260-1~exp1+0~20181215101453.2200~1.gbp22d924
ii  fakeroot             1.23-1
ii  gcc                  4:8.2.0-2
ii  gcc-6 [c-compiler]   6.5.0-2
ii  gcc-7 [c-compiler]   7.4.0-1
ii  gcc-8 [c-compiler]   8.2.0-12
ii  gnupg                2.2.12-1
ii  gnupg2               2.2.12-1
ii  gpgv                 2.2.12-1
pn  libalgorithm-merge-  <none>

Versions of packages dpkg-dev suggests:
pn  debian-keyring  <none>

-- no debconf information
>From 3927dddec563c221b70e96def54c3f62f654e6bd Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylves...@mozilla.com>
Date: Thu, 27 Dec 2018 12:45:29 +0100
Subject: [PATCH] dpkg-shlibdeps: Improve the error message in case of rpath

---
 scripts/dpkg-shlibdeps.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index fa6c37a4d..8a933266d 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -334,7 +334,8 @@ foreach my $file (keys %exec) {
         error(g_('no dependency information found for %s ' .
                  "(used by %s)\n" .
                  'Hint: check if the library actually comes ' .
-                 'from a package.'), $lib, $file)
+                 'from a package or if a rpath is set on the ' .
+                 'program.'), $lib, $file)
             unless $ignore;
       }
     }
-- 
2.20.1

Reply via email to