[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1024284: gentoo: reproducible-builds: home directory embedded in /usr/bin/gentoo



Source: gentoo
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The home directory of the build user is embedded in /usr/bin/gentoo:

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

The attached patch to src/Makefile.am fixes this by adding setting the
configuration option to a fixed value.

According to my local tests, with this patch applied, gentoo should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining gentoo!

live well,
  vagrant
From 2445243834ff430f55ed0e6bfa2abb4846a2f9dc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 16 Nov 2022 23:33:50 +0000
Subject: [PATCH] src/Makefile.am: Do not embed the build user's home directory

---
 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index eb0194c..07bd08b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -203,7 +203,7 @@ localedir=@localedir@
 
 AM_CFLAGS=@GENTOO_CFLAGS@ @GTK_CFLAGS@ -I../widgets \
   -DPATH_CFG=\"$(sysconfdir)\" \
-  -DPATH_GRC=\"$$HOME/\" \
+  -DPATH_GRC=\"/nonexistent/\" \
   -DPATH_ICN=\"$(datadir)/gentoo/icons\"\
   -DLOCALEDIR=\"$(localedir)\"
 
-- 
2.38.1

Attachment: signature.asc
Description: PGP signature


Reply to: