Source: clamz
Severity: normal
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

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
From 879eef2bcda9e34ad9427b169c8c65abe587f497 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
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

Attachment: signature.asc
Description: PGP signature

Reply via email to