From: joey Date: Thu, 1 Feb 2001 21:37:28 +0000 (+0000) Subject: r415: * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson X-Git-Tag: version_2.0.101~184 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=eebc4a40e8f8aeebefef2cfeda2731b33d3ff1b0;p=debhelper.git r415: * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson , Closes: #84408 --- diff --git a/debian/changelog b/debian/changelog index c55dc52..4d6f213 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (2.2.19) unstable; urgency=low + + * dh_shlibdeps -l can handle relative paths now. Patch from Colin Watson + , Closes: #84408 + + -- Joey Hess Thu, 1 Feb 2001 13:35:39 -0800 + debhelper (2.2.18) unstable; urgency=medium * Added a suggests to debconf-utils, Closes: #83643 diff --git a/dh_shlibdeps b/dh_shlibdeps index 237d92d..a0666b9 100755 --- a/dh_shlibdeps +++ b/dh_shlibdeps @@ -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} \\"); } diff --git a/dh_shlibdeps.1 b/dh_shlibdeps.1 index d09967a..14e56b0 100644 --- a/dh_shlibdeps.1 +++ b/dh_shlibdeps.1 @@ -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)