Source: cadabra
Version: 1.39-0.2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [0], we have noticed
that cadabra could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, cadabra can be built reproducibly in our reproducible
toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.diff    1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.diff    2015-08-31 11:59:04.660316422 
+0100
@@ -0,0 +1,11 @@
+--- cadabra-1.39.orig/src/Makefile.in
++++ cadabra-1.39/src/Makefile.in
+@@ -22,7 +22,7 @@ MOBJS=modules/algebra.o modules/pertstri
+ 
+ SRCS      = `find . -name "*.cc"`
+ MCFLAGS   = @CFLAGS@ -I. -I@top_srcdir@/src `pkg-config modglue --cflags`
+-TIMESTAMP = -D"RELEASE=\"${RELEASE}\"" -D"DATETIME=\"`date | sed -e 's/  / 
/'`\"" -DHOSTNAME=\"`hostname`\"
++TIMESTAMP = -D"RELEASE=\"${RELEASE}\"" -D"DATETIME=\"`dpkg-parsechangelog 
-l../debian/changelog -SDate`\"" -DHOSTNAME=\"debian\"
+ 
+ 
+ 
--- a/debian/patches/series     2015-08-31 11:22:24.839231118 +0100
--- b/debian/patches/series     2015-08-31 11:36:22.503182354 +0100
@@ -1 +1,2 @@
 ldflags.diff
+reproducible-build.diff
_______________________________________________
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