[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-fonts-devel] Bug#815723: fonts-justin: please make the build reproducible (timestamps)



Package: fonts-dustin
Version: 20030517-10
Severity: wishlist
Tags: patch

User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that fonts-justin could not be built reproducibly.

The attached patch sets TZ=UTC prior to unzip call to achieve consistent
timezones in the timestamps after unpacking.
fonts-justin can be built reproducibly in our current experimental framework.

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



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru fonts-dustin-20030517/debian/changelog fonts-dustin-20030517/debian/changelog
--- fonts-dustin-20030517/debian/changelog	2013-05-11 14:14:04.000000000 -0700
+++ fonts-dustin-20030517/debian/changelog	2016-02-23 16:30:44.000000000 -0800
@@ -1,3 +1,10 @@
+fonts-dustin (20030517-10.0~reproducible1) UNRELEASED; urgency=medium
+
+  * Add export TZ=UTC to fix timestamp timezone inconsistancy
+    to produce a reprociblbe build. 
+
+ -- Scarlett Clark <sgclark@kubuntu.org>  Tue, 23 Feb 2016 16:29:11 -0800
+
 fonts-dustin (20030517-10) unstable; urgency=low
 
   * Bump standards to 3.9.4 (checked)
diff -Nru fonts-dustin-20030517/debian/rules fonts-dustin-20030517/debian/rules
--- fonts-dustin-20030517/debian/rules	2013-05-11 14:06:46.000000000 -0700
+++ fonts-dustin-20030517/debian/rules	2016-02-23 18:17:50.000000000 -0800
@@ -5,11 +5,11 @@
 override_dh_install:
 	# Installing package
 	install -d -m 0755 debian/fonts-dustin/usr/share/fonts/truetype/dustin
-
+	
 	cd debian/fonts-dustin/usr/share/fonts/truetype/dustin && \
 	for ARCHIVE in $(CURDIR)/*.zip; \
 	do \
-		unzip $$ARCHIVE '*.ttf' || exit 1; \
+		TZ=UTC unzip $$ARCHIVE '*.ttf' || exit 1; \
 	done
 
 	# Fixing file names

Reply to: