Debian Bug report logs - #1003804
imath: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:imath; Maintainer for src:imath is Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>;

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

Date: Sun, 16 Jan 2022 00:12:02 UTC

Severity: normal

Tags: patch

Fixed in version imath/3.1.4-2

Done: Mathieu Malaterre <malat@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 PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>:
Bug#1003804; Package src:imath. (Sun, 16 Jan 2022 00:12:04 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 PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>. (Sun, 16 Jan 2022 00:12:04 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: imath: reproducible-builds: BuildId differences triggered by RPATH
Date: Sat, 15 Jan 2022 16:08:15 -0800
[Message part 1 (text/plain, inline)]
Source: imath
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/imath.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 are still other outstanding reproducibility issues even with this
patch applied, but applying this patch should reduce the diff
significantly, allowing diffoscope runs on tests.reproducible-builds.org
to complete before timing out.


Thanks for maintaining imath!


live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 28fa4ee3a093404e5bb38df628660a8c004f3666 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 15 Jan 2022 23:00:25 +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 c66b57f..03cb3e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,7 @@ endif
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		-DDOCS=$(BUILDDOC) \
+		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
 		-DPYTHON=ON
 
 # https://github.com/AcademySoftwareFoundation/Imath/issues/226
-- 
2.34.1

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

Reply sent to Mathieu Malaterre <malat@debian.org>:
You have taken responsibility. (Mon, 21 Feb 2022 13:36:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Mon, 21 Feb 2022 13:36:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1003804-close@bugs.debian.org
Subject: Bug#1003804: fixed in imath 3.1.4-2
Date: Mon, 21 Feb 2022 13:33:52 +0000
Source: imath
Source-Version: 3.1.4-2
Done: Mathieu Malaterre <malat@debian.org>

We believe that the bug you reported is fixed in the latest version of
imath, 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 1003804@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mathieu Malaterre <malat@debian.org> (supplier of updated imath 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: SHA512

Format: 1.8
Date: Mon, 21 Feb 2022 14:09:14 +0100
Source: imath
Architecture: source
Version: 3.1.4-2
Distribution: unstable
Urgency: medium
Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
Changed-By: Mathieu Malaterre <malat@debian.org>
Closes: 1003804
Changes:
 imath (3.1.4-2) unstable; urgency=medium
 .
   [ Mathieu Malaterre ]
   * Team upload.
   * d/rules: Make sure to remove another FATAL_ERROR from cmake config files
 .
   [ Vagrant Cascadian ]
   * debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via dh_auto_configure override. Closes: #1003804
Checksums-Sha1:
 5e8b5f55c59b1d1e1eb0684f827e47834731cb8d 2482 imath_3.1.4-2.dsc
 39c8832f32e43ad8a329b8b19db66ced3cead748 8780 imath_3.1.4-2.debian.tar.xz
 9be50068fe76dc70036563da25d018c849b90165 8977 imath_3.1.4-2_source.buildinfo
Checksums-Sha256:
 8892dff4a998bd709bdcd21d594c4ce189bcf0b9601c0c474d4cf55f7fd7e782 2482 imath_3.1.4-2.dsc
 614050a02f86e91ce0c18a2a7afca1f29bc93d799b328be68346c801aa6f6df2 8780 imath_3.1.4-2.debian.tar.xz
 3aa5489a577ede39162877759882d2265ef146e4a53c7b2e868bbb97262965da 8977 imath_3.1.4-2_source.buildinfo
Files:
 bbe2091254440e25e82ea415a28d5d63 2482 libs optional imath_3.1.4-2.dsc
 f15ceac3f9ee72eea900d2025e1d568b 8780 libs optional imath_3.1.4-2.debian.tar.xz
 e9de14c793495a84d14267b6eed10a84 8977 libs optional imath_3.1.4-2_source.buildinfo

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

iQJFBAEBCgAvFiEEaTNn/67NjqrNHwY7AXHhgorgk0UFAmITj68RHG1hbGF0QGRl
Ymlhbi5vcmcACgkQAXHhgorgk0Up+Q//aH6pPrX4FvrAVFmWcDQQGxjaUdRFj/bl
dhdBrU039xokZKMPTbXPnOOWyQWcYN55W6v+Y+p6TIyJ/ZCihrQc8bbbMxXVj+qi
hnmD8IFvIjR8DyM3RFHr+WKZWKOP8+BidUMlWFUBQOWIDPuWxha9/OiBcKjB5bww
2hABvYJ3qCV6cqp0Hevzuh/sSV3f1pwXzKPECWQUsYY3SXJ/iG5RNo+fZOgUJuCC
fXeBLs2LqVODSgm7SgN1J5EJe8SY5gSLj/OPiJ93lkiuWFQ1eCt0PLyzoCVAK6jj
lcyZ+tJbDqsN1KUbRzJFGL3QWDVJzOQWYvuCqNon4eN05M+rVmkADW4G5VS4LD7y
6voVkSpDDjUaPXKaSaMkIMjFQX/jK/0dq5YoY2P4jZiVwmVxIEp5z+gkG5hcXxjU
IH2Ec+TqWq//xZMxXJnm2hXCvlD4etE2PShUCLsFy3q8qDmFtC0KYDp3FihBcdUU
dzAXAIdsCGnkVt3tINSz6n/1VEMe2H5VTWv/OmI1LTUpbCmPbA0Vt1wu92cCHPeL
n+XjhJNgn3EkttHbsahi6Nln7XkZcTNuMO+24/86Ny5ywLjvHLXnt/RQOw5RTCJI
uaFF5xF/FHfus7fPHYwO7lrh+Mk79XowNx14+zQKSnYHTiq+0rPvmDBoVyXWntgb
j8dh1X2VpSg=
=fi3f
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 14 Apr 2022 07:24:44 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:10 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.