Source: rcs Version: 5.9.4-3 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
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 `. `'` [email protected] / chris-lamb.co.uk `-
--- 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 <[email protected]> +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

