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

The build timestamp in various manpages varies dependent on timezone:

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

  /usr/share/man/man1/dig.1.gz

  .TH·"DIG"·"1"·"2021-10-12"·"9.17.19-3-Debian"·"BIND·9"
  vs.
  .TH·"DIG"·"1"·"2021-10-14"·"9.17.19-3-Debian"·"BIND·9"

The attached patch fixes this by adjusting the call to "date" in
configure.ac to explicitly use the UTC timezone.


Unfortunately, this does not resolve all reproducibility issues
(e.g. build path), but with this patch applied, bind9 should build
reproducibly on tests.reproducible-builds.org when it migrates to the
testing/bookworm suite (where build paths are not tested).


Thanks for maintaining bind9!


live well,
  vagrant
From afc3707e3935645c5c6388ca19b3ee825e0d3395 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 30 Nov 2021 20:31:20 +0000
Subject: [PATCH] configure.ac: Set release_date using UTC timezone.

https://reproducible-builds.org/docs/timestamps/
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ffcc69f..126182f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1238,7 +1238,7 @@ AM_CONDITIONAL([HAVE_XELATEX], [test "$XELATEX" != ":" && test "$LATEXMK" != ":"
 # Pull release date from CHANGES file last modification date
 # for reproducible builds
 #
-release_date=`date -r CHANGES +%Y-%m-%d`
+release_date=`date -u -r CHANGES +%Y-%m-%d`
 AC_SUBST([RELEASE_DATE], $release_date)
 
 #
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature

Reply via email to