Bug#1100016: hx: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Mar 10 10:57:25 GMT 2025


Source: hx
Version: 25.01.1-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the manual page embedded the current build path or
home directory of the build user:

    ./usr/share/man/man1/hx.1.gz
    @@ -33,15 +33,15 @@
     Increases logging verbosity each use for up to 3 times
     .TP
     \fB\-\-log\fR <file>
     Specifies a file to use for logging
    -(default file: /nonexistent/first\-build/.cache/helix/helix.log)
    +(default file: /nonexistent/second\-build/.cache/helix/helix.log)
     .TP

A patch is attached that makes the printed string from --help
deterministic which in turn makes the manual page deterministic. The
actual value used is still dynamic, however — i.e. the program's
behaviour remains unchanged.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-


-------------- next part --------------
diff --git helix-term/src/main.rs helix-term/src/main.rs
index 385a040..7fdf098 100644
--- helix-term/src/main.rs
+++ helix-term/src/main.rs
@@ -80,7 +80,7 @@ async fn main_impl() -> Result<i32> {
             VERSION_AND_GIT_HASH,
             env!("CARGO_PKG_AUTHORS"),
             env!("CARGO_PKG_DESCRIPTION"),
-            helix_loader::default_log_file().display(),
+            "$HOME/.cache/helix/helix.log",
         );
         std::process::exit(0);
     }


More information about the Reproducible-bugs mailing list