Source: wolfssl
Version: 4.4.0+dfsg-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps environment
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
wolfssl could not be built reproducibly.

This is because it used ar's "U" argument to deliberately inherit the
build system's filesystem timestamps, umask, etc. I do not know why
this was introduced and am assuming it is merely a debugging thing.

Patch attached that simply removes this behaviour.

 [0] https://reproducible-builds.org/


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   2020-05-14 11:46:34.767301041 
+0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2020-05-14
+
+--- wolfssl-4.4.0+dfsg.orig/configure.ac
++++ wolfssl-4.4.0+dfsg/configure.ac
+@@ -14,10 +14,6 @@ AC_CONFIG_AUX_DIR([build-aux])
+ # want the default "-g -O2" that AC_PROG_CC sets automatically.
+ : ${CFLAGS=""}
+ 
+-# Test ar for the "U" option. Should be checked before the libtool macros.
+-xxx_ar_flags=$(ar --help 2>&1)
+-AS_CASE([$xxx_ar_flags],[*'use actual timestamps and uids/gids'*],[: 
${AR_FLAGS="Ucru"}])
+-
+ AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_CANONICAL_HOST
--- a/debian/patches/series     2020-05-14 11:05:30.551830206 +0100
--- b/debian/patches/series     2020-05-14 11:46:33.779291193 +0100
@@ -4,3 +4,4 @@
 fix-hurd-i386-flags.patch
 turn-off-fastmath-for-amd64.patch
 disable-crl-monitor.patch
+reproducible-build.patch

Reply via email to