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

The build timestamp is embedded in various /usr/share/doc/kawari8/ files
is timezone dependent:

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

  
-rw-r--r--···0·root·········(0)·root·········(0)····12246·2002-06-04·10:07:44.000000·./usr/share/doc/kawari8/html/banners/kawalinks.png
  vs.
  
-rw-r--r--···0·root·········(0)·root·········(0)····12246·2002-06-03·08:07:44.000000·./usr/share/doc/kawari8/html/banners/kawalinks.png

The attached patch to debian/rules fixes this by exporting the TZ
variable with the UTC timezone, as part of the build process unzips the
upstream .zip file, which sets the timestamps using the local timezone.

Another option might be to switch to using dpkg-source format 3.0 quilt,
debhelper/dh, and repacking the upstream .zip file into an .orig.tar.*
file using uscan and debian/watch. This probably has numerous other
benefits as well...


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

Thanks for maintaining kawari8!

live well,
  vagrant
From 6f15a73edfd20ad4385a571120fa2ace83b35543 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 9 Jun 2023 13:00:02 -0700
Subject: [PATCH] debian/rules: Export TZ=UTC variable.

Otherwise, unzip unpacks the upstream zip file setting some file
timestamps with a timezone-dependent timestamp.

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

diff --git a/debian/rules b/debian/rules
index 2343083..fffe7d2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,8 @@ include /usr/share/cdbs/1/class/makefile.mk
 DEB_MAKE_MAKEFILE	:= gcc.mak
 DEB_MAKE_CLEAN_TARGET	:=
 
+export TZ=UTC
+
 build/kawari8::
 	docbook-to-man debian/kosui.sgml > kosui.6
 	docbook-to-man debian/kawari_encode.sgml > kawari_encode.6
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature

Reply via email to