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

Bug#1003992: akonadi-contacts: reproducible-builds: BuildId differences triggered by RPATH



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

The RPATH contains the build path resulting in different buildid:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/akonadi-contacts.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.

With this patch applied, akonadi-contacts should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining akonadi-contacts!

live well,
  vagrant
From 50c5907c9c940a04d5183f1d98a4ffd5a3da780b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 18 Jan 2022 21:18:48 +0000
Subject: [PATCH] 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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index c53837e..5d93d7d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,3 +19,6 @@ override_dh_makeshlibs:
 
 override_dh_auto_test:
 	xvfb-run -- dh_auto_test --no-parallel
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature


Reply to: