Source: xzoom
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The build path is embedded in /usr/bin/xzoom:

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

  /build/1st/xzoom-0.3/xzoom.c:322
  vs.
  /build/2/xzoom-0.3/2nd/xzoom.c:322

The attached patch to debian/rules fixes this by adding a dh_auto_build
override that passes the default CFLAGS via the CCOPTIONS variable.

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

Thanks for maintaining xzoom!

live well,
  vagrant
From dbbdbcaa8bdce175b780b4902f6eba2fb6ea38dd Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 9 Oct 2022 02:00:02 +0000
Subject: [PATCH] debian/rules: Add dh_auto_build override passing default
 CFLAGS via CCOPTIONS.

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

diff --git a/debian/rules b/debian/rules
index a222eea..140a01d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,3 +22,6 @@ override_dh_auto_configure:
 
 override_dh_missing:
 	dh_missing --fail-missing
+
+override_dh_auto_build:
+	dh_auto_build -- CCOPTIONS="$(CFLAGS)"
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to