[debhelper-devel] [debhelper] 06/08: dh_strip: Only match *.a files that start with "lib"

Niels Thykier nthykier at moszumanska.debian.org
Sun May 1 08:06:26 UTC 2016


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

nthykier pushed a commit to branch master
in repository debhelper.

commit cab556dbff039108e206563d29a37c115488687c
Author: Peter Pentchev <roam at ringlet.net>
Date:   Fri Apr 8 17:31:13 2016 +0300

    dh_strip: Only match *.a files that start with "lib"
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_strip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dh_strip b/dh_strip
index 752176e..a7206db 100755
--- a/dh_strip
+++ b/dh_strip
@@ -230,7 +230,7 @@ sub testfile {
 	}
 	
 	# Is it a static library, and not a debug library?
-	if (m/lib.*\.a$/ && ! m/.*_g\.a$/) {
+	if (m/\/lib[^\/]*\.a$/ && ! m/.*_g\.a$/) {
 		# Is it a binary file, or something else (maybe a linker
 		# script on Hurd, for example? I don't use file, because
 		# file returns a variety of things on static libraries.

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