[Reproducible-builds] Bug#834050: libpam-ldap: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Aug 11 16:29:18 UTC 2016


Source: libpam-ldap
Version: 186-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that libpam-ldap could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch	2016-08-11 17:24:10.813698405 +0100
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-11
+
+--- libpam-ldap-186.orig/vers_string
++++ libpam-ldap-186/vers_string
+@@ -14,6 +14,9 @@ if ($ENV{'PROGRAM'}) { $PROGRAM = $ENV{'
+ 
+ chop($AUTHOR);
+ chop($DATE=`date -u`);
++if (defined $ENV{SOURCE_DATE_EPOCH}) {
++	chop($DATE=`LC_ALL=C date --date="@\${SOURCE_DATE_EPOCH}" -u`);
++}
+ chop($CWD=`pwd`);
+ 
+ ($PROJECT, $VERSION) = split(/\-/, &getCVSVersionInfo());
--- a/debian/patches/series	2016-08-11 17:18:11.882715439 +0100
--- b/debian/patches/series	2016-08-11 17:24:09.565688068 +0100
@@ -3,3 +3,4 @@
 log_shadowlastchange_failure
 username_for_memberuid
 manpage_fix_spell.patch
+reproducible_build.patch


More information about the Reproducible-builds mailing list