summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-11-11 08:36:29 +0000
committerNiels Thykier <niels@thykier.net>2017-11-11 08:36:29 +0000
commitfc7d79ed5e46abd21359a37f1d87d64522576f7d (patch)
tree81ff838f9a058b8cdf9bf13b4a21f5c1fabb9c18
parent0ff7d9c44b153c5536cb43a71a34bc35154b026b (diff)
downloaddebhelper-fc7d79ed5e46abd21359a37f1d87d64522576f7d.tar.gz
dh_makeshlibs: Ignore non-ELF files even if named .so
Signed-off-by: Niels Thykier <niels@thykier.net>
-rw-r--r--debian/changelog2
-rwxr-xr-xdh_makeshlibs1
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 6fd9adf4..e5b2cb17 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,6 +37,8 @@ debhelper (10.10.6) UNRELEASED; urgency=medium
not considered by dpkg tooling and therefore you will still have
to manually work around tools like dpkg-gencontrol (even when
called via dh_gencontrol).
+ * dh_makeshlibs: Ignore non-ELF files even if they are named ".so".
+ (Closes: #880480)
[ Felipe Sateler ]
* dh_installsystemd: Fix a bug where dh_installsystemd would generate
diff --git a/dh_makeshlibs b/dh_makeshlibs
index d5441f27..8bb3354c 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -168,6 +168,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
while (<FIND>) {
my ($library, $major);
chomp;
+ next if not is_so_or_exec_elf_file($_);
push @lib_files, $_;
my $ret = compat(10) ? `$objdump -p "$_"` : qx_cmd($objdump, '-p', $_);
if ($ret=~m/\s+SONAME\s+(.*)\.so\.(.*)/) {