Package: dovecot
Version: 1:2.4.1+dfsg1-5
Tags: patch
Usertags: hppa

On hppa the -fstack-clash-protection flag isn't available, since on that
platform the stack grows upwards and as such it's unavailable and not
supported by the compiler.

Can you please avoid adding this flag for hppa, e.g. as done by
the patch below.

Thanks!
Helge



diff -up ./debian/rules.org ./debian/rules
--- ./debian/rules.org  2025-06-10 14:37:16.659423946 +0000
+++ ./debian/rules      2025-06-10 14:39:22.322882950 +0000
@@ -25,10 +25,12 @@ ifneq ($(filter armel armhf hppa mips64e
   DOV_DEB_CXXFLAGS += -funwind-tables
 endif
 
-# Extra hardening flags
-DOV_DEB_CFLAGS += -fstack-clash-protection
-DOV_DEB_CXXFLAGS += -fstack-clash-protection
-DOV_DEB_LDFLAGS += -fstack-clash-protection
+# Extra hardening flags, not for hppa.
+ifeq ($(filter hppa, $(DEB_HOST_ARCH)),)
+  DOV_DEB_CFLAGS += -fstack-clash-protection
+  DOV_DEB_CXXFLAGS += -fstack-clash-protection
+  DOV_DEB_LDFLAGS += -fstack-clash-protection
+endif
 
 
 export DEB_CFLAGS_MAINT_APPEND = $(DOV_DEB_CFLAGS)

Reply via email to