Source: debconf
Version: 1.5.56
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: environment

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that debconf could not be built reproducibly. The curent timezone gets
written to the PO template.

The attached patch—based on Git master—sets the timezone to UTC before
running xgettext. Once applied, debconf can be built reproducibly in our
current experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- 
Lunar                                .''`. 
[email protected]                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
From eebc6a2714b18746e13f71661b882ddbc93f8630 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <[email protected]>
Date: Fri, 24 Apr 2015 20:46:51 +0200
Subject: [PATCH] Use UTC when running xgettext for build reproducibility

---
 debian/changelog | 4 ++++
 po/Makefile      | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 02f26c6..eb081df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
 debconf (1.5.57) UNRELEASED; urgency=medium
 
+  [ Colin Watson ]
   * Drop alternative Suggests on gnome-utils.  It hasn't existed since
     squeeze, it dropped gdialog in 2003, and debconf only supported gdialog
     for about three weeks in 1999 anyway.
 
+  [ Jérémy Bobbio ]
+  * Use UTC when running xgettext for build reproducibility.
+
  -- Colin Watson <[email protected]>  Thu, 19 Mar 2015 10:42:49 +0000
 
 debconf (1.5.56) unstable; urgency=medium
diff --git a/po/Makefile b/po/Makefile
index 515a562..357e1cf 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -16,7 +16,7 @@ install: all
 
 debconf.pot: $(POTFILES)
 	@echo "Rebuilding the pot file"
-	xgettext $(POTFILES) -o debconf.pot -Lperl
+	TZ=UTC xgettext $(POTFILES) -o debconf.pot -Lperl
 
 clean:
 	rm -f $(MOFILES) messages messages.mo
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

Reply via email to