Debian Bug report logs - #1001873
editorconfig-core: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:editorconfig-core; Maintainer for src:editorconfig-core is Jonas Smedegaard <dr@jones.dk>;

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

Date: Sat, 18 Dec 2021 01:48:02 UTC

Severity: normal

Tags: patch

Fixed in version editorconfig-core/0.12.5-2.1

Done: Jeremy Bicha <jbicha@ubuntu.com>

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, Jonas Smedegaard <dr@jones.dk>:
Bug#1001873; Package src:editorconfig-core. (Sat, 18 Dec 2021 01: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, Jonas Smedegaard <dr@jones.dk>. (Sat, 18 Dec 2021 01:48: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: editorconfig-core: reproducible-builds: BuildId differences triggered by RPATH
Date: Fri, 17 Dec 2021 17:45:02 -0800
[Message part 1 (text/plain, inline)]
Source: editorconfig-core
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/editorconfig-core.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.

With this patch applied, editorconfig-core should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining editorconfig-core!

live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 45881cf6fc60ce321c15c5c15f9c6a57b3c443c1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 18 Dec 2021 01:42:39 +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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index bd993c5..9c80c50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=$(if $(EXP_RELEASE),0,1)
 	dh $@ --buildsystem=cmake --builddir=build --with pkgkde_symbolshelper
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DINSTALL_HTML_DOC=ON
+	dh_auto_configure -- -DINSTALL_HTML_DOC=ON -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
 
 execute_after_dh_shlibdeps:
 	d-devlibdeps \
-- 
2.34.1

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

Reply sent to Jeremy Bicha <jbicha@ubuntu.com>:
You have taken responsibility. (Fri, 09 Sep 2022 20:39:05 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Fri, 09 Sep 2022 20:39:05 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1001873-close@bugs.debian.org
Subject: Bug#1001873: fixed in editorconfig-core 0.12.5-2.1
Date: Fri, 09 Sep 2022 20:34:44 +0000
Source: editorconfig-core
Source-Version: 0.12.5-2.1
Done: Jeremy Bicha <jbicha@ubuntu.com>

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

Debian distribution maintenance software
pp.
Jeremy Bicha <jbicha@ubuntu.com> (supplier of updated editorconfig-core 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: Fri, 09 Sep 2022 15:42:21 -0400
Source: editorconfig-core
Built-For-Profiles: noudeb
Architecture: source
Version: 0.12.5-2.1
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <dr@jones.dk>
Changed-By: Jeremy Bicha <jbicha@ubuntu.com>
Closes: 1001873
Changes:
 editorconfig-core (0.12.5-2.1) unstable; urgency=medium
 .
   * Non-maintainer upload
 .
   [ Jeremy Bicha ]
   * Add second "orig" tarballs for build tests
   * Update debian/watch & debian/gbp.conf for this to work
   * Update debian/copyright for new component
   * Cherry-pick patches from test repo to match submodule commit
   * debian/libeditorconfig0.symbols: Set Build-Depends-Package
   * debian/rules: Set all hardening flags
   * debian/control: Drop duplicate section field
 .
   [ Debian Janitor ]
   * Set upstream metadata fields
 .
   [ Vagrant Cascadian ]
   * debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON for reproducibility
     (Closes: #1001873)
Checksums-Sha1:
 1789a2667143c68fce8d6f011235df3b580e8642 2537 editorconfig-core_0.12.5-2.1.dsc
 6113c758326b6c6034049461d5c30c3404c8eb63 13029 editorconfig-core_0.12.5.orig-tests.tar.gz
 78d890ef853e4a776d9610947722b0c9de020133 72272 editorconfig-core_0.12.5.orig.tar.gz
 080ed60930a27c6c4ace4d471252aa1cb0d05bc3 13440 editorconfig-core_0.12.5-2.1.debian.tar.xz
 35dcc6b7a3cdbde67e59c745bcd42b504ceeae4b 7601 editorconfig-core_0.12.5-2.1_source.buildinfo
Checksums-Sha256:
 6641a7af9fe109ea15b59505f0d9d55913f759af8be32273ff845e03bf705001 2537 editorconfig-core_0.12.5-2.1.dsc
 ee2cd748c238063cb6aa19ea8dbaa9c05fed132e441aff249cf31511ed26fcc8 13029 editorconfig-core_0.12.5.orig-tests.tar.gz
 b2b212e52e7ea6245e21eaf818ee458ba1c16117811a41e4998f3f2a1df298d2 72272 editorconfig-core_0.12.5.orig.tar.gz
 4bf58430f4e71e3a4e432659a45d8c650d87b14e0a98db093d51c4e890d26cbe 13440 editorconfig-core_0.12.5-2.1.debian.tar.xz
 b788924cb67142f3d680d2d73a823e170a1260be5eead3b143c4a23542be2c81 7601 editorconfig-core_0.12.5-2.1_source.buildinfo
Files:
 be96df6415f66ed12339841c00010359 2537 libs optional editorconfig-core_0.12.5-2.1.dsc
 6c88d1292e858578b009ded29701b04a 13029 libs optional editorconfig-core_0.12.5.orig-tests.tar.gz
 e7bf8d398e7b2887645f5c4a7b05cc01 72272 libs optional editorconfig-core_0.12.5.orig.tar.gz
 cb0b39726e48dd6ff10cf18e530aa3da 13440 libs optional editorconfig-core_0.12.5-2.1.debian.tar.xz
 086d30073ac3abe366ca7dc745a54c10 7601 libs optional editorconfig-core_0.12.5-2.1_source.buildinfo

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

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmMbmAMACgkQ5mx3Wuv+
bH3AFBAAknN2drARE8pFyEL42MeMIFPj33dPolml5/+1D9JS48/FvDnA0nauLqfc
clewX4YX41H8A5g0bygjKUE9If4EaVfGnT40uDxqAwFlal2Dn7T8EJcpZ34ifwlx
pV7qVz/hC0VxCkrcx6SNzMleGthqJ320856mpBTnR3C+xn5mT1uxp+Huh0NxYQUR
pc72uaGilRBRHTzjJ88PS99Zipi7Ubv15Dr5X2wGaDEZ+kZCf8xJr8mWPzjHwiqd
5hyLvfXstmloP/MyLn5Ry2X0eaHXtEtU9KSEj2TzGyuQBJ9c8timnLKGjjZxlaFA
/tHlQJCUarzb3a/ZZUxOXQKR3OdqQwNOh78yi6Yvshk20bWaGV1BZLlBfGekEgJX
1tuoWxAbNFJby44iDy4+fPk/RLSeq8/UCXmMp4WRvIRRrVdKS3gVz68y8jcV9R0P
hvq3gEdjzIi69yrrs5+Iq/ePSbwGdFZeLAyTLsIrJQIkoYRcvc8gKENiGDH9yf7x
aY2rX91SXEsNSD/m7J9W0S0CMG0JEf88hIkDp6PuSM0C/YMNS14UFH2r8prustpJ
mZ/gPMcM7pokJAApkxPQuj2dUkFWy1z/UYlHcNmmjHrGgvmWMokn/8736d38Q4D8
3jjrj46ZEk8BnUJkKscscROQ4MdgGLoZm+JUv3/6hOGx14YB4Ls=
=o1U6
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 13 Oct 2022 07:27:48 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:46 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.