Debian Bug report logs - #1003920
akonadi: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:akonadi; Maintainer for src:akonadi is Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>;

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

Date: Tue, 18 Jan 2022 05:21:01 UTC

Severity: normal

Tags: patch

Fixed in version akonadi/4:22.08.2-1

Done: Patrick Franz <deltaone@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 Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>:
Bug#1003920; Package src:akonadi. (Tue, 18 Jan 2022 05:21: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 Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>. (Tue, 18 Jan 2022 05:21: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: akonadi: reproducible-builds: BuildId differences triggered by RPATH
Date: Mon, 17 Jan 2022 21:17:53 -0800
[Message part 1 (text/plain, inline)]
Source: akonadi
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/akonadi.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, akonadi should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining akonadi!

live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From 91a269b1608d2ed3393a1d304947c7f3125e09a0 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 18 Jan 2022 05:15:45 +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 7d57e79..093dca1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,7 @@ override_dh_auto_configure:
 	dh_auto_configure -- \
 	    -DINSTALL_QSQLITE_IN_QT_PREFIX=ON \
 	    -DBUILD_TOOLS=ON \
+	    -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
 	    -DBUILD_DESIGNERPLUGIN=ON
 
 execute_after_dh_install:
-- 
2.34.1

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

Reply sent to Patrick Franz <deltaone@debian.org>:
You have taken responsibility. (Fri, 28 Oct 2022 22:51:03 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Fri, 28 Oct 2022 22:51:04 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1003920-close@bugs.debian.org
Subject: Bug#1003920: fixed in akonadi 4:22.08.2-1
Date: Fri, 28 Oct 2022 22:49:22 +0000
Source: akonadi
Source-Version: 4:22.08.2-1
Done: Patrick Franz <deltaone@debian.org>

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

Debian distribution maintenance software
pp.
Patrick Franz <deltaone@debian.org> (supplier of updated akonadi 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, 29 Oct 2022 00:10:01 +0200
Source: akonadi
Architecture: source
Version: 4:22.08.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Patrick Franz <deltaone@debian.org>
Closes: 1003920
Changes:
 akonadi (4:22.08.2-1) unstable; urgency=medium
 .
   [ Patrick Franz ]
   * New upstream release (22.08.2).
   * Enable reproducible builds, thanks to Vagrant Cascadian (Closes:
     #1003920).
Checksums-Sha1:
 d0a48d02d0464159b645c7e2965d383e0d30e0b4 4073 akonadi_22.08.2-1.dsc
 1861ec5aa84d7fea2e78550d3f9b204a21f0681e 1631180 akonadi_22.08.2.orig.tar.xz
 90df8920b880c79f6cbcb253f081af0451700125 833 akonadi_22.08.2.orig.tar.xz.asc
 143a56c0a70d103b670df318cac18e32d8aae279 35392 akonadi_22.08.2-1.debian.tar.xz
 96b4bacab3fea3e62f1ef88705ee1c37318801e3 14773 akonadi_22.08.2-1_source.buildinfo
Checksums-Sha256:
 ffacdbdf2fa5c6d67f03629770c76162c1796503f9e29099451df0fe661f2d86 4073 akonadi_22.08.2-1.dsc
 2632085006b140a11035955b51d65339154c1af461960751b149851a5b62d457 1631180 akonadi_22.08.2.orig.tar.xz
 270b145d6baeb74eb8527dad4bbfec5dcaad61e5f95e6ff3411a2c84cbba9df6 833 akonadi_22.08.2.orig.tar.xz.asc
 c8ac049fc288c464a7d367dd4c785341933ffc0f459947de29932bbc973c283e 35392 akonadi_22.08.2-1.debian.tar.xz
 5e9566190d32cb48dbbb47bd20c3a1717f0895b2f3df1d2e2d590b0f3d30a8ed 14773 akonadi_22.08.2-1_source.buildinfo
Files:
 1b3f4f41e6d8f7ef726a957bb059e20e 4073 libs optional akonadi_22.08.2-1.dsc
 414184bca60fd959d6ca4b885eb98e3e 1631180 libs optional akonadi_22.08.2.orig.tar.xz
 0e6bdb8bd19c553031ae5c31ae769768 833 libs optional akonadi_22.08.2.orig.tar.xz.asc
 06befdb428b89afc61b27d71ebd1d848 35392 libs optional akonadi_22.08.2-1.debian.tar.xz
 0c24ef1011adca2c76ed8c6fc5128c5b 14773 libs optional akonadi_22.08.2-1_source.buildinfo

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

iQJIBAEBCgAyFiEEYodBXDR68cxZHu3Knp96YDB3/lYFAmNcVFEUHGRlbHRhb25l
QGRlYmlhbi5vcmcACgkQnp96YDB3/lanXRAAls1trqxnlypWGWhUntj9683CGQjG
kRjA7pXpMbcOh0PU0DitSDeKQSVQx4V5z7PRKxz/m+7bXj6+HuOoAwOtyw/nz6og
0YT66uBchydJUx9Gdw94aoHkWtelGmFRGa9gHPjNHs5iObJfwd6FRzqTCRt66jJ3
jalmaf6vLHNx86sXdnjlxichS3u5/RWhjiY6woVUG8ij5/XdaYJY71YbvPCqWTMH
gtH1UfuvEnu/Dl8a3KheE4jlpJoTBGiFU+ur+Rn1dqlG4ybAqlIR+t85KmOyh2Dr
IxGsX4VWXl96PKLFMOhbPXpfx+QA0eE4kYMYHCKyGyMz8XS9bGVAhZXd18gz5gME
lMY2l2VPk+Wna4A4D+xkCmiK2m5uEeCAlsFdiZooNe3Fe72VRh5sluxjsV388vBM
yJK+hO8Sc1VfhN4GZrfu2esafIfpqqn+Lg58uCfyqeA2OQVIq/gUy9RZC66D/uie
MwDxNxY11UM9CMQ21uQs+0kLuy8xCE7lFRDTRxAY94K3MrJc5P98kldEf/+hhvHN
Gak+ZB9VPP8sD4ZHgJukC0f8CH/IuI5b9IuVyuI4ceywB1MsLV5gwwR04nx3I97E
h0mN3rGsXqazKKE+3uH+p+CuwVIVpccndw4+tqQOgNioBJKdblefLCdRKITH6gJ9
R78s7WUsnBVMSJo=
=rLbX
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 08 Dec 2022 07:25:55 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: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.