summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@debian.org>2016-08-27 09:45:54 +0200
committerPino Toscano <pino@debian.org>2016-08-27 09:45:54 +0200
commit92f63673170d6f230e78c9f9f862099704821db7 (patch)
tree339ca576cb08a389e24736ec886cdbc85a8713eb
parentbdfe338e4a2c917121799e6b56dce82f13f083e3 (diff)
downloadpkg-kde-tools-92f63673170d6f230e78c9f9f862099704821db7.tar.gz
dh_sodeps: work also for libs in multiarch dir
-rw-r--r--debian/changelog1
-rwxr-xr-xdh_sodeps9
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
diff --git a/dh_sodeps b/dh_sodeps
index 151e327..acf8a7a 100755
--- a/dh_sodeps
+++ b/dh_sodeps
@@ -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);
}
}