Source: amanda
Version: 1:3.3.8-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 amanda 
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 1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/reproducible-build 2016-07-10 21:47:23.940480073 +0200
@@ -0,0 +1,20 @@
+--- amanda-3.3.8.orig/common-src/Makefile.am
++++ amanda-3.3.8/common-src/Makefile.am
+@@ -10,6 +10,8 @@ INCLUDES =      -I$(top_srcdir)/gnulib
+ AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
+ AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
+ 
++BUILD_DATE = $(shell date --utc --date="@${SOURCE_DATE_EPOCH:-$(shell date 
+%s)}")
++
+ amlib_LTLIBRARIES =   libamanda.la
+ 
+ sbin_PROGRAMS = amservice
+@@ -157,7 +159,7 @@ genversion.$(OBJEXT): $(genversion_SOURC
+ genversion.h: $(top_builddir)/config.status
+       -rm -f $@ $@.new
+       echo '#define CC "$(CC)"' > $@.new
+-      echo '#define BUILT_DATE "'`date`'"' >> $@.new
++      echo '#define BUILT_DATE "'$(BUILD_DATE)'"' >> $@.new
+       echo '#define BUILT_MACH "$(target)"' >> $@.new
+       mv $@.new $@
+ 
--- a/debian/patches/series     2016-07-10 21:08:23.359900761 +0200
--- b/debian/patches/series     2016-07-10 21:20:57.931784960 +0200
@@ -10,3 +10,4 @@
 fix-amgtar-exclude
 fix-lintian-miss-spelling-amanda.conf.5.xml
 fix-lintian-miss-spelling-amanda-changers.7.xml
+reproducible-build
_______________________________________________
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