Debian Bug report logs - #1001870
meshlab: reproducible-builds: BuildId differences triggered by RPATH

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

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

Date: Sat, 18 Dec 2021 00:09: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 Team <debian-science-maintainers@lists.alioth.debian.org>:
Bug#1001870; Package src:meshlab. (Sat, 18 Dec 2021 00:09: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 Team <debian-science-maintainers@lists.alioth.debian.org>. (Sat, 18 Dec 2021 00:09: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: meshlab: reproducible-builds: BuildId differences triggered by RPATH
Date: Fri, 17 Dec 2021 16:04:30 -0800
[Message part 1 (text/plain, inline)]
Source: meshlab
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/meshlab.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.

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

Thanks for maintaining meshlab!

live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From e6d836f045f54a4626cbcd3691c2eeb6f7254fec Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 17 Dec 2021 23:59:39 +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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index 8a7e79be..280884de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,7 @@ override_dh_auto_configure:
 	                     -DALLOW_BUNDLED_OPENCTM=OFF \
 	                     -DALLOW_BUNDLED_QHULL=OFF \
 	                     -DALLOW_BUNDLED_XERCES=OFF \
+	                     -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
 
 # Make plugins only "recommends"
 override_dh_shlibdeps:
-- 
2.34.1

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

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>:
Bug#1001870; Package src:meshlab. (Sat, 18 Dec 2021 00:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ryan Pavlik <ryan.pavlik@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>. (Sat, 18 Dec 2021 00:33:03 GMT) (full text, mbox, link).


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

From: Ryan Pavlik <ryan.pavlik@gmail.com>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1001870@bugs.debian.org
Subject: Re: Bug#1001870: meshlab: reproducible-builds: BuildId differences triggered by RPATH
Date: Fri, 17 Dec 2021 18:29:10 -0600
[Message part 1 (text/plain, inline)]
Oh wow, thanks! I was trying to figure out why it wasn't reproducible even
though it "should have" been. I'll apply this soon.

On Fri, Dec 17, 2021, 6:09 PM Vagrant Cascadian <
vagrant@reproducible-builds.org> wrote:

> Source: meshlab
> 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/meshlab.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.
>
> With this patch applied, meshlab should build reproducibly on
> tests.reproducible-builds.org!
>
> Thanks for maintaining meshlab!
>
> live well,
>   vagrant
>
[Message part 2 (text/html, 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:09:44 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.