Source: libpam-ldap
Version: 186-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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 <la...@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
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to