Debian Bug report logs -
#1001850
userbindmount: reproducible-builds: BuildId differences triggered by RPATH
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 17 Dec 2021 19:48:02 UTC
Severity: normal
Tags: patch
Fixed in version userbindmount/0.1-3
Done: Andrea Capriotti <capriott@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian VirtualSquare Team <virtualsquare@cs.unibo.it>:
Bug#1001850; Package src:userbindmount.
(Fri, 17 Dec 2021 19:48: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 VirtualSquare Team <virtualsquare@cs.unibo.it>.
(Fri, 17 Dec 2021 19:48:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: userbindmount
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/userbindmount.html
The attached patch to debian/rules passes -DCMAKE_SKIP_RPATH=ON via a
dh_auto_configure override, which should remove the RPATH.
With this patch applied, userbindmount should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining userbindmount!
live well,
vagrant
[0001-debian-rules-Pass-CMAKE_SKIP_RPATH-ON-via-dh_auto_co.patch (text/x-diff, inline)]
From 86ffe8d9c56f6f56c3b9036fac4c3ef74d100221 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 17 Dec 2021 19:28:52 +0000
Subject: [PATCH] debian/rules: Pass CMAKE_SKIP_RPATH=ON via dh_auto_configure
override.
Without this, the build path triggers differences in the BuildId.
https://tests.reproducible-builds.org/debian/issues/unstable/build_id_differences_only_issue.html
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index 0c696bd..5db920f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,5 +16,8 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
+override_dh_auto_configure:
+ dh_auto_configure -- -DCMAKE_SKIP_RPATH=ON
+
override_dh_auto_install:
dh_auto_install --destdir debian/tmp
--
2.34.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian VirtualSquare Team <virtualsquare@cs.unibo.it>:
Bug#1001850; Package src:userbindmount.
(Fri, 17 Dec 2021 20:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to Debian VirtualSquare Team <virtualsquare@cs.unibo.it>.
(Fri, 17 Dec 2021 20:12:03 GMT) (full text, mbox, link).
Message #10 received at 1001850@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On 2021-12-17, Vagrant Cascadian wrote:
> The RPATH contains the build path resulting in different buildid:
>
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/userbindmount.html
>
> The attached patch to debian/rules passes -DCMAKE_SKIP_RPATH=ON via a
> dh_auto_configure override, which should remove the RPATH.
Actually, I think this patch is a little better, rather than stripping
the RPATH entirely, it uses a relative path value for RPATH by passing
CMAKE_BUILD_RPATH_USE_ORIGIN instead of CMAKE_SKIP_RPATH.
Either patch should work for reproducible builds, though.
Thanks!
live well,
vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 0f6ae01660591007bcd9ca199aca23c2b3cad2c1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 17 Dec 2021 19:59:47 +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/build_id_differences_only_issue.html
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index a856ca4..f0974c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,3 +3,6 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --buildsystem=cmake
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
--
2.34.1
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Andrea Capriotti <capriott@debian.org>:
You have taken responsibility.
(Fri, 12 Aug 2022 14:42:03 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Fri, 12 Aug 2022 14:42:04 GMT) (full text, mbox, link).
Message #15 received at 1001850-close@bugs.debian.org (full text, mbox, reply):
Source: userbindmount
Source-Version: 0.1-3
Done: Andrea Capriotti <capriott@debian.org>
We believe that the bug you reported is fixed in the latest version of
userbindmount, 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 1001850@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andrea Capriotti <capriott@debian.org> (supplier of updated userbindmount 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: Fri, 12 Aug 2022 15:45:51 +0200
Source: userbindmount
Architecture: source
Version: 0.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian VirtualSquare Team <virtualsquare@cs.unibo.it>
Changed-By: Andrea Capriotti <capriott@debian.org>
Closes: 1001850
Changes:
userbindmount (0.1-3) unstable; urgency=medium
.
[ Renzo Davoli ]
* fix reproducible-builds: BuildId differences triggered by RPATH
(Closes: #1001850)
[ Andrea Capriotti]
* Bump Standards-Version to 4.6.1, no changes needed.
Checksums-Sha1:
af6640266ead5274aac11d59c1d5a9ed1bbc357f 2193 userbindmount_0.1-3.dsc
1d59ec569c80ea9fc0c55342693bb0f86ca4f68f 2468 userbindmount_0.1-3.debian.tar.xz
664d26201ce419454d6a9369d14f0c4e9741388e 6894 userbindmount_0.1-3_source.buildinfo
Checksums-Sha256:
ddc42a6a4beb46142553eb1e0abe36beb6b0f35439f8336714c8707c2b28f8b9 2193 userbindmount_0.1-3.dsc
e36f3e9552b0e12d548c2cbfe4a2ce6fb82a77a3a573bb5aac2a9a078673e67a 2468 userbindmount_0.1-3.debian.tar.xz
c656e12769d28f5466babbfd8a4449199b44f4d9d8bba1849be4eff0fb86ed35 6894 userbindmount_0.1-3_source.buildinfo
Files:
1f4554632a2fd541ab805d0ac21c9358 2193 libs optional userbindmount_0.1-3.dsc
2562b71e35d209d403c99100455c9774 2468 libs optional userbindmount_0.1-3.debian.tar.xz
b43f69b8eefbd36e62d1cda63c646f0a 6894 libs optional userbindmount_0.1-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEGvhvgTlGG2tOSvezC6/u7+lpvVQFAmL2WpMACgkQC6/u7+lp
vVRi2w//eL37oBiS5f9oIPjW2xEB0Xg5596jTLJeI+zrpL8ebv1Gk5CQWpvDWrCc
D/mkb1QkatyvlLBK4iy2NU+/TK37wqLUf+1yDNykeVgZy+XJ07k0aKvhrnBBrj2R
Yy0QQHGU4fUjJ8F0cfff2dfpQlfegt+iXEedLgTG0pG6QEABi3pj43HXCzXaz4D7
kHdY3edShP/jqaEglV9b5FqsVh20DVwWTaanmDrHHvQj4mpxTRXdLRqqgTPmQP/k
MW7WcN7kYe7myfpgOPGqBcSWz1yfTOMx3Xrz8xSWA7sAOpkJqxFAkxLjHCEPl24Z
txtblq27dVMkLddXuyQ5hbVPoJwnY0lZfUoUM6YzDOgUl07LHLO8OHUmSCsClbMB
Pa8LFTpin5GZoI8nOvDyseSgKcWcy3weFZ6sQnUTkYuGZD+qIB/U9SFcZyjToo3R
IphM1eBU9ruIKUp7OBF175bWBR8xvaucBkMGC+LWGXGF2McVMQ2/Q/NXBeW//8kA
Rs6wxQsW1fJco3Pqqi2us4CDGdyQO7Jcl3RxKp2yv42/GS9zoORUSeajxlbDZdZ1
VKm7Nf0Pg7YdlxYXIaYP9evzJBsq6TGCN7k2wRaozqFyCZZ9USnfR5IwsEnX2y28
WoeImiSl8LO4cdSZKMOglOEDJ7txKu1s3W85x4Z2OqJZYhJHfE4=
=GpUq
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 15 Sep 2022 07:27:14 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:09:30 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.