Source: pmix
Severity: normal
Tags: patch
User: [email protected]
Usertags: username hostname
X-Debbugs-Cc: [email protected]

The build username and build system hostname are embedded in binaries
shipped in pmix:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/pmix.html

  ./usr/bin/pmix_info

  PMIx·pbuilder1@ionos5-amd64·Distribution
  vs.
  PMIx·pbuilder2@i-capture-the-hostname·Distribution

The attached patch fixes this by setting USER and HOSTNAME from
debian/rules, as documented in the upstream README.

This patch does not address all reproducibility issues in pmix
(e.g. build paths), though applying it reduces the diff for the
remaining issues.

Thanks for maintaining pmix!

live well,
  vagrant
From f0aeb53422edeeebc83a6b6e05c90094f1e93d56 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Wed, 23 Jun 2021 22:50:58 +0000
Subject: [PATCH] debian/rules: Set USER and HOSTNAME to avoid embedding in
 binaries.

The upstream README documents setting USER and HOSTNAME to avoid
embedding the build username and build hostname to achieve
Reproducible Builds.

https://tests.reproducible-builds.org/debian/issues/user_hostname_manually_added_requiring_further_investigation_issue.html
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index aca41ec..d46a821 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,10 @@ endif
 
 export LD_LIBRARY_PATH:=$(CURDIR)/debian/tmp/$(LIBDIR):$(LD_LIBRARY_PATH)
 
+# Do not embed build username or build system hostname, see README
+export HOSTNAME=hostname
+export USER=username
+
 %:
 	dh $@ 
 
-- 
2.32.0

Attachment: signature.asc
Description: PGP signature

Reply via email to