From 9dd0ae97130e8a6c1f3c2c49fe24d53fae454e5e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 18 May 2010 12:30:06 -0400 Subject: dh_installman: Avoid converting .so links to symlinks if the link target is not present in the same binary package, on advice of Colin Watson. (To support eventual so search paths.) --- debian/changelog | 3 +++ dh_installman | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 594ef7c8..fa04d078 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ debhelper (7.4.21) UNRELEASED; urgency=low * dh_installman: Support .so links relative to the current section. + * dh_installman: Avoid converting .so links to symlinks if the link + target is not present in the same binary package, on advice of + Colin Watson. (To support eventual so search paths.) -- Joey Hess Mon, 17 May 2010 20:01:19 -0400 diff --git a/dh_installman b/dh_installman index 1a5750b8..703b70bc 100755 --- a/dh_installman +++ b/dh_installman @@ -248,8 +248,10 @@ sub find_so_man { $solink="../$solink"; } - push @sofiles,"$File::Find::dir/$_"; - push @sodests,$solink; + if (-e $solink || -e "$solink.gz") { + push @sofiles,"$File::Find::dir/$_"; + push @sodests,$solink; + } } } -- cgit v1.2.3