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

The file /usr/bin/cxref-cpp-configure embeds the path to grep, which is
in a different location on a usrmerge vs. non-usrmerge system.

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/cxref.html
         
  EGREP="/bin/grepĀ·-E"
vs.
  EGREP="/usr/bin/grepĀ·-E"

Patch attached which hard-codes the value of EEGREP to use the
non-usrmerge path (e.g. /bin/grep), as usrmerge installations typically
have compatibility symlinks, but not vice-versa.

With this patch applied (and the patch for timestamps previously
submitted), cxref should build reproducibly on
tests.reproducible-builds.org in the testing/bookworm suite. On
tests.reproducible-builds.org unstable and experimental also vary build
paths, which trigger issues in the documentation.


Thanks for maintaining cxref!


live well,
  vagrant
From 0f5bc18bb094b9c199b2471830e2a25ee255c04c Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 5 Oct 2021 05:54:24 +0000
Subject: [PATCH 2/2] cpp/cxref-cpp-configure.in: Use specific path for EGREP.

This hard-codes the path to grep to ensure reproducible builds
regardless of weather the package was built on a usrmerge or
non-usrmerge system.

Passing EGREP via configure did not appear to work, possibly due to
makefile variable inheritence issues, though that would be preferable
if it could be made to work.

https://tests.reproducible-builds.org/debian/issues/unstable/paths_vary_due_to_usrmerge_issue.html
---
 cpp/cxref-cpp-configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/cxref-cpp-configure.in b/cpp/cxref-cpp-configure.in
index d37764f..ab50792 100755
--- a/cpp/cxref-cpp-configure.in
+++ b/cpp/cxref-cpp-configure.in
@@ -18,7 +18,7 @@
 # Programs and paths
 # (Default to the ones from the configure script).
 
-EGREP="@EGREP@"
+EGREP="/bin/egrep -E"
 
 prefix="@prefix@"
 datarootdir="@datarootdir@"
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature

Reply via email to