Source: density-fitness
Severity: normal
Tags: patch
User: [email protected]
Usertags: timestamps 
X-Debbugs-Cc: [email protected]

The build time is embedded in /usr/bin/density-fitness:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/density-fitness.html

  Date: 2022-01-25
  vs.
  Date: 2020-12-24


The attached patch fixes this by adjusting the date command in
GNUmakefile.in to use SOURCE_DATE_EPOCH for the timestamp.


Thanks for maintaining density-fitness!


live well,
  vagrant
From 814c44fb5362c2fa4aba750c7aa2740d77c7f312 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Thu, 24 Dec 2020 09:01:44 +0000
Subject: [PATCH] revision.hpp: Patch to use SOURCE_DATE_EPOCH.

https://reproducible-builds.org/docs/source-date-epoch/
---
 GNUmakefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 5244291..8c7b12d 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -124,7 +124,7 @@ else
 src/revision.hpp:
 	@ echo 'const char kRevision[] = R"(' > $@
 	@ echo $(PROGRAM)-version: $(VERSION) >> $@
-	@ echo Date:   $$(date --iso-8601) >> $@
+	@ echo Date:   $$(date --utc --date=@$(SOURCE_DATE_EPOCH) --iso-8601) >> $@
 	@ echo ')";' >> $@
 
 endif
-- 
2.30.0.rc2

Attachment: signature.asc
Description: PGP signature

Reply via email to