Package: libgpg-error
Version: 1.21-1
Severity: wishlist
Tags: patch upstream
User: bal...@balintreczey.hu
Usertags: hardened1-linux-amd64

Dear GnuPG Maintainers,

I have successfully bootstrapped the hardened1-linux-amd64 [1] port
using a set of patches [2].
I'm working towards making the port ready for being accepted to Debian
and the attached patch is the one adding the port support to
libgpg-error.

Accepting this patch would make (re-)bootstrapping the new port easier.

Thank you in advance,
Balint

[1]
http://balintreczey.hu/blog/proposing-amd64-hardened-architecture-for-debian/
[2] https://anonscm.debian.org/cgit/users/rbalint/rebootstrap.git/

diff --git a/debian/rules b/debian/rules
index 3d5c777..db8a608 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,8 @@ export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 override_dh_auto_configure:
 	touch po/libgpg-error.pot
+	# add support for hardened1-linux-amd64
+	sed 's/-gnu/-gnuhardened1/' src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h > src/syscfg/lock-obj-pub.x86_64-pc-linux-gnuhardened1.h
 	dh_auto_configure -- \
 	    --enable-static \
 	    --disable-rpath \

Reply via email to