Debian Bug report logs - #1004002
segyio: reproducible-builds: BuildId differences triggered by RPATH

Package: src:segyio; Maintainer for src:segyio is Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Wed, 19 Jan 2022 07:06:01 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>:
Bug#1004002; Package src:segyio. (Wed, 19 Jan 2022 07:06:03 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>. (Wed, 19 Jan 2022 07:06:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: segyio: reproducible-builds: BuildId differences triggered by RPATH
Date: Tue, 18 Jan 2022 23:04:11 -0800
[Message part 1 (text/plain, inline)]
Source: segyio
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/segyio.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, segyio should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining segyio!

live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From fad6eefb9e8b9134a5453e9f94aed0898e67421c Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 19 Jan 2022 06:57:51 +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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 7c0a92f..bafd90c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,9 +20,9 @@ DTMPLIB := $(CURDIR)/debian/tmp/$(LIB_DIR)
 
 override_dh_auto_configure:
 	dh_auto_configure \
-		-- -DBUILD_SHARED_LIBS=ON -DBUILD_PYTHON=OFF
+		-- -DBUILD_SHARED_LIBS=ON -DBUILD_PYTHON=OFF -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
 	dh_auto_configure --builddirectory=$(STATIC) \
-		-- -DBUILD_SHARED_LIBS=OFF -DBUILD_PYTHON=OFF -DBUILD_TESTING=OFF
+		-- -DBUILD_SHARED_LIBS=OFF -DBUILD_PYTHON=OFF -DBUILD_TESTING=OFF -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
 
 override_dh_auto_clean:
 	dh_auto_clean
-- 
2.34.1

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:02:48 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.