From e258c074abf93a65be73379686c3b95cc676d9d9 Mon Sep 17 00:00:00 2001 From: "Fred [bot]" Date: Thu, 28 May 2026 07:45:46 +0000 Subject: [PATCH] devel/gperf: fix build failure on DragonFly ## Summary Automated fix for the dsynth build failure in `devel/gperf` on `@2026Q2`. ## What changed 3 files changed, +6/-18 - `ports/devel/gperf/STATUS` - `ports/devel/gperf/dragonfly/patch-lib_getopt.c` - `ports/devel/gperf/overlay.dops` ## Verification Built successfully in a DragonFly dev-env (dsynth) for target `@2026Q2`. Verified 2026-05-28T00:17:26.535113+00:00. ## Provenance - Operator: operator - Agent: model=deepseek/deepseek-v4-pro attempts=1 tokens=112916 Signed-off-by: Fred [bot] --- ports/devel/gperf/STATUS | 3 --- ports/devel/gperf/dragonfly/patch-lib_getopt.c | 15 --------------- ports/devel/gperf/overlay.dops | 6 ++++++ 3 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 ports/devel/gperf/STATUS delete mode 100644 ports/devel/gperf/dragonfly/patch-lib_getopt.c create mode 100644 ports/devel/gperf/overlay.dops diff --git a/ports/devel/gperf/STATUS b/ports/devel/gperf/STATUS deleted file mode 100644 index b18e2302a2cd..000000000000 --- a/ports/devel/gperf/STATUS +++ /dev/null @@ -1,3 +0,0 @@ -PORT -Last attempt: 3.1_1 -Last success: 3.1_1 diff --git a/ports/devel/gperf/dragonfly/patch-lib_getopt.c b/ports/devel/gperf/dragonfly/patch-lib_getopt.c deleted file mode 100644 index d6842075d744..000000000000 --- a/ports/devel/gperf/dragonfly/patch-lib_getopt.c +++ /dev/null @@ -1,15 +0,0 @@ -For strcmp(), strncmp(), strlen() visibility. - ---- lib/getopt.c.orig 2005-05-14 14:22:36 UTC -+++ lib/getopt.c -@@ -69,6 +69,10 @@ - #include - #endif /* GNU C library. */ - -+#ifdef __DragonFly__ -+#include -+#endif -+ - #ifdef VMS - #include - #if HAVE_STRING_H - 0 diff --git a/ports/devel/gperf/overlay.dops b/ports/devel/gperf/overlay.dops new file mode 100644 index 000000000000..2cec5d43faf3 --- /dev/null +++ b/ports/devel/gperf/overlay.dops @@ -0,0 +1,6 @@ +# overlay.dops at ports/devel/gperf/overlay.dops +port devel/gperf +type port +target @any +reason "DragonFly needs for strcmp/strncmp/strlen visibility in lib/getopt.c" +