[Reproducible-commits] [debhelper] 08/17: dh_strip: Strip .note and .comment from static libs
Johannes Schauer
josch at moszumanska.debian.org
Wed Aug 12 08:53:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
josch pushed a commit to branch pu/reproducible_builds
in repository debhelper.
commit a25dbc5e53c9221b290b017b0e0826ffa25ada0d
Author: Niels Thykier <niels at thykier.net>
Date: Thu Jul 30 21:43:37 2015 +0200
dh_strip: Strip .note and .comment from static libs
Signed-off-by: Niels Thykier <niels at thykier.net>
---
debian/changelog | 3 +++
dh_strip | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 650b294..5b9eae3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,9 @@ debhelper (9.20150629) UNRELEASED; urgency=medium
(Closes: #793443)
* dh_strip: Always compress debug sections of debug symbols
in ddebs.
+ * dh_strip: Strip ".comment" and ".note" sections from static
+ libraries. Thanks to Helmut Grohne for the suggestion.
+ (Closes: #789351)
-- Niels Thykier <niels at thykier.net> Sun, 28 Jun 2015 15:08:19 +0200
diff --git a/dh_strip b/dh_strip
index 958e150..be82691 100755
--- a/dh_strip
+++ b/dh_strip
@@ -318,7 +318,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (@static_libs) {
my $strip_help = qx{$strip 2>&1};
- my @opts = ('--strip-debug');
+ my @opts = ('--strip-debug', '--remove-section=.comment',
+ '--remove-section=.note');
if (index($strip_help, '--enable-deterministic-archives') > -1) {
# NB: The short variant (-D) is broken in Jessie
# (binutils/2.25-3)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git
More information about the Reproducible-commits
mailing list