[debhelper-devel] [debhelper] 02/10: dh_strip: Recognise .node files as SO files

Niels Thykier nthykier at moszumanska.debian.org
Thu Jan 1 17:12:01 UTC 2015


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 476465a81dcd871c5b916a65017b4f15de5206df
Author: Niels Thykier <niels at thykier.net>
Date:   Thu Jan 1 17:34:05 2015 +0100

    dh_strip: Recognise .node files as SO files
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 3 +++
 dh_strip         | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d13d1c8..cc9fc1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 debhelper (9.20150101.1) UNRELEASED; urgency=medium
 
   * Changes for Stretch - upload to experimental.
+  * dh_strip: Recognise .node as potential ELF binaries that
+    should be stripped like a regular shared library.  Thanks
+    to Paul Tagliamonte for the report.  (Closes: #668852)
 
  -- Niels Thykier <niels at thykier.net>  Thu, 01 Jan 2015 17:24:38 +0100
 
diff --git a/dh_strip b/dh_strip
index 516b6f2..dd912be 100755
--- a/dh_strip
+++ b/dh_strip
@@ -118,8 +118,9 @@ sub testfile {
 	return if $fn=~m/debug\/.*\.so/;
 
 	# Does its filename look like a shared library?
-	# (*.cmxs are OCaml native code shared libraries)
-	if (m/.*\.(so.*?|cmxs$)/) {
+	#  - *.cmxs are OCaml native code shared libraries
+        #  - *.node are also native ELF binaries (for node-js)
+	if (m/.*\.(?:so.*?|cmxs|node)$/) {
 		# Ok, do the expensive test.
 		my $type=get_file_type($_);
 		if ($type=~m/.*ELF.*shared.*/) {

-- 
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