Debian Bug report logs - #1001868
fcitx: reproducible-builds: BuildId differences triggered by RPATH

version graph

Package: src:fcitx; Maintainer for src:fcitx is Debian Input Method Team <debian-input-method@lists.debian.org>;

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

Date: Fri, 17 Dec 2021 23:45:01 UTC

Severity: normal

Tags: patch

Fixed in version fcitx/1:4.2.9.8-8

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, Debian Input Method Team <debian-input-method@lists.debian.org>:
Bug#1001868; Package src:fcitx. (Fri, 17 Dec 2021 23:45: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 Input Method Team <debian-input-method@lists.debian.org>. (Fri, 17 Dec 2021 23:45: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: fcitx: reproducible-builds: BuildId differences triggered by RPATH
Date: Fri, 17 Dec 2021 15:41:42 -0800
[Message part 1 (text/plain, inline)]
Source: fcitx
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/fcitx.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, fcitx should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining fcitx!

live well,
  vagrant
[0001-debian-rules-Pass-DCMAKE_BUILD_RPATH_USE_ORIGIN-ON-v.patch (text/x-diff, inline)]
From b7515c1dc81e62af1c27d2f220dd314d441d25cc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 17 Dec 2021 23:38:36 +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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 3bb24a7..0a4866c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,7 +36,8 @@ override_dh_auto_configure: gen_control
 	    -DENABLE_ICU=ON \
 	    -DENABLE_BACKTRACE=ON \
 	    -DENABLE_XDGAUTOSTART=ON \
-	    -DENABLE_GETTEXT=ON
+	    -DENABLE_GETTEXT=ON \
+	    -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
 
 override_dh_makeshlibs:
 	dh_makeshlibs -plibfcitx-core0
-- 
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:39:03 GMT) (full text, mbox, link).


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


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1001868-close@bugs.debian.org
Subject: Bug#1001868: fixed in fcitx 1:4.2.9.8-8
Date: Sat, 28 May 2022 17:34:03 +0000
Source: fcitx
Source-Version: 1:4.2.9.8-8
Done: Boyuan Yang <byang@debian.org>

We believe that the bug you reported is fixed in the latest version of
fcitx, 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 1001868@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 fcitx 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 13:09:07 -0400
Source: fcitx
Architecture: source
Version: 1:4.2.9.8-8
Distribution: unstable
Urgency: medium
Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 1001868
Changes:
 fcitx (1:4.2.9.8-8) unstable; urgency=medium
 .
   * Team upload.
   * debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via
   dh_auto_configure override for reproducibility. (Closes: #1001868)
Checksums-Sha1:
 dd1296ad1a5f6123503535fef83af74e167f669d 4340 fcitx_4.2.9.8-8.dsc
 6811c6281be37cba8fc327c2729d58776111627d 8737888 fcitx_4.2.9.8.orig.tar.xz
 004951abd15b2cc2f23758d8f13339a827745b20 26716 fcitx_4.2.9.8-8.debian.tar.xz
 9d27cd6ba06081158ed4b981b9f31ad4f45b6c20 30479 fcitx_4.2.9.8-8_amd64.buildinfo
Checksums-Sha256:
 2d26292f0601cb65bf5346843b523c9a1ec4e3c941da1a9faa5029678fea9e95 4340 fcitx_4.2.9.8-8.dsc
 bc3515cba0561546fe02dae81391d4a03e0e79a2d668aa794cd3a377284033c6 8737888 fcitx_4.2.9.8.orig.tar.xz
 e1f597a3285cc1b2f0fb8ab20341325d15d412699090aaf81ed3d3a992b08223 26716 fcitx_4.2.9.8-8.debian.tar.xz
 817459ca8e0d5628d5566ce38533c415d1ccf2a5352c4ddc6cce40bce40173f9 30479 fcitx_4.2.9.8-8_amd64.buildinfo
Files:
 ae9979d234105b1b3812633ddbc990bf 4340 utils optional fcitx_4.2.9.8-8.dsc
 fbd1d76ce81353f003dffb73053b4803 8737888 utils optional fcitx_4.2.9.8.orig.tar.xz
 573527297f426081b3aa4978344b5495 26716 utils optional fcitx_4.2.9.8-8.debian.tar.xz
 7a6c2433bd0c6079698e8e545863c70f 30479 utils optional fcitx_4.2.9.8-8_amd64.buildinfo

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

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmKSV/4ACgkQwpPntGGC
Ws6y7xAAgY/jsvMo+H4kcJU5KO2JX7AM/HJcmx1tqylT+G3jlbiKLWqeKzHcB5/W
lj+qJuy7Ld/PphCcMtXomAT9FmFKvh74zI0S/93t+3Af4i22gGt9pTyJcLT0/euH
khh3lxTSnkRJQYyd3j5WrrFvG0pXzcTXtPEN9vPfmqKRjSsgQ7QfXsCT/QmX0GjM
wX1anywuzNjc8xIsZsbRoqF6JGTBUOjKE82+zFgeXCorHJ943kQ1t7H5HQWIDr7m
K/K+xkIeUNac2pNx/Us2hRuAQys0o/7S382NRtanyFz88Q0t7GumrhhmeHKEzuwn
pquHPjrKXQVelS1UnTSZg+TN05edLIjY2ccS/a0Wbvl2sh+4pBzlKas/W391hLBX
17Tt8AdGnBpiWcOFQNHvkLRRGZcqg7nHnfZcKEy0+FfxPdWg+QI4vxitoG2KYJ9W
vknHBskpJGGYgaO7gT0av8Jq7xVqJ+HsPN2XbGCGGPykPckmzn7GuwBovengdx80
QcnhpTKmje6Hzkm7eNgs+Nz34ylqMJR0fBWn/Gq+/j9o9HfkUiOs42V4S09gMnra
XyOgx+WyLbPYg7T0rqCn7hLdp4hBihOg20PKepqxkZs6QPm8YSGdE/qwGUq7vwHz
z3czL3t5SQiSgyxLEmRYwIgrDnGVVPHSsSIwZztObhIMuJq3oK0=
=jc/3
-----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:07 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:26 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.