Debian Bug report logs - #1006864
pcp: reproducible-builds: build path embedded in various libraries

version graph

Package: src:pcp; Maintainer for src:pcp is PCP Development Team <pcp@groups.io>;

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

Date: Mon, 7 Mar 2022 01:09:02 UTC

Severity: normal

Tags: patch

Fixed in version pcp/5.3.7-1

Done: Nathan Scott <nathans@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, PCP Development Team <pcp@groups.io>:
Bug#1006864; Package src:pcp. (Mon, 07 Mar 2022 01:09: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, PCP Development Team <pcp@groups.io>. (Mon, 07 Mar 2022 01:09: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: pcp: reproducible-builds: build path embedded in various libraries
Date: Sun, 06 Mar 2022 17:06:29 -0800
[Message part 1 (text/plain, inline)]
Source: pcp
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path and resulting Build ID for various libraries is embedded:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/pcp.html

  /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/PCP/LogImport/LogImport.so

  /build/1st/pcp-5.3.6/src/libpcp_import/src:/build/1st/pcp-5.3.6/src/libpcp/src
  vs.
  /build/2/pcp-5.3.6/2nd/src/libpcp_import/src:/build/2/pcp-5.3.6/2nd/src/libpcp/src

The attached patch to debian/rules fixes this by using the standard
standard buildflags from dpkg-buildflags, which includes
-ffile-prefix-map to strip out the build paths.


An alternate patch for debian/rules could be something like:

  CFLAGS += -ffile-prefix-map=$(CURDIR)=.
  export CFLAGS

Though you might also have to set this for various other *FLAGS as well.


This patch does not address all reproducibility issues, but should
significantly reduce the size of the diff, making it easier to identify
remaining issues.


live well,
  vagrant
[0003-debian-rules-Use-standard-dpkg-buildflags-variables.patch (text/x-diff, inline)]
From 0f20cd385a5851288a231c4590cd50e6aba26915 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 6 Mar 2022 18:56:06 +0000
Subject: [PATCH 3/3] debian/rules: Use standard dpkg buildflags variables.

---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2f99e21..f6d1c1d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -154,6 +154,9 @@ uninstallspark = cat $(dirdoc).dirs | sed -e "s,^,$(dirpcp_export_spark)/," | xa
 uninstallgui = cat $(dirgui).dirs | sed -e "s,^,$(dirpcp)/," | xargs rm -fr
 unrpathperl = find $(allperldir) -name \*.so | xargs chrpath -d
 
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 build: build-arch build-indep
 build-arch: build-stamp
 build-indep: build-stamp
-- 
2.30.2

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

Reply sent to Nathan Scott <nathans@debian.org>:
You have taken responsibility. (Tue, 05 Apr 2022 01:39:06 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Tue, 05 Apr 2022 01:39:07 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1006864-close@bugs.debian.org
Subject: Bug#1006864: fixed in pcp 5.3.7-1
Date: Tue, 05 Apr 2022 01:34:59 +0000
Source: pcp
Source-Version: 5.3.7-1
Done: Nathan Scott <nathans@debian.org>

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

Debian distribution maintenance software
pp.
Nathan Scott <nathans@debian.org> (supplier of updated pcp 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: Tue, 05 Apr 2022 09:12:16 +1000
Source: pcp
Architecture: source
Version: 5.3.7-1
Distribution: unstable
Urgency: low
Maintainer: PCP Development Team <pcp@groups.io>
Changed-By: Nathan Scott <nathans@debian.org>
Closes: 1006860 1006861 1006864
Changes:
 pcp (5.3.7-1) unstable; urgency=low
 .
   * New release (full details in CHANGELOG).
   * Updates for reproducible-builds (closes: #1006860, #1006861, #1006864)
Checksums-Sha1:
 fc20ed998bd1a45572e82c9fd90a6d9c5e67ed58 5045 pcp_5.3.7-1.dsc
 cf1a7e856a803d04fb1f0dec8cad2f429f06178c 43551206 pcp_5.3.7.orig.tar.gz
 1193c58f249e21cb573dfde3913bb23daa8d0c0b 25696 pcp_5.3.7-1.debian.tar.xz
 f0a8ca479acb4ae4c1c8a415055f0d09321ad69b 14257 pcp_5.3.7-1_source.buildinfo
Checksums-Sha256:
 86a33b8a90a8e3403e9dbc55459ed3335ae94d1b5f62e980271ad23496152829 5045 pcp_5.3.7-1.dsc
 1b508320082ab422a9b654d1ba4777248d85cf0344e16e6c29f84d174a0d9dc1 43551206 pcp_5.3.7.orig.tar.gz
 5758e47a00aefa8afc237637ac6daff21112feb812440c3a7e9e430e7fbb2a73 25696 pcp_5.3.7-1.debian.tar.xz
 58e835e405e6c228a8361c5ddc98584e3b913101fd43965d5bf2ea98d10b5e74 14257 pcp_5.3.7-1_source.buildinfo
Files:
 4d0c51fe5152bb388cfd01c1938444e8 5045 utils extra pcp_5.3.7-1.dsc
 e9216f9f7825b7ad47c365c62c550711 43551206 utils extra pcp_5.3.7.orig.tar.gz
 04ce857fb09f52d456ccff7fd4445886 25696 utils extra pcp_5.3.7-1.debian.tar.xz
 f1343edf44b91b17781ef956aa4550de 14257 utils extra pcp_5.3.7-1_source.buildinfo

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

iQIzBAEBCgAdFiEE96vodh5v5oY45ig6/ghC7jbdjAwFAmJLlmgACgkQ/ghC7jbd
jAzNHBAAyUjTjfcYXiMsprJobXuT2MxRdZDAYbBIlgtcZeOXw9gOlm5CJuLc+/U5
lmfkhxbu5G4o3T3FunM9Wj4eoPVVBYteSmFLH0Gflj62JrRBYfNbNB/QR3c0mI9W
eKCUx1huhuTqA3QnTVVmjwVBEyToPaQnSMhliby8A6fnP2RFh90wto8k3EJ0FVmD
K6QSic5caT5Lq8DKlmXmyE/7m+QPgeyyeDIK4fnm4pcqdqDmIHIuYLhktSDcIPt/
ViWUgH3zqBNsZPkt4E2qI1mPK6cSsO5aycpvBHIf3rtxi6EA+GZQhBfe04Zicyeu
PUqdBMhM1Aa0RdvptOFTGLE5Rvd9ViOmmjUwHeDE3TfkLi6sCc9BjNpAjPAw4jnX
GAQdTZCLLvi0yhvtoug4qc2ircE0oVvv7vFt8QhIsB9TDJfLgc26eD5JukwniQZz
AxSLRba0oagIenlYeicJnTGOBMGhgeTSi6K9c7CsQg8z6ggECgGTkJ12AJj1hZeS
5dTIeUBIdc2T4MmeSCBlccAuVvJRv6aGBJLGqB2Bs9cb+0iQEVnJ0Rfibyjtj3Lb
htG8NLL2a/CDc8AIieSU74Irx7SX+wcKkQi94xo1N2Hqeazn5F9499DGVOCsEwN6
DIwtglhMaVR6KRW3/bQTJffc0Sq6nndfj5/YAKcD4vlI1Ziw644=
=vFmb
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 18 May 2022 07:30:46 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 13:24:07 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.