Source: cctools
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Various binaries embed the user homedir or the value of HOME:

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

  /usr/lib/libdttools.a
  32    /nonexistent/first-build/cctools        32      
/nonexistent/second-build/cctools


The attached patch fixes this by passing --prefix /usr to the configure
script, as it defaults to using the homedir otherwise.

  
https://tests.reproducible-builds.org/debian/issues/unstable/captures_home_dir_issue.html


live well,
  vagrant

From 234c4c206b2fdf5eb26d6088c81695600586166d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 11 Dec 2020 18:54:25 +0000
Subject: [PATCH 2/3] debian/rules: Pass --prefix /usr to configure to avoid
 embedding the home directory in the binaries.

https://tests.reproducible-builds.org/debian/issues/unstable/captures_home_dir_issue.html
---
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index 8ab2a75..48eb287 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,7 @@ override_dh_auto_configure:
 	# disable warning about unused results (necessary because warning is error
 	# is ON)
 	CFLAGS="$(CF) -I /usr/include/$(PY3) -DNDEBUG -Wno-unused-result" bash ./configure --with-globus-path /usr \
+		--prefix /usr \
 		--with-krb5-path /usr --with-readline-path /usr \
 		--with-mpi-path /usr --with-fuse-path /usr --with-zlib-path /usr \
 		--with-python3-path /usr/bin/python3 \
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature

Reply via email to