Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 1 | From 3f7f70c746277e1a89978166533374a8b9bd5407 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> |
| 3 | Date: Wed, 25 Jan 2023 17:05:25 +0000 |
| 4 | Subject: [PATCH] Adhere to the SOURCE_DATE_EPOCH standard |
| 5 | |
| 6 | Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set |
| 7 | otherwise fall back to the default behaviour. |
| 8 | |
| 9 | Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl> |
| 10 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> |
| 11 | --- |
| 12 | Makefile | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/Makefile b/Makefile |
| 16 | index 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 | -- |
| 29 | 2.39.0 |
| 30 | |