Bug#1020804: paxctl: reproducible-builds: Embedded build paths in /sbin/paxctl

2022-11-17 Thread Chris Lamb
tags 1020804 + pending patch
thanks

I've just uploaded paxctl 0.9-1.1 to DELAYED/10:
  
  paxctl (0.9-1.1) unstable; urgency=medium
  .
* Non-maintainer upload.
* Apply a patch by Vagrant Cascadian to make the build reproducible.
  (Closes: #1020804)

The full debdiff is attached.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
diffstat for paxctl-0.9 paxctl-0.9

 changelog |8 
 rules |3 +++
 2 files changed, 11 insertions(+)

diff -Nru paxctl-0.9/debian/changelog paxctl-0.9/debian/changelog
--- paxctl-0.9/debian/changelog 2014-09-06 14:16:48.0 +0100
+++ paxctl-0.9/debian/changelog 2022-11-17 17:38:19.0 +
@@ -1,3 +1,11 @@
+paxctl (0.9-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply a patch by Vagrant Cascadian to make the build reproducible.
+(Closes: #1020804)
+
+ -- Chris Lamb   Thu, 17 Nov 2022 17:38:19 +
+
 paxctl (0.9-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru paxctl-0.9/debian/rules paxctl-0.9/debian/rules
--- paxctl-0.9/debian/rules 2014-09-06 14:16:48.0 +0100
+++ paxctl-0.9/debian/rules 2022-11-17 17:38:19.0 +
@@ -6,3 +6,6 @@
 
 %:
dh $@
+
+override_dh_auto_build:
+   dh_auto_build -- CFLAGS="$(CFLAGS)"


Bug#1020804: paxctl: reproducible-builds: Embedded build paths in /sbin/paxctl

2022-09-26 Thread Vagrant Cascadian
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 
Date: Mon, 26 Sep 2022 23:38:46 +
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



signature.asc
Description: PGP signature