Debian Bug report logs - #1005420
xir: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:xir; Maintainer for src:xir is Debian Xilinx Package Maintainers <team+pkg-xilinx@tracker.debian.org>;

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

Date: Sun, 13 Feb 2022 04:03:01 UTC

Severity: normal

Tags: patch

Fixed in version xir/1.4.1-5

Done: Punit Agrawal <punit@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 Xilinx Package Maintainers <team+pkg-xilinx@tracker.debian.org>:
Bug#1005420; Package src:xir. (Sun, 13 Feb 2022 04:03: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 Xilinx Package Maintainers <team+pkg-xilinx@tracker.debian.org>. (Sun, 13 Feb 2022 04:03: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: xir: reproducible-builds: BuildId differences triggered by RPATH
Date: Sat, 12 Feb 2022 19:59:47 -0800
[Message part 1 (text/plain, inline)]
Source: xir
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/xir.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 is one other outstanding reproducible builds issue relating to
timestamps that I will submit shortly in a separate bug report, but once
both are fixed it should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining xir!


live well,
  vagrant
[0002-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 25b17deab5a932f375d08ab905e8cc0e94fcc1bf Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 13 Feb 2022 03:50:20 +0000
Subject: [PATCH 2/2] 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 7700fa4..b69b49f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=Debug \
+                 -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
                  -DCMAKE_CXX_FLAGS_DEBUG="-std=c++17"
 
 %:
-- 
2.34.1

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

Reply sent to Punit Agrawal <punit@debian.org>:
You have taken responsibility. (Sun, 13 Feb 2022 08:42:03 GMT) (full text, mbox, link).


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


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1005420-close@bugs.debian.org
Subject: Bug#1005420: fixed in xir 1.4.1-5
Date: Sun, 13 Feb 2022 08:40:02 +0000
Source: xir
Source-Version: 1.4.1-5
Done: Punit Agrawal <punit@debian.org>

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

Debian distribution maintenance software
pp.
Punit Agrawal <punit@debian.org> (supplier of updated xir 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: Sun, 13 Feb 2022 16:36:14 +0900
Source: xir
Architecture: source
Version: 1.4.1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Xilinx Package Maintainers <team+pkg-xilinx@tracker.debian.org>
Changed-By: Punit Agrawal <punit@debian.org>
Closes: 1005420 1005421
Changes:
 xir (1.4.1-5) unstable; urgency=medium
 .
   [ Vagrant Cascadian ]
   * Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via dh_auto_configure override.
     (Closes: #1005420)
 .
   [ Punit Agrawal ]
   * Add a patch to remove build date from the embedded version
     (Closes: #1005421)
Checksums-Sha1:
 e423f8e779b2dfb87b1dd515bff265906b7092e7 2242 xir_1.4.1-5.dsc
 ff3e73fd94a58f2239fc9f9f198be4c5e5422bdf 5744 xir_1.4.1-5.debian.tar.xz
 e59f886b0b0588aa71c6a76b40b76231e9100df3 8284 xir_1.4.1-5_amd64.buildinfo
Checksums-Sha256:
 10e74f60288731d05da4f390a2d35be6a85d3843cc8d74c34ea325592955e59c 2242 xir_1.4.1-5.dsc
 11e192362cda2dfe12bfc967e17b31469796fd9c644e21375bfd1e1633d2fc31 5744 xir_1.4.1-5.debian.tar.xz
 67af30ba3e47d2b3e7d7527ea9e3cdf2ec266611e0f2777ee79f1b8ccd2665a4 8284 xir_1.4.1-5_amd64.buildinfo
Files:
 a0ac9e42edcc006a7bb45a90abddf1e9 2242 libs optional xir_1.4.1-5.dsc
 28f87ecdc25879de09834f3ba9f0b6c0 5744 libs optional xir_1.4.1-5.debian.tar.xz
 e462093b21ef90696907976a37e9c73b 8284 libs optional xir_1.4.1-5_amd64.buildinfo

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

iQJFBAEBCgAvFiEEvZ5M7BP8NElWggdO9Tkv0hP7/t0FAmIItfIRHHB1bml0QGRl
Ymlhbi5vcmcACgkQ9Tkv0hP7/t18lhAArfPZEXOc/MJEMsGhiCPfDF0GAcTUjmVh
fFpp1gDwB6VK6r/kMAHZ77DtbGrCqLJlW+JoErRodDlyFdtnkGGRtE3bftTMy1gt
/x7Z4OT9Bc3XpQ8Ir2TLds3MIcAXBaQnbvQoZQpgLRA6JltqSsE+TKXKj/kAq0gi
aR6LwZ73SYmNKCHYBF/1smfrrPEYkFg+k3WbZq5u1zTQ+c1atzBN2GL0B2C+pYQ5
oL2xrTlyq8P3sVp3kuL/zoiUlSWPLVgrNeflF7Zw2F7QebvN2GkDFqy0+JsQuTql
BB3OBKCzMbnT/JRtiEeEu7QPaOdAsZPa7fxzQqV6fgPDmMYYpkmaUGkh0M/+/BfJ
fipc7zzWsUJg5dbCB1D6iL7VkpBVbWH0YpP9HcYlKhkO9UweqmfnyOZpb+F4Cwtn
RhBfB98yJghWttVQ2AvLRpzYuCm+8jwptjoBagqrqVeLvu7AnuloLulHsQKq1PSP
hjUazrxv6fvW/pNwLuC/RGGYg4dIR899T9VppXv0AZqAGT3lpXu91VbqZvPTBt4J
4hJcOlpHRhCQSIeodhrE98WseMILuaFbGIMKdAEhbIBl3JLSN/xMSgnD8uqzjdCe
H+BmlUqS044brwvrYDeA+e8zLi47K+/RDPcp4ywVcPGmuN6Rm1e45936/pse0Nww
1Gml2nps3NA=
=XpCb
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 18 Mar 2022 07:25:41 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 10:19: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.