Source: xir
Severity: normal
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

The RPATH contains the build path resulting in different buildid:

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

The attached patch to debian/rules passes
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via a dh_auto_configure override,
which should use a relative path for RPATH.

Alternately, updating the packaging to debhelper compat level 14 should
fix this, although it is currently an experimental compat level.

There is one other outstanding reproducible builds issue relating to
timestamps that I will submit shortly in a separate bug report, but once
both are fixed it should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining xir!


live well,
  vagrant
From 25b17deab5a932f375d08ab905e8cc0e94fcc1bf Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Sun, 13 Feb 2022 03:50:20 +0000
Subject: [PATCH 2/2] debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via
 dh_auto_configure override.

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index 7700fa4..b69b49f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=Debug \
+                 -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
                  -DCMAKE_CXX_FLAGS_DEBUG="-std=c++17"
 
 %:
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature

Reply via email to