[debhelper-devel] [debhelper] 01/01: dh_makeshlibs: Ignore non-ELF files even if named .so

Niels Thykier nthykier at moszumanska.debian.org
Sat Nov 11 08:37:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit fc7d79ed5e46abd21359a37f1d87d64522576f7d
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Nov 11 08:36:29 2017 +0000

    dh_makeshlibs: Ignore non-ELF files even if named .so
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 2 ++
 dh_makeshlibs    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6fd9adf..e5b2cb1 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 d5441f2..8bb3354 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\.(.*)/) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list