Source: lua-penlight
Version: 1.14.0-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

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

This is because running the tests curiously bumps the mtime of the
testclone.lua file. A patch is attached that resets the mtime of
this file to a deterministic value (and does so regardless of whether
the tests are run or not).

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-12-02 11:35:05.941211122 -0800
--- b/debian/rules      2025-12-02 11:43:30.837811424 -0800
@@ -2,3 +2,7 @@
 
 %:
        dh $@ --buildsystem=lua --with lua
+
+execute_before_dh_auto_install:
+       # Running the tests bumps the mtime of testclone.lua
+       touch -d@$(SOURCE_DATE_EPOCH) examples/testclone.lua

Reply via email to