blob: 8984e6502fbb9bdf9a6b88085977c2488aa3a577 [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From 3f7f70c746277e1a89978166533374a8b9bd5407 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Wed, 25 Jan 2023 17:05:25 +0000
4Subject: [PATCH] Adhere to the SOURCE_DATE_EPOCH standard
5
6Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set
7otherwise fall back to the default behaviour.
8
9Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
10Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
11---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/Makefile b/Makefile
16index 599b1452a05a..7776b0f0d63d 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -109,7 +109,7 @@ all: keyctl request-key key.dns_resolver cxx
20 ###############################################################################
21 #RPATH = -Wl,-rpath,$(LIBDIR)
22
23-VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\""
24+VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\""
25 VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\""
26 VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
27
28--
292.39.0
30