Debian Bug report logs - #1003373
go-for-it: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:go-for-it; Maintainer for src:go-for-it is Boyuan Yang <byang@debian.org>;

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

Date: Sun, 9 Jan 2022 02:36:01 UTC

Severity: normal

Tags: patch

Fixed in version go-for-it/1.9.6-3

Done: Boyuan Yang <byang@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, Boyuan Yang <byang@debian.org>:
Bug#1003373; Package src:go-for-it. (Sun, 09 Jan 2022 02:36: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, Boyuan Yang <byang@debian.org>. (Sun, 09 Jan 2022 02:36: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: go-for-it: reproducible-builds: BuildId differences triggered by RPATH
Date: Sat, 08 Jan 2022 18:32:27 -0800
[Message part 1 (text/plain, inline)]
Source: go-for-it
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/go-for-it.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, go-for-it should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining go-for-it!


live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 28760e375706a2058dc93757ee93ed3376bd96bc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Jan 2022 02:29:03 +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 679502c..5f65a55 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,4 +18,5 @@ export DEB_LDFLAGS_MAINT_APPEND =
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
+	        -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
 	        -DUSE_GRANITE=1
-- 
2.34.1

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

Reply sent to Boyuan Yang <byang@debian.org>:
You have taken responsibility. (Sat, 28 May 2022 17:30:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Sat, 28 May 2022 17:30:03 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1003373-close@bugs.debian.org
Subject: Bug#1003373: fixed in go-for-it 1.9.6-3
Date: Sat, 28 May 2022 17:26:23 +0000
Source: go-for-it
Source-Version: 1.9.6-3
Done: Boyuan Yang <byang@debian.org>

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

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated go-for-it 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: Sat, 28 May 2022 12:59:38 -0400
Source: go-for-it
Architecture: source
Version: 1.9.6-3
Distribution: unstable
Urgency: medium
Maintainer: Boyuan Yang <byang@debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 1003373
Changes:
 go-for-it (1.9.6-3) unstable; urgency=medium
 .
   * debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via
     dh_auto_configure override for reproducibility. (Closes: #1003373)
Checksums-Sha1:
 cf355790f34e9c04abf3fad973329cdb0af26217 2026 go-for-it_1.9.6-3.dsc
 6171e36c0beb3441d1b8ba7b342fbec1e72270da 661478 go-for-it_1.9.6.orig.tar.gz
 11767f725ef6bbd11a9276f4fa483917536397ac 4108 go-for-it_1.9.6-3.debian.tar.xz
 8cbead406c93ff612da6b792bd1a35078cf986f9 16776 go-for-it_1.9.6-3_amd64.buildinfo
Checksums-Sha256:
 87d82649bed24f1bf1646dcdffe69e761242f4af12101b49ece23d47a46a76fe 2026 go-for-it_1.9.6-3.dsc
 bd85f2ad839a5e547f2152a5d1e98786a5d3ba75169ccbdc34ad322f860a73ca 661478 go-for-it_1.9.6.orig.tar.gz
 d4d54e6551faf90f32beb8c33c85a0c2827adef02d7b3e21c899c7646cfa4397 4108 go-for-it_1.9.6-3.debian.tar.xz
 97b9a66c79dc133b1f312e4aea283608704393f9b40286ce95245e7b3a77a02f 16776 go-for-it_1.9.6-3_amd64.buildinfo
Files:
 b6be313df5a6d09b15b3d580bd550681 2026 utils optional go-for-it_1.9.6-3.dsc
 2d9312b1cae57e4881fe4c5b7db70f0a 661478 utils optional go-for-it_1.9.6.orig.tar.gz
 bb444decb5987e6455eed84ebda26ae0 4108 utils optional go-for-it_1.9.6-3.debian.tar.xz
 208b824e0ae5de777b92784acf8031f6 16776 utils optional go-for-it_1.9.6-3_amd64.buildinfo

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

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmKSVcUACgkQwpPntGGC
Ws5+cA/7BshkMPJVwc/goYsmvwlSj2SANRytLWPhVph1Ifui134586s29cnAn0WM
XPXQOyD/iCZsXpMaUCWcsXSSxq/o5bfo7zvD8+6w37RB23nAVwvEooQjE7dRJg0b
lUJwoMT9PpCa5UuMlRZbLbdi59tvCQbsI2Yc+eVlaXUsBp4kzJ3yAs/wDlEBR0my
gcer7+rA8qktxrD86OWP9NbdV0xXJyBFRwNVZ/VyFf0VAK9N8XVRB/ixjvlFKMZE
rClqBDsX0iPKJj2p4q0bVwrJGdnehFkcdASyPjs59YAyNE92/Jdfv3OnkkkCR6BJ
SjveWVh8oxR7Uq3edhgne5Gce+ewLYgDRXqvMY/+JMoUv2SNimYPqNs17jw6xeMe
3LeNjuoBrYBzhD+703AB4Z9WT+5ZZqN/UeLHdyGChV91rCw6l16erQozyjwM0OdT
lXffxVQ9DbVJKNVgx4uQ+BajUVgW329mGtIiNuR0zlVe6TfEsNucAF4WMxkW3Xuy
unDxpPN1wUpoHp2NVuQGezmF2l1iyxY1b0yWo4DhpI2agRagbGXTf/VEUs2fR7wM
MD4y3tNfHidk93NlLFWD75G56ygW7BHSSQrA6LNZGHbg0+Ob4cuhik8nt4nrKW7E
3q7eVgxQZjHeB2Tqhf2WJu7U1CQ08vtxjqZgJWQq/w+AHhnpLXY=
=I18w
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 01 Jul 2022 07:27:20 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:03:14 2023; Machine Name: bembo

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.