Make keyutils reproducible
Subsystems (2)
PATCH 1/1 Make keyutils reproducible
Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set otherwise fall back to the default behaviour.
Signed-off-by Jelle van der Waa <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver ############################################################################### #RPATH = -Wl,-rpath,$(LIBDIR) -VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\"" +VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\"" VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\"" VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
Signature · 1 line
2.21.0