]> git.donarmstrong.com Git - debhelper.git/commitdiff
r462: * dh_shlibdeps: document that -l accepts multiple dirs, and
authorjoey <joey>
Fri, 20 Apr 2001 05:25:31 +0000 (05:25 +0000)
committerjoey <joey>
Fri, 20 Apr 2001 05:25:31 +0000 (05:25 +0000)
     make multiple dirs absolute properly, not just the first.

debian/changelog
dh_shlibdeps

index a76f417b563215d3f8c0f45ad71476c075a122e2..1337d61e8785b90b38e204098d4bf89db5164ab9 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (3.0.17) unstable; urgency=low
+
+  * dh_shlibdeps: document that -l accepts multiple dirs, and
+    make multiple dirs absolute properly, not just the first.
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 16 Apr 2001 23:20:30 -0700
+
 debhelper (3.0.16) unstable; urgency=low
 
   * Documented -isp, Closes: #93983
index 33fd9411512457f6e57060132b3717a53f21a8a8..552687e491f04c90e36563135b469b8276d4b024 100755 (executable)
@@ -40,13 +40,14 @@ passed to dpkg-shlibdeps. This will make their dependancies be ignored.
 This may be useful in some situations, but use it with caution. This option
 may be used more than once to exclude more than one thing.
 
-=item B<-l>I<directory>
+=item B<-l>I<directory>[:directory:directory:..]
 
-Before dpkg-shlibdeps 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. Relative paths will be made absolute for the
-benefit of dpkg-shlibdeps.
+Before dpkg-shlibdeps is run, LD_LIBRARY_PATH will be set to the 
+specified directory (or directories -- separate with colons). This is
+useful for multi-binary packages where a library is built in one
+package and another package contains binaries linked against said
+library. Relative paths will be made absolute for the benefit of
+dpkg-shlibdeps.
 
 =back
 
@@ -77,10 +78,17 @@ foreach my $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}";
+                       my @paths=();
+                       foreach (split(/:/, $dh{L_PARAMS})) {
+                               # Force the path absolute.
+                               if (m:^/:) {
+                                       push @paths, $_;
+                               }
+                               else {
+                                       push @paths, getcwd()."/$_";
+                               }
                        }
+                       $dh{L_PARAMS}=join(':', @paths);
                        $ENV{'LD_LIBRARY_PATH'}=$dh{L_PARAMS};
                        verbose_print("LD_LIBRARY_PATH=$dh{L_PARAMS} \\");
                }