Bug#877384: rcs: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Oct 1 09:17:20 UTC 2017


Source: rcs
Version: 5.9.4-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that rcs could not be built reproducibly as it writes the build
date into the generated manpages.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.diff	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.diff	2017-10-01 10:13:57.131840326 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-10-01
+
+--- rcs-5.9.4.orig/man/Makefile.am
++++ rcs-5.9.4/man/Makefile.am
+@@ -54,7 +54,7 @@ $(dist_man_MANS) $(dist_noinst_MANS): RE
+ REL: $(top_srcdir)/configure
+ 	@{ echo '.ds Rv $(PACKAGE_VERSION)' ;		\
+ 	   date -u +'.ds Dt %Y-%m-%d'			\
+-	        -r $(top_srcdir)/configure ; } > $@t ;	\
++	        -d @$$SOURCE_DATE_EPOCH ; } > $@t ;	\
+ 	if [ -f $@ ] && cmp -s $@t $@ ;			\
+ 	  then rm -f $@t ;				\
+ 	  else mv $@t $@ ; echo Created $@ ;		\
--- a/debian/patches/series	2017-10-01 09:43:20.737420590 +0100
--- b/debian/patches/series	2017-10-01 10:13:55.935836047 +0100
@@ -1 +1,2 @@
 upstream-260704a916.diff
+reproducible-build.diff


More information about the Reproducible-bugs mailing list