Source: yuzu
Version: 0-1734+ds-9
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timezones
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to