Source: powerdebug
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/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
From 7cd19cb41439602669ede964d048d06e18dbb712 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to