Debian Bug report logs -
#1020808
powerdebug: reproducible-builds: Embedded build paths in /usr/sbin/powerdebug
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Linaro Packagers <linaro-pkg@lists.launchpad.net>:
Bug#1020808; Package src:powerdebug.
(Tue, 27 Sep 2022 00:21: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, Linaro Packagers <linaro-pkg@lists.launchpad.net>.
(Tue, 27 Sep 2022 00:21:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: powerdebug
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/sbin/powerdebug:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/powerdebug.html
/build/1st/powerdebug-0.7.0-2013.08/powerdebug.c:35
vs.
/build/2/powerdebug-0.7.0-2013.08/2nd/powerdebug.c:35
The attached patch to debian/rules fixes this by passing the default
CFLAGS from dpkg-buildflags to make.
According to my local tests, with this patch applied powerdebug should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining powerdebug!
live well,
vagrant
[0001-debian-rules-Pass-default-CFLAGS-from-dpkg-buildflag.patch (text/x-diff, inline)]
From 7cd19cb41439602669ede964d048d06e18dbb712 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 00:13:06 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS from dpkg-buildflags to
make.
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index a3552ab..261f7f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,4 +14,4 @@ endif
dh $@ --parallel
override_dh_auto_build:
- $(MAKE) CC=$(CC)
+ $(MAKE) CC=$(CC) CFLAGS="$(shell dpkg-buildflags --get 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 13:28:05 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.