Add missing _permit_setugid and fix "@mode g+s" in PLIST. That should
get this thing working again.
Cheers Rafael
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/kf6/kdesu/Makefile,v
diff -u -p -u -p -r1.6 Makefile
--- Makefile 26 Nov 2025 10:18:08 -0000 1.6
+++ Makefile 19 Oct 2026 15:17:21 -0000
@@ -1,5 +1,6 @@
COMMENT = KDE wrapper over doas commands
DISTNAME = kdesu-${VERSION}
+REVISION = 0
SHARED_LIBS += KF6Su 0.0 # 0.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:17:21 -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.
+ */
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/kf6/kdesu/pkg/PLIST,v
diff -u -p -u -p -r1.5 PLIST
--- pkg/PLIST 16 Aug 2026 13:15:12 -0000 1.5
+++ pkg/PLIST 19 Oct 2026 15:17:21 -0000
@@ -20,7 +20,11 @@ lib/cmake/KF6Su/KF6SuConfigVersion.cmake
lib/cmake/KF6Su/KF6SuTargets${MODCMAKE_BUILD_SUFFIX}
lib/cmake/KF6Su/KF6SuTargets.cmake
@lib lib/libKF6Su.so.${LIBKF6Su_VERSION}
+@mode g+s
+@group auth
@bin libexec/kf6/kdesu_stub
+@mode
+@group
@bin libexec/kf6/kdesud
share/locale/ar/LC_MESSAGES/kdesud6.mo
share/locale/ast/LC_MESSAGES/kdesud6.mo