Simple diff to add _permit_setugid. OK?
Cheers Rafael
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/kf5/kdesu/Makefile,v
diff -u -p -u -p -r1.20 Makefile
--- Makefile 3 Dec 2025 12:42:50 -0000 1.20
+++ Makefile 19 Oct 2026 15:23:36 -0000
@@ -1,6 +1,6 @@
COMMENT = KDE wrapper over doas commands
DISTNAME = kdesu-${VERSION}
-REVISION = 0
+REVISION = 1
SHARED_LIBS = KF5Su 7.0
Index: patches/patch-src_kdesu_stub_c
===================================================================
RCS file: patches/patch-src_kdesu_stub_c
diff -N patches/patch-src_kdesu_stub_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_kdesu_stub_c 19 Oct 2026 15:23:36 -0000
@@ -0,0 +1,17 @@
+Index: src/kdesu_stub.c
+--- src/kdesu_stub.c.orig
++++ src/kdesu_stub.c
+@@ -51,6 +51,13 @@
+ #include <sched.h>
+ #endif
+
++#if defined(__OpenBSD__)
++#include <sys/stat.h>
++
++/* OpenBSD: set[ug]id binary MUST say so in this var */
++__attribute__((visibility("default"))) mode_t _permit_setugid = S_ISGID;
++#endif
++
+ /**
+ * Params sent by the peer.
+ */