Source: magic
Version: 7.5.241-1
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 [1], we have noticed
that magic could not be built reproducibly.

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

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad magic.orig/magic-7.5.241/debian/patches/07-reproducible-build.patch 
magic/magic-7.5.241/debian/patches/07-reproducible-build.patch
--- magic.orig/magic-7.5.241/debian/patches/07-reproducible-build.patch 
1970-01-01 01:00:00.000000000 +0100
+++ magic/magic-7.5.241/debian/patches/07-reproducible-build.patch      
2015-02-12 23:12:09.332451746 +0000
@@ -0,0 +1,11 @@
+--- magic-7.5.241.orig/tcltk/Makefile
++++ magic-7.5.241/tcltk/Makefile
+@@ -8,7 +8,7 @@ SRCS = tclmagic.c
+ 
+ include ${MAGICDIR}/defs.mak
+ 
+-DFLAGS += -DMAGIC_DATE="\"`date`\""
++DFLAGS += -DMAGIC_DATE="\"`dpkg-parsechangelog -l../debian/changelog 
--show-field Date`\""
+ CLEANS += magic.sh magic.tcl magicexec magicdnull
+ 
+ TCL_FILES = \
diff -urNad magic.orig/magic-7.5.241/debian/patches/series 
magic/magic-7.5.241/debian/patches/series
--- magic.orig/magic-7.5.241/debian/patches/series      2015-02-12 
22:30:06.606443393 +0000
+++ magic/magic-7.5.241/debian/patches/series   2015-02-12 23:12:06.200314190 
+0000
@@ -4,3 +4,4 @@
 04-fhs-images.patch
 05-readline-reference-removal.patch
 06-script-adjustments.patch
+07-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