Bug#868133: grep: please make the build reproducible

2017-07-12 Thread Santiago R.R.
Control: tags -1 + pending

El 12/07/17 a las 11:36, Chris Lamb escribió:
> Source: grep
> Version: 3.1-1
> Severity: wishlist
> Tags: patch
> User: reproducible-bui...@lists.alioth.debian.org
> Usertags: timestamps
> X-Debbugs-Cc: reproducible-b...@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.

Hi Chris, and thanks for the heads-up. A patch of mine introduced the
unreproducibility issue. I'll upload a new version replacing it with an
upstream patch that should be OK.

Cheers,

Santiago



Bug#868133: grep: please make the build reproducible

2017-07-12 Thread Chris Lamb
Source: grep
Version: 3.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@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
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
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.am2017-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 $@