Debian Bug report logs - #1020888
clamz: reproducible-builds: build path embedded in /usr/bin/clamz

Package: src:clamz; Maintainer for src:clamz is Vincent Bernat <bernat@debian.org>;

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

Date: Tue, 27 Sep 2022 23:00:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

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, Vincent Bernat <bernat@debian.org>:
Bug#1020888; Package src:clamz. (Tue, 27 Sep 2022 23:00: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, Vincent Bernat <bernat@debian.org>. (Tue, 27 Sep 2022 23:00:05 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: clamz: reproducible-builds: build path embedded in /usr/bin/clamz
Date: Tue, 27 Sep 2022 15:57:06 -0700
[Message part 1 (text/plain, inline)]
Source: clamz
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/clamz:

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

  /build/1st/clamz-0.5/./clamz.c:301
  vs.
  /build/2/clamz-0.5/2nd/./clamz.c:301

The attached patch to debian/rules fixes this by passing the default
CFLAGS to dh_auto_configure.

According to my local tests, with this patch applied, clamz should build
reproducibly on tests.reproducible-builds.org!

Thanks for maintaining clamz!

live well,
  vagrant
[0001-debian-rules-Pass-default-CFLAGS-to-dh_auto_configur.patch (text/x-diff, inline)]
From 879eef2bcda9e34ad9427b169c8c65abe587f497 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 22:53:37 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS to dh_auto_configure.

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

diff --git a/debian/rules b/debian/rules
index f26a84b..9947d6f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,3 +16,6 @@ export UPDATE_DESKTOP_DATABASE = :
 
 override_dh_installman:
 	dh_installman clamz.1
+
+override_dh_auto_configure:
+	dh_auto_configure -- CFLAGS="$(shell dpkg-buildflags --get CFLAGS)"
-- 
2.37.2

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

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:29:18 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.