diff options
author | Pino Toscano <pino@debian.org> | 2016-08-27 09:45:54 +0200 |
---|---|---|
committer | Pino Toscano <pino@debian.org> | 2016-08-27 09:45:54 +0200 |
commit | 92f63673170d6f230e78c9f9f862099704821db7 (patch) | |
tree | 339ca576cb08a389e24736ec886cdbc85a8713eb | |
parent | bdfe338e4a2c917121799e6b56dce82f13f083e3 (diff) | |
download | pkg-kde-tools-92f63673170d6f230e78c9f9f862099704821db7.tar.gz |
dh_sodeps: work also for libs in multiarch dir
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | dh_sodeps | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index e9b1b63..430892e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ pkg-kde-tools (0.15.23) UNRELEASED; urgency=medium [ Pino Toscano ] * Add myself to Uploaders. + * dh_sodeps: make it work also for libraries in the multiarch directory. -- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Sat, 27 Aug 2016 09:34:05 +0200 @@ -73,7 +73,12 @@ my @packages = getpackages("arch"); foreach my $package (@{$dh{DOPACKAGES}}) { my $tmpdir = tmpdir($package); - my @solinks = grep { -l $_ } glob("$tmpdir/usr/lib/*.so"); + my $globstring = "$tmpdir/usr/lib/*.so"; + my $multiarch = dpkg_architecture_value("DEB_HOST_MULTIARCH"); + if (defined $multiarch) { + $globstring = "$globstring $tmpdir/usr/lib/$multiarch/*.so" + } + my @solinks = grep { -l $_ } glob($globstring); if (@solinks) { my $arch = package_arch($package); @@ -93,7 +98,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $target = readlink($solink); foreach my $p (@packages) { next if $p eq $package; - if (-e "debian/$p/usr/lib/$target") { + if (-e "debian/$p/usr/lib/$target" || (defined $multiarch and -e "debian/$p/usr/lib/$multiarch/$target")) { addsubstvar($package, "so:Depends", $p, $verinfo); } } |