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

Package: src:xzoom; Maintainer for src:xzoom is Debian QA Group <packages@qa.debian.org>;

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

Date: Sun, 9 Oct 2022 02:12:01 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, Debian QA Group <packages@qa.debian.org>:
Bug#1021472; Package src:xzoom. (Sun, 09 Oct 2022 02:12:03 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, Debian QA Group <packages@qa.debian.org>. (Sun, 09 Oct 2022 02:12:03 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: xzoom: reproducible-builds: build path embedded in /usr/bin/xzoom
Date: Sat, 08 Oct 2022 19:08:22 -0700
[Message part 1 (text/plain, inline)]
Source: xzoom
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/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
[0001-debian-rules-Add-dh_auto_build-override-passing-defa.patch (text/x-diff, inline)]
From dbbdbcaa8bdce175b780b4902f6eba2fb6ea38dd Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@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

[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 12:44:01 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.