File: 827_make-build-reproducible.patch

package info (click to toggle)
hylafax 3%3A6.0.7-13
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 10,848 kB
  • sloc: sh: 15,305; ansic: 14,429; makefile: 1,562; cpp: 781; awk: 529
file content (25 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Package:     hylafax
Subject:     make build reproducible
Author:      Joachim Wiedorn <joodebian at joonet.de>
Bug-Debian:  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790355
Forwarded:   no
Last-Update: 2016-11-10

The attached patch removes changing timestamps from the build system.
Once applied, hylafax can be built reproducibly in our reproducible
toolchain.
---

diff -urN s826/configure s827/configure
--- s826/configure	2016-11-10 21:35:51.675710483 +0100
+++ s827/configure	2016-11-10 22:31:22.091611089 +0100
@@ -470,7 +470,8 @@
 $RM ./config.log
 exec 5>./config.log			# compiler messages and the like
 
-DATE=`date`
+# make build reproducible
+DATE=`dpkg-parsechangelog -SDate`
 
 eval `cat $SRCDIR/VERSION | sed 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)[.-]\([0-9]*\)\(.*\)/DIST_MAJOR=\1; DIST_MINOR=\2; DIST_PATCH=\3; DIST_TYPE=\4/'`
 DIST_ALPHA=`awk '{print $3}' $SRCDIR/dist/hylafax.alpha`