* László Böszörményi (GCS) <g...@debian.org> [250501 18:54]:
Hi Chris,

On Thu, May 1, 2025 at 6:45 PM Chris Hofstaedtler <z...@debian.org> wrote:
Tags: patch
[...]
please apply the attached patch to pick up CFLAGS from
dpkg-buildflags. This will setup build path stripping etc, and help
make your package reproducible.
I'm open to it, but I can't see the patch attached.

Sorry, attached now.

Chris

>From b2395beeaac2e0effd12d8c2eb8edd8c3df91147 Mon Sep 17 00:00:00 2001
From: Chris Hofstaedtler <z...@debian.org>
Date: Thu, 1 May 2025 18:34:57 +0200
Subject: [PATCH] Use dpkg-buildflags to improve reproducibility

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

diff --git a/debian/rules b/debian/rules
index 48d3566..0abc95b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/buildflags.mk
 include /usr/share/dpkg/pkg-info.mk
 include /usr/share/dpkg/vendor.mk
 
 override_dh_auto_build:
-       dh_auto_build -- PREFIX=/usr PKG_VERSION="$(DEB_VENDOR) $(DEB_VERSION)"
+       dh_auto_build -- PREFIX=/usr PKG_VERSION="$(DEB_VENDOR) $(DEB_VERSION)" 
USER_CFLAGS="$(CFLAGS)"
        $(MAKE) -C doc html
 
 override_dh_auto_install:
-- 
2.49.0

Reply via email to