Debian Bug report logs - #1003915
mathgl: reproducible-builds: BuildId differences triggered by RPATH

version graph

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

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

Date: Tue, 18 Jan 2022 00:57:01 UTC

Severity: normal

Tags: patch

Fixed in version mathgl/8.0.1-2

Done: Rafael Laboissière <rafael@debian.org>

Bug is archived. No further changes may be made.

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#1003915; Package src:mathgl. (Tue, 18 Jan 2022 00:57: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>. (Tue, 18 Jan 2022 00:57: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: mathgl: reproducible-builds: BuildId differences triggered by RPATH
Date: Mon, 17 Jan 2022 16:55:39 -0800
[Message part 1 (text/plain, inline)]
Source: mathgl
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/mathgl.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, mathgl should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining mathgl!

live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From c5f7530ed115ef9be65861e69271185c423ffe0a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 18 Jan 2022 00:52:33 +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 c4570b9..66929a7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,6 +43,7 @@ override_dh_auto_configure:
                 -Denable-qt5asqt=ON		\
                 -Denable-json-sample=ON		\
                 -Denable-json-sample-we=ON	\
+                -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
                 -Denable-python=ON
 
 override_dh_python3:
-- 
2.34.1

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

Reply sent to Rafael Laboissière <rafael@debian.org>:
You have taken responsibility. (Mon, 30 May 2022 12:54:04 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Mon, 30 May 2022 12:54:04 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1003915-close@bugs.debian.org
Subject: Bug#1003915: fixed in mathgl 8.0.1-2
Date: Mon, 30 May 2022 12:50:56 +0000
Source: mathgl
Source-Version: 8.0.1-2
Done: Rafael Laboissière <rafael@debian.org>

We believe that the bug you reported is fixed in the latest version of
mathgl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1003915@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rafael Laboissière <rafael@debian.org> (supplier of updated mathgl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 30 May 2022 07:04:37 -0300
Source: mathgl
Architecture: source
Version: 8.0.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Rafael Laboissière <rafael@debian.org>
Closes: 1003915
Changes:
 mathgl (8.0.1-2) unstable; urgency=medium
 .
   [ Rafael Laboissière ]
   * d/control: Bump Standards-Version to 4.6.1 (no changes needed)
 .
   [ Vagrant Cascadian ]
   * d/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via dh_auto_configure override
     (Closes: #1003915)
Checksums-Sha1:
 55bd518a0c6c17f71bcf1ff368b49b8ea3a44758 3277 mathgl_8.0.1-2.dsc
 190bafd09691572b70f3dfb80dbceaf493527e0c 13420 mathgl_8.0.1-2.debian.tar.xz
Checksums-Sha256:
 86511b87af2bc41b2c41193bad304656a230069d2e82b2c3f7f62c3c62f8d200 3277 mathgl_8.0.1-2.dsc
 e1e742524e1713a5a1dcef7c6080bafb64adc075bf68b33cf6e7e8d276b75ec2 13420 mathgl_8.0.1-2.debian.tar.xz
Files:
 0f1182c2ae64342ad194d0d03ce593c6 3277 science optional mathgl_8.0.1-2.dsc
 3425a7bad1950fbca5519dee2351b0be 13420 science optional mathgl_8.0.1-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCAAwFiEEP0ZDkUmP6HS9tdmPISSqGYN4XJAFAmKUuV0SHHJhZmFlbEBk
ZWJpYW4ub3JnAAoJECEkqhmDeFyQDzwP/i7il2WIdLfAYRZj2GfRGxwe/FKuDanH
rSnkHrrt7Vsne4mv+8p33p161mcuUXsmShoMI848QeOZWivmfE1od2J8Lxr0DDIt
ibJxNA6NnEjML4CgvHUlnli2sa/COWEjRTjvmrK7dIMb4BQSFw9Kav7l2BpiJSF1
CUSTaGqE8thowF4JC/j4qfiS5qzTnnqCCHtI7wxoALluyuzJFZaKlhA1ZJMbMGJV
TLSQu2DvkzWvosdwfUH9LvLcTGD5Xn5z3YR3H4P2P8DgFzF9lLkkKHI0T1+Dnk6C
6pMVoKaKzAshqqFCwV8iNKS7Zj60S87diFiku/aCurZOzi5E0Rmc3RcFbmMMTrG/
6kwNWSh3eVBEC8ZVnXvA7Rf77JrAlZ1/OFXIqNmDLUu2tz7AsLMfHKgNA1OU/XNt
gybkFqRQXDIof1hIBU0DW32EUWxTzheWStlMffEYOuaqySJiM7mkh5bwsiUqUtTu
dsgIBcbUv35hVIGjxVoBMOHqIJ6OIj0MxymjMa0/QfX+JUWkJlxmgy/Nf7nhxEg6
z8Qqtw37Yhv6e/79CBYIOxKqXBEe1Cnn6HnmP7Z2TtLd1YeIU/5bhtaaaGCMPN1/
iFimV9ePYpU04F0ZrSroDD/VR4tOfuvvQqegJBFW02tELajUYSoJgi3m1Fn9Z8ci
+SaLqI7vO5m2
=uucW
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 02 Jul 2022 07:25:32 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:04:15 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.