[Reproducible-commits] [debhelper] 07/10: dh_strip: make stripping static libraries deterministic

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Oct 22 17:53:01 UTC 2014


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

lunar pushed a commit to branch pu/reproducible_builds
in repository debhelper.

commit d79ef249f318b7ebac3b152a2dc511fbfb4aec58
Author: Andrew Ayer <agwa at andrewayer.name>
Date:   Thu Sep 25 10:07:41 2014 -0700

    dh_strip: make stripping static libraries deterministic
    
    Previously, calling strip on a static library would reset the timestamp
    of every file in the archive to the current time, and reset the permissions
    of every file based on the umask.
    
    Now, the --enable-deterministic-archives is passed to strip to cause strip
    to write the .a file with zero timestamps and consistent file permissions.
---
 dh_strip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dh_strip b/dh_strip
index 516b6f2..942b690 100755
--- a/dh_strip
+++ b/dh_strip
@@ -235,7 +235,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	}
 
 	foreach (@static_libs) {
-		doit($strip,"--strip-debug",$_);
+		doit($strip,"--enable-deterministic-archives","--strip-debug",$_);
 	}
 }
 

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