Bug#868133: grep: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Jul 12 10:36:49 UTC 2017
Source: grep
Version: 3.1-1
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 grep could not be built reproducibly.
Patch attached. Note that it modifies a file that is already modified
by an existing patch; I'll leave it up to you how you wish to merge
these.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb, Debian Project Leader
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
diff -urNad grep-3.1.orig/doc/Makefile.am grep-3.1/doc/Makefile.am
--- grep-3.1.orig/doc/Makefile.am 2017-07-12 11:29:24.203409945 +0100
+++ grep-3.1/doc/Makefile.am 2017-07-12 11:34:50.965695232 +0100
@@ -24,7 +24,11 @@
EXTRA_DIST = grep.in.1
CLEANFILES = grep.1 egrep.1 fgrep.1
+ifdef SOURCE_DATE_EPOCH
+MAN_PAGE_UPDATED=$(shell LC_ALL=C date --utc --date="$(SOURCE_DATE_EPOCH" '+%d %B %Y')
+else
MAN_PAGE_UPDATED=$(shell $(top_srcdir)/build-aux/mdate-sh $(srcdir)/grep.in.1)
+endif
grep.1: grep.in.1
$(AM_V_GEN)rm -f $@-t $@
More information about the Reproducible-bugs
mailing list