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

Package: src:dustmite; Maintainer for src:dustmite is Debian D Language Group <team+d-team@tracker.debian.org>;

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

Date: Tue, 27 Sep 2022 21:15: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, Debian D Language Group <team+d-team@tracker.debian.org>:
Bug#1020878; Package src:dustmite. (Tue, 27 Sep 2022 21:15: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, Debian D Language Group <team+d-team@tracker.debian.org>. (Tue, 27 Sep 2022 21:15: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: dustmite: reproducible-builds: build path embedded in /usr/bin/dustmite
Date: Tue, 27 Sep 2022 14:12:03 -0700
[Message part 1 (text/plain, inline)]
Source: dustmite
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/dustmite:

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

  /build/1st/dustmite-0.0.430/dustmite.d:1
  vs.
  /build/2/dustmite-0.0.430/2nd/dustmite.d:1

The attached patch to debian/rules fixes this by adding
-ffile-prefix-map to EXTRA_DFLAGS.

This is not the only issue affecting the reproducibility of dustmite,
but another patch regarding timestamps will be submitted shortly.

Thanks for maintaining dustmite!

live well,
  vagrant
[0001-debian-rules-Add-ffile-prefix-map-in-EXTRA_DFLAGS-to.patch (text/x-diff, inline)]
From 62ca5087ddf024ab3ecec4f53ebfc1ea0a05fd58 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 21:05:16 +0000
Subject: [PATCH 1/2] debian/rules: Add -ffile-prefix-map in EXTRA_DFLAGS to
 avoid embedding build paths

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

diff --git a/debian/rules b/debian/rules
index 3ca26a2..3aab0b6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,7 @@
 # workaround for DMD frontend bug
 # first found via LDC: https://github.com/ldc-developers/ldc/issues/4000
 EXTRA_DFLAGS += -fall-instantiations
+EXTRA_DFLAGS += -ffile-prefix-map=$(CURDIR)=.
 
 override_dh_auto_build:
 	gdc -odustmite \
-- 
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:28:24 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.