Source: unicode-data Version: 8.0-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the “reproducible builds” effort [1], we have noticed that unicode-data could not be built reproducibly. The attached patch sets TZ=UTC before calling unzip, ensuring that the modification time of the extracted files will not vary depending on the timezone of the build enviromnent. Once this patch is applied, unicode-data can be built reproducibly. [1]: https://wiki.debian.org/ReproducibleBuilds
--- debian/rules.orig 2015-06-20 15:14:56.000000000 +0300 +++ debian/rules 2015-10-07 16:38:16.972507828 +0300 @@ -17,8 +17,8 @@ dh_testdir mkdir -p $(SOURCE_DIR) mkdir -p $(STAMP_DIR) - (cd $(SOURCE_DIR) && unzip ../UCD.zip ) - (cd $(SOURCE_DIR) && unzip ../Unihan.zip ) + (cd $(SOURCE_DIR) && TZ=UTC unzip ../UCD.zip ) + (cd $(SOURCE_DIR) && TZ=UTC unzip ../Unihan.zip ) ( find $(SOURCE_DIR) -name '*txt' | while read f; do \ tr -d \\r < $$f > tmpf ; \ mv tmpf $$f ; \