Debian Bug report logs - #1020662
log4cpp: reproducible-builds: Embedded build path in log4cpp-config

version graph

Package: src:log4cpp; Maintainer for src:log4cpp is A. Maitland Bottoms <bottoms@debian.org>;

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

Date: Sat, 24 Sep 2022 23:03:02 UTC

Severity: normal

Tags: patch

Fixed in version log4cpp/1.1.3-3.1

Done: Chris Lamb <lamby@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, A. Maitland Bottoms <bottoms@debian.org>:
Bug#1020662; Package src:log4cpp. (Sat, 24 Sep 2022 23:03: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, A. Maitland Bottoms <bottoms@debian.org>. (Sat, 24 Sep 2022 23:03: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: log4cpp: reproducible-builds: Embedded build path in log4cpp-config
Date: Sat, 24 Sep 2022 15:59:39 -0700
[Message part 1 (text/plain, inline)]
Source: log4cpp
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 is embedded in /usr/bin/log4cpp-config:

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

  cflags="$cflags··-g·-O2·-ffile-prefix-map=/build/1st/log4cpp-1.1.3=. ...
  vs.
  cflags="$cflags··-g·-O2·-ffile-prefix-map=/build/2/log4cpp-1.1.3/2nd=. ...

The attached patch fixes this in debian/rules by replacing the build
path with a placeholder string in /usr/bin/log4cpp-config.

With this patch applied log4cpp should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining log4cpp!

live well,
  vagrant
[0001-debian-rules-Add-dh_auto_install-override-to-remove-.patch (text/x-diff, inline)]
From f09f971f6eb843e09c848d5ca2acb51cc09c059b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 24 Sep 2022 22:54:47 +0000
Subject: [PATCH] debian/rules: Add dh_auto_install override to remove the
 embedded build path from log4cpp-config.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index 23066a9..0d6aced 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,8 @@ override_dh_auto_configure:
 
 override_dh_acc:
 	- dh_acc $@
+
+override_dh_auto_install:
+	dh_auto_install
+	# Remove the build path from passed arguments for reproducible builds
+	sed -i -e "s,$(CURDIR),BUILDPATH,g" debian/tmp/usr/bin/log4cpp-config
-- 
2.37.2

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

Information forwarded to debian-bugs-dist@lists.debian.org, A. Maitland Bottoms <bottoms@debian.org>:
Bug#1020662; Package src:log4cpp. (Tue, 10 Jan 2023 16:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to A. Maitland Bottoms <bottoms@debian.org>. (Tue, 10 Jan 2023 16:33:03 GMT) (full text, mbox, link).


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

From: "Chris Lamb" <lamby@debian.org>
To: 1020662@bugs.debian.org, 1020662-submitter@bugs.debian.org
Subject: Re: log4cpp: reproducible-builds: Embedded build path in log4cpp-config
Date: Tue, 10 Jan 2023 16:30:38 +0000
[Message part 1 (text/plain, inline)]
tags 1020662 + pending patch
thanks

I've just uploaded log4cpp 1.1.3-3.1 to DELAYED/10:
  
  log4cpp (1.1.3-3.1) unstable; urgency=medium
  .
    * Non-maintainer upload.
    * Apply a patch by Vagrant Cascadian to avoid embedding the build path in
      the log4cpp-config file. (Closes: #1020662)

The full debdiff is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[log4cpp_1.1.3-3.1_amd64.debdiff.txt (text/plain, attachment)]

Added tag(s) pending. Request was from "Chris Lamb" <lamby@debian.org> to control@bugs.debian.org. (Tue, 10 Jan 2023 16:33:06 GMT) (full text, mbox, link).


Message sent on to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug#1020662. (Tue, 10 Jan 2023 16:33:10 GMT) (full text, mbox, link).


Reply sent to Chris Lamb <lamby@debian.org>:
You have taken responsibility. (Fri, 20 Jan 2023 17:21:05 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Fri, 20 Jan 2023 17:21:05 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1020662-close@bugs.debian.org
Subject: Bug#1020662: fixed in log4cpp 1.1.3-3.1
Date: Fri, 20 Jan 2023 17:19:36 +0000
Source: log4cpp
Source-Version: 1.1.3-3.1
Done: Chris Lamb <lamby@debian.org>

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

Debian distribution maintenance software
pp.
Chris Lamb <lamby@debian.org> (supplier of updated log4cpp 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: SHA256

Format: 1.8
Date: Tue, 10 Jan 2023 16:28:21 +0000
Source: log4cpp
Binary: liblog4cpp5-dev liblog4cpp5v5 liblog4cpp5v5-dbgsym
Architecture: source amd64
Version: 1.1.3-3.1
Distribution: unstable
Urgency: medium
Maintainer: A. Maitland Bottoms <bottoms@debian.org>
Changed-By: Chris Lamb <lamby@debian.org>
Description:
 liblog4cpp5-dev - C++ library for flexible logging (development)
 liblog4cpp5v5 - C++ library for flexible logging (runtime)
Closes: 1020662
Changes:
 log4cpp (1.1.3-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Apply a patch by Vagrant Cascadian to avoid embeddedng the build path in
     the log4cpp-config file. (Closes: #1020662)
Checksums-Sha1:
 a28b233d4beab29b42e415a5d08bd80f77bae9f5 1917 log4cpp_1.1.3-3.1.dsc
 74f0fea7931dc1bc4e5cd34a6318cd2a51322041 595639 log4cpp_1.1.3.orig.tar.gz
 8b4483878cbdcb4a63d0cb07655f7fecac1861e9 111712 log4cpp_1.1.3-3.1.debian.tar.xz
 416de35d8d7f9bca2612bb1942a65d57c823d8fc 154892 liblog4cpp5-dev_1.1.3-3.1_amd64.deb
 0701742e675c8f2603b66eceea0df47656a644d8 1273780 liblog4cpp5v5-dbgsym_1.1.3-3.1_amd64.deb
 3659289483102a1f155087493671d65286785894 109480 liblog4cpp5v5_1.1.3-3.1_amd64.deb
 256d4cdbec68efa619b4575660ebabbd86bf10c4 6398 log4cpp_1.1.3-3.1_amd64.buildinfo
Checksums-Sha256:
 fdd7ec513703ffa27dbd76c509ed450060e6d671a65f45cd9354f7beb7873301 1917 log4cpp_1.1.3-3.1.dsc
 2cbbea55a5d6895c9f0116a9a9ce3afb86df383cd05c9d6c1a4238e5e5c8f51d 595639 log4cpp_1.1.3.orig.tar.gz
 90a312e94974c5cdc780ca86a7f3cfe292278a47c21d061909ae627d3b3dc327 111712 log4cpp_1.1.3-3.1.debian.tar.xz
 465cbba8a4e199b26942f03df0737a39575e3ce51a32644db34d1364147ef56c 154892 liblog4cpp5-dev_1.1.3-3.1_amd64.deb
 5d78844d0c3428dd0661692aed06af1629ceec90cba2f81247e458b112f87269 1273780 liblog4cpp5v5-dbgsym_1.1.3-3.1_amd64.deb
 4b781188278cd280c59a6dbf50c1033cb1398aaae94a61aaefd76f4f2be042a2 109480 liblog4cpp5v5_1.1.3-3.1_amd64.deb
 c725e358a4ce41442aaf74dd1c012e61114c05d1019ff7f813277d09c52be2fb 6398 log4cpp_1.1.3-3.1_amd64.buildinfo
Files:
 645320ee535c19f97e5a42f37a833e62 1917 libs optional log4cpp_1.1.3-3.1.dsc
 b9e2cee932da987212f2c74b767b4d8b 595639 libs optional log4cpp_1.1.3.orig.tar.gz
 1804e81fe257887bcb714849f51f4efe 111712 libs optional log4cpp_1.1.3-3.1.debian.tar.xz
 c6da19f742f8df92783f477c0effef5f 154892 libdevel optional liblog4cpp5-dev_1.1.3-3.1_amd64.deb
 d49afd2dc93a12e91afc6e1660656b1f 1273780 debug optional liblog4cpp5v5-dbgsym_1.1.3-3.1_amd64.deb
 eb44361106fc159f5493bc8f99f943c3 109480 libs optional liblog4cpp5v5_1.1.3-3.1_amd64.deb
 907dd0f81437f1104a8a57b0c69a040b 6398 libs optional log4cpp_1.1.3-3.1_amd64.buildinfo

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

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmO9kpsACgkQHpU+J9Qx
HlgrgQ//WZYfQ+x2ISxjXzDg98k5o3aZqlQ2UtDKPPGRok6LAakdim2O7ScOvS0+
dKV0lo6UWBRENVyGf1OOOa1ziqX1CwmhMxoPcM+WN3nuEiGFKypiN50qtfo7hy+X
8XxsGdZg5wAvub3qYuJUHOKYos3KGwIhkMS9dfKiskvvrBIAo/z8WQVKJb5EvoNa
6i08wjDSukDD06TdHTRL+ppY/ua42M2owLN9w5PpoRQ9cbuiRO2Jt+ZXJrBMFFUS
U6cUM/QDr6WU+jKxfdGeE7rsvYdD4J/bn3p/ijn1bPP58dMrN7idvpvYB5iDH5mv
s+22JyGchw0n8U3JyMQZSS/tce/OPwwwxMLrxQ9YQVtgVdM7G/Rm+z3yaaNG5CkS
0wrMx5BJzHeaLOqFHEM4J/w0yg+tD6DhfPqq0CeT6QH06SFuhZEiDcpKnewqelOt
Gj8Ptj0QMDSXaIVP98Zo/hFasd/BTls0xO9UPWXsyaU/AEf5JAY1TguL3bZJcYm8
IxQcSD6Wd9vc3nMzUHitjBc71d0pzw0SiUFpP+ElZFVFoqAjtpozlEB3+TKmxhmX
+r6Pa6/O5veAG9zkSV+vT00gOBd0OxXO+18SnH8hKoQ2ebgiCv6A4Fe//+7dG3mW
MnoxVDPeRZyOb0CjU3sttRkUc58L5N6weTEE9L20cx90e8PrJCA=
=vD5z
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 23 Feb 2023 07:30:12 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:59:21 2023; Machine Name: bembo

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.