File: Make-build-reproducible.patch

package info (click to toggle)
keyutils 1.6.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,372 kB
  • sloc: sh: 5,429; ansic: 4,813; makefile: 278
file content (27 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (2)
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
26
27
From: Christian Kastner <ckk@kvr.at>
Date: Wed, 7 Oct 2015 20:21:58 +0200
Subject: Make build reproducible

Make the build reproducible by making it possible to set the build date,
instead of embedding the current date.

Forwarded: not-needed
Last-Update: 2015-10-07
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 211b303..51c3491 100644
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,8 @@ all: keyctl request-key key.dns_resolver cxx
 ###############################################################################
 #RPATH = -Wl,-rpath,$(LIBDIR)
 
-VCPPFLAGS	:= -DPKGBUILD="\"$(shell date -u +%F)\""
+BUILDDATE	?= $(shell date -u +%F)
+VCPPFLAGS	:= -DPKGBUILD="\"$(BUILDDATE)\""
 VCPPFLAGS	+= -DPKGVERSION="\"keyutils-$(VERSION)\""
 VCPPFLAGS	+= -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""