The branch, master has been updated
       via  11c7b74d8ee2b25514a20bd2833f920d3aed2c86 (commit)
      from  f60477e2f390146ca43bd82b2e70890ba037efca (commit)


- Shortlog ------------------------------------------------------------
11c7b74 Dpkg::Shlibs::find_library() now returns canonicalized paths

Summary of changes:
 ChangeLog              |    3 +++
 debian/changelog       |    3 ++-
 scripts/Dpkg/Shlibs.pm |    4 +++-
 3 files changed, 8 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit 11c7b74d8ee2b25514a20bd2833f920d3aed2c86
Author: Raphael Hertzog <[EMAIL PROTECTED]>
Date:   Sun Nov 25 17:06:30 2007 +0000

    Dpkg::Shlibs::find_library() now returns canonicalized paths

diff --git a/ChangeLog b/ChangeLog
index 783dad8..18a74b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
        * scripts/dpkg-gensymbols.pl: Add a new -I<file> option to force
        the usage of a specific file as basis for the generated symbols
        file.
+       * scripts/Dpkg/Shlibs.pm (find_library): Canonicalize paths before
+       returning them as bad RPATH can lead to non-canonical paths
+       causing us troubles in dpkg-shlibdeps.
 
 2007-11-24  Guillem Jover  <[EMAIL PROTECTED]>
 
diff --git a/debian/changelog b/debian/changelog
index e71a961..edaabd2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 dpkg (1.14.12) UNRELEASED; urgency=low
 
-  *
+  [ Raphael Hertzog ]
+  * Dpkg::Shlibs::find_library() now returns canonicalized paths.
 
  -- Guillem Jover <[EMAIL PROTECTED]>  Sat, 24 Nov 2007 07:38:13 +0200
 
diff --git a/scripts/Dpkg/Shlibs.pm b/scripts/Dpkg/Shlibs.pm
index 03916bb..247ddcf 100644
--- a/scripts/Dpkg/Shlibs.pm
+++ b/scripts/Dpkg/Shlibs.pm
@@ -22,6 +22,8 @@ use warnings;
 use base qw(Exporter);
 our @EXPORT_OK = qw(@librarypaths find_library);
 
+use File::Spec;
+
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling qw(syserr);
 use Dpkg::Shlibs::Objdump;
@@ -78,7 +80,7 @@ sub find_library {
        if (-e "$root$dir/$lib") {
            my $libformat = Dpkg::Shlibs::Objdump::get_format("$root$dir/$lib");
            if ($format eq $libformat) {
-               return "$root$dir/$lib";
+               return File::Spec->canonpath("$root$dir/$lib");
            }
        }
     }

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to