Source: proj
Version: 9.1.1-1
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The RPATH contains the build path resulting in different buildid and
various other differences:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/proj.html

The attached patch modifies debian/rules to pass
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON to dh_auto_configure.

With this patch applied (and the fix for #1035704 for timezone
differences), based on my local tests, proj should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining proj!

live well,
  vagrant
From 8d10b60bdf740385e46bdba96b5b457825d34d2a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 29 May 2023 16:13:34 -0700
Subject: [PATCH 2/2] debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via
 dh_auto_configure.

This avoids embedding the full path in RPATH, which triggers BuildId
differences.

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

diff --git a/debian/rules b/debian/rules
index 3a624ff..b2ac4a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,7 +34,7 @@ override_dh_auto_clean:
 	dh_auto_clean
 
 override_dh_auto_configure: datumgrids
-	dh_auto_configure -- -DRUN_NETWORK_DEPENDENT_TESTS=OFF
+	dh_auto_configure -- -DRUN_NETWORK_DEPENDENT_TESTS=OFF -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
 
 override_dh_auto_test:
 # Ignore test failures on problematic architectures only
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature

Reply via email to