Source: tortoize
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps timezone
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

/usr/bin/tortoize includes the build date:

   
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/armhf/diffoscope-results/tortoize.html

   709  Date:·2020-12-13        709     Date:·2020-12-14

The attached patch fixes this by passing arguments to the date command
to use SOURCE_DATE_EPOCH instead of the current time.

  https://reproducible-builds.org/docs/source-date-epoch/


Thanks for maintaining tortoize!


live well,
  vagrant
From b3ffb62c6a56947733402f9c3e66af04ce748a42 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 15 Dec 2020 01:25:59 +0000
Subject: [PATCH] revision.hpp: Use SOURCE_DATE_EPOCH for date string.

Also ensure locale and timezone are consistent.

https://reproducible-builds.org/docs/source-date-epoch/

This patch depends on features of GNU date and will need adjustment to
make more portable.
---
 GNUmakefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 56b64c8..030541e 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -128,7 +128,7 @@ else
 src/revision.hpp:
 	@ echo 'const char kRevision[] = R"(' > $@
 	@ echo tortoize-version: $(VERSION) >> $@
-	@ echo Date:   $$(date --iso-8601) >> $@
+	@ echo Date:   $$(LC_ALL=C date --utc --date=@$(SOURCE_DATE_EPOCH) --iso-8601) >> $@
 	@ echo ')";' >> $@
 
 endif
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature

Reply via email to