Source: paxctl
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 /sbin/paxctl:

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

  /build/1st/paxctl-0.9/paxctl.c:252
  vs.
  /build/2/paxctl-0.9/2nd/paxctl.c:252

The attached patch to debian/rules fixes this by adding a dh_auto_build
override which passes the default CFLAGS.

According to my local tests, with this patch applied paxctl should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining paxctl!

live well,
  vagrant
From fd2af060649673459bc878d4ea4e8821876c7a09 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 26 Sep 2022 23:38:46 +0000
Subject: [PATCH] debian/rules: Pass default CFLAGS via dh_auto_build override.

---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 218df65..ef15fe2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_build:
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to