From: Raphael Hertzog Date: Mon, 5 May 2008 10:11:10 +0000 (+0200) Subject: dpkg-shlibdeps: improve "library not found" error message X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f7aa9c4ffbe1fa90f58c5111e52241eb5e64982;p=dpkg dpkg-shlibdeps: improve "library not found" error message * scripts/dpkg-shlibdeps.pl: Include the format of the desired library in the "library not found" error message. --- diff --git a/ChangeLog b/ChangeLog index 15376576..5e89a6ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-05 Raphael Hertzog + + * scripts/dpkg-shlibdeps.pl: Include the format of the desired + library in the "library not found" error message. + 2008-05-02 Guillem Jover * scripts/update-alternatives.pl: Do not suggest manually changing diff --git a/debian/changelog b/debian/changelog index c2ac4023..426dbd18 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,13 @@ dpkg (1.15.0) UNRELEASED; urgency=low + [ Guillem Jover ] * Do not suggest manually changing the alternative symlinks on update-alternative's verbose mode. Closes: #412487 + [ Raphael Hertzog ] + * Enhance dpkg-shlibdeps's error message when a library can't be found to + include the ELF format of the desired library. Closes: #474671 + [ Updated dpkg translations ] * Portuguese (Miguel Figueiredo). diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl index 82a9a016..c86b7a75 100755 --- a/scripts/dpkg-shlibdeps.pl +++ b/scripts/dpkg-shlibdeps.pl @@ -146,14 +146,14 @@ foreach my $file (keys %exec) { unless (defined $lib) { $soname_notfound{$soname} = 1; $global_soname_notfound{$soname} = 1; - my $msg = _g("couldn't find library %s needed by %s (its RPATH is '%s').\n" . + my $msg = _g("couldn't find library %s needed by %s (ELF format: '%s'; RPATH: '%s').\n" . "Note: libraries are not searched in other binary packages " . "that do not have any shlibs or symbols file.\nTo help dpkg-shlibdeps " . "find private libraries, you might need to set LD_LIBRARY_PATH."); if (scalar(split_soname($soname))) { - failure($msg, $soname, $file, join(":", @{$obj->{RPATH}})); + failure($msg, $soname, $file, $obj->{format}, join(":", @{$obj->{RPATH}})); } else { - warning($msg, $soname, $file, join(":", @{$obj->{RPATH}})); + warning($msg, $soname, $file, $obj->{format}, join(":", @{$obj->{RPATH}})); } next; }