File reproducible.patch of Package nvidia-persistenced.cuda
From a10eda7757af97806f968048a85bddcc5de6544f Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Thu, 26 Sep 2024 14:40:16 +0200
Subject: [PATCH] Use input mtime as date in man page
See https://reproducible-builds.org/ for why this is good
This date call is designed to work with different flavors of 'date'.
This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e69400e..4491148 100644
--- a/Makefile
+++ b/Makefile
@@ -175,7 +175,7 @@ $(OPTIONS_1_INC): $(GEN_MANPAGE_OPTS)
$(MANPAGE_not_gzipped): nvidia-persistenced.1.m4 $(OPTIONS_1_INC) $(VERSION_MK)
$(call quiet_cmd,M4) -D__HEADER__=$(AUTO_TEXT) -I $(OUTPUTDIR) \
-D__VERSION__=$(NVIDIA_VERSION) \
- -D__DATE__="`$(DATE) +%F`" \
+ -D__DATE__="`$(DATE) -u -r nvidia-persistenced.1.m4 +%F || $(DATE) +%F`" \
-D__BUILD_OS__=$(TARGET_OS) \
$< > $@