]> git.donarmstrong.com Git - debhelper.git/commitdiff
r415: * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson
authorjoey <joey>
Thu, 1 Feb 2001 21:37:28 +0000 (21:37 +0000)
committerjoey <joey>
Thu, 1 Feb 2001 21:37:28 +0000 (21:37 +0000)
     <cjw44@flatline.org.uk>, Closes: #84408

debian/changelog
dh_shlibdeps
dh_shlibdeps.1

index c55dc52df0cbbe6c44baa3d85219960a89ff265b..4d6f21349a7ccc4cf9c5aaa6c4d7ed8eb917747f 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (2.2.19) unstable; urgency=low
+
+  * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson
+    <cjw44@flatline.org.uk>, Closes: #84408
+
+ -- Joey Hess <joeyh@debian.org>  Thu,  1 Feb 2001 13:35:39 -0800
+
 debhelper (2.2.18) unstable; urgency=medium
 
   * Added a suggests to debconf-utils, Closes: #83643
index 237d92db5a0dbb648fd1e7819dc86df1ce6643f1..a0666b939e3e4cc5a8d9f8906cf6a75e39818263 100755 (executable)
@@ -2,6 +2,7 @@
 #
 # Find dependancies. Simple dpkg-shlibdeps wrapper.
 
+use Cwd;
 use Debian::Debhelper::Dh_Lib;
 init();
 
@@ -30,6 +31,10 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
 
        if (@filelist) {
                if ($dh{L_PARAMS}) {
+                       # Force the path absolute.
+                       unless ($dh{L_PARAMS}=~m:^/:) {
+                               $dh{L_PARAMS}=getcwd()."/$dh{L_PARAMS}";
+                       }
                        $ENV{'LD_LIBRARY_PATH'}=$dh{L_PARAMS};
                        verbose_print("LD_LIBRARY_PATH=$dh{L_PARAMS} \\");
                }
index d09967a9628fb53731919b58474f622e5d709e3e..14e56b0211ec903bd284e4e6bae146ed6c8d26fa 100644 (file)
@@ -37,8 +37,8 @@ Before
 is run, LD_LIBRARY_PATH will be set to the specified directory.
 This is useful for multi-binary packages where a library
 is built in one package and another package contains binaries linked
-against said library. Note that the paths used must be absolute or
-dpkg-shlibdeps will become confused.
+against said library. Relative paths will be made absolute for the
+benefit of dpkg-shlibdeps.
 .SH ENVIRONMENT
 See
 .BR debhelper (1)