archrelease: copy trunk to staging-x86_64
[arch-packages.git] / keyutils / trunk / reproducible.patch
blobdb5cfe82c3b55b850522f757ee6b8ff69d63b0e1
1 Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set
2 otherwise fall back to the default behaviour.
4 Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
5 ---
6 Makefile | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
9 diff --git a/Makefile b/Makefile
10 index 33a451e..9066d5d 100644
11 --- a/Makefile
12 +++ b/Makefile
13 @@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver
14 ###############################################################################
15 #RPATH = -Wl,-rpath,$(LIBDIR)
17 -VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\""
18 +VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\""
19 VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\""
20 VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
22 --
23 2.21.0