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

A timezone-dependent timestamp is embedded in /usr/games/edid-decode:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/edid-decode.html

  2022-03-29·21:29:27
  vs.
  2022-03-30·23:29:27

The attached patch to debian/rules fixes this by ensuring the date is
output in the UTC timezone.

According to my local tests, with this patch applied, edid-decode should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining edid-decode!

live well,
  vagrant
From 0fe1154a34f3c54e8e7572a2d643400acb76dfca Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 20:33:21 +0000
Subject: [PATCH] debian/rules: Use UTC date to ensure reproducible builds
 regardless of timezone.

https://reproducible-builds.org/docs/timezones/
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 790d3bd..6a9cf70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,4 @@ include /usr/share/dpkg/pkg-info.mk
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build -- sha=-DSHA=$(lastword $(subst ., ,$(DEB_VERSION_UPSTREAM))) date=-DDATE=\""$(shell date -d@$(SOURCE_DATE_EPOCH) '+%F %T')"\"
+	dh_auto_build -- sha=-DSHA=$(lastword $(subst ., ,$(DEB_VERSION_UPSTREAM))) date=-DDATE=\""$(shell date -u -d@$(SOURCE_DATE_EPOCH) '+%F %T')"\"
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to