Debian Bug report logs -
#1021473
nitpic: reproducible-builds: buildid differs in /usr/bin/nitpic
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1021473; Package src:nitpic.
(Sun, 09 Oct 2022 02:24: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 QA Group <packages@qa.debian.org>.
(Sun, 09 Oct 2022 02:24:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: nitpic
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The buildid varies when build from different build paths:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/nitpic.html
The attached patch to debian/rules fixes this by passing the default
CFLAGS to make via the CCOPTIONS variable.
According to my local tests, with this patch applied, nitpic should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining nitpic!
live well,
vagrant
[0001-debian-rules-Pass-ffile-prefix-map-to-make-via-CCOPT.patch (text/x-diff, inline)]
From a0f279bbd9c86d8cde731500b4aa249132a74dd8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Oct 2022 02:16:50 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map to make via CCOPTIONS
variable to avoid embedding build path.
https://reproducible-builds.org/docs/build-path/
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 664269e..fa81626 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SD
build: build-arch
build-indep:
build-arch: checkdir Makefile
- $(MAKE)
+ $(MAKE) CCOPTIONS="-ffile-prefix-map=$(CURDIR)=."
clean: checkdir Makefile
$(MAKE) clean
--
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:43:50 2023;
Machine Name:
bembo
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.