1From 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---
12Upstream-Status: Pending
13
14 Makefile | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/Makefile b/Makefile
18index 599b1452a05a..7776b0f0d63d 100644
19--- a/Makefile
20+++ b/Makefile
21@@ -109,7 +109,7 @@ all: keyctl request-key key.dns_resolver cxx
22 ###############################################################################
23 #RPATH = -Wl,-rpath,$(LIBDIR)
24
25-VCPPFLAGS	:= -DPKGBUILD="\"$(shell date -u +%F)\""
26+VCPPFLAGS	:= -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\""
27 VCPPFLAGS	+= -DPKGVERSION="\"keyutils-$(VERSION)\""
28 VCPPFLAGS	+= -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
29
30--
312.39.0
32
33