Bug#1148977: yuzu: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Sep 25 21:41:16 BST 2026


Source: yuzu
Version: 0-1734+ds-9
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timezones
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
yuzu could not be built reproducibly.

This is because it generates a version number via stat(1), but the output
of this command will vary on the local timezone. A patch is attached that
will always use UTC when generating this value.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-09-25 11:45:34.591545379 -0700
--- b/debian/rules	2026-09-25 13:10:52.399530549 -0700
@@ -75,7 +75,7 @@
 		-DYUZU_TESTS=$(test) \
 		-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=true \
 		-DTZDB2NX_ZONEINFO_DIR=/usr/share/zoneinfo \
-		-DTZDB2NX_VERSION=$$(stat -c '%y' /usr/share/zoneinfo/tzdata.zi | sed 's/\(....-..-..\).*/\1/' | tr -dc '[:digit:]') \
+		-DTZDB2NX_VERSION=$$(TZ=UTC stat -c '%y' /usr/share/zoneinfo/tzdata.zi | sed 's/\(....-..-..\).*/\1/' | tr -dc '[:digit:]') \
 		-DCMAKE_BUILD_TYPE=$(build_type) \
 		-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$(lto) \
 		-DCMAKE_POLICY_DEFAULT_CMP0069=NEW


More information about the Reproducible-bugs mailing list