Source: siso
Version: 1.5.19+ds-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness environment
X-Debbugs-Cc: [email protected]

Hi,

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

This is because the manpage embeds three nondetermistic values; two
UUIDs and the absolute path to the build user's home directory.

A hacky patch is attached that post-processes the manpage in debian/rules,
although a better solution would be to modify the upstream code to
calculate these values separate from "flags" module's concept of 
default values.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-07-08 08:55:32.828234029 -0700
--- b/debian/rules      2026-07-08 09:23:02.240662655 -0700
@@ -34,6 +34,11 @@
 override_dh_auto_build:
        dh_auto_build -- -buildmode=pie
        debian/build/bin/siso man -out debian/siso.1
+       sed -i \
+               -e 
's@\(-build_id\\fR=\\fI\).*\(\\fR\)@\1<automatically\\-generated>\2@' \
+               -e 
's@\(-job_id\\fR=\\fI\).*\(\\fR\)@\1<automatically\\-generated>\2@' \
+               -e 
's@\(-cache_dir\\fR=\\fI\).*\(\\fR\)@\1$$HOME/.cache/siso\2@' \
+               debian/siso.1
        cat debian/siso.1.tail >> debian/siso.1
 
 override_dh_auto_install:

Reply via email to