Skip to contentSkip to conversation

config.mak.uname: update settings for OpenBSD

PATCH In review Brad Smith 3 participants 4 messages Jun 2, 2025

lore
Share & tools
lore

Brad Smith

author
#0 lore raw

PATCH 1/1 config.mak.uname: update settings for OpenBSD

OpenBSD requires DIR_HAS_BSD_GROUP_SEMANTICS.

OpenBSD has never had the BSD sysctl KERN_PROC_PATHNAME nor does it support or use the /proc filesystem.

OpenBSD has had strcasestr() since 3.8. OpenBSD has had memmem() since 5.4.

---
 config.mak.uname | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
config.mak.uname +1 -4
index df172d5871..5a0b4200c3 100644
@@ -301,17 +301,14 @@ ifeq ($(uname_S),FreeBSD)
 	FILENO_IS_A_MACRO = UnfortunatelyYes
 endif
 ifeq ($(uname_S),OpenBSD)
-	NO_STRCASESTR = YesPlease
-	NO_MEMMEM = YesPlease
+	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
 	USE_ST_TIMESPEC = YesPlease
 	NEEDS_LIBICONV = YesPlease
 	BASIC_CFLAGS += -I/usr/local/include
 	BASIC_LDFLAGS += -L/usr/local/lib
 	HAVE_PATHS_H = YesPlease
 	HAVE_BSD_SYSCTL = YesPlease
-	HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
 	CSPRNG_METHOD = arc4random
-	PROCFS_EXECUTABLE_PATH = /proc/curproc/file
 	FREAD_READS_DIRECTORIES = UnfortunatelyYes
 	FILENO_IS_A_MACRO = UnfortunatelyYes
 endif
Signature · 1 line
2.49.0
#2 lore raw
In reply to Brad Smith
Quoted 7 lines · Brad Smith

OpenBSD requires DIR_HAS_BSD_GROUP_SEMANTICS.

OpenBSD has never had the BSD sysctl KERN_PROC_PATHNAME nor does it support or use the /proc filesystem.

OpenBSD has had strcasestr() since 3.8. OpenBSD has had memmem() since 5.4.

;-) Thanks.

5.4 was from Nov 2013 if I can trust
https://undeadly.org/cgi?action=article;sid=20131101142807 and it is about time we adjust ourselves to the more recent world order.

Will apply. Thanks.

Quoted 28 lines
---
 config.mak.uname | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
config.mak.uname +1 -4
index df172d5871..5a0b4200c3 100644
@@ -301,17 +301,14 @@ ifeq ($(uname_S),FreeBSD)
 	FILENO_IS_A_MACRO = UnfortunatelyYes
 endif
 ifeq ($(uname_S),OpenBSD)
-	NO_STRCASESTR = YesPlease
-	NO_MEMMEM = YesPlease
+	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
 	USE_ST_TIMESPEC = YesPlease
 	NEEDS_LIBICONV = YesPlease
 	BASIC_CFLAGS += -I/usr/local/include
 	BASIC_LDFLAGS += -L/usr/local/lib
 	HAVE_PATHS_H = YesPlease
 	HAVE_BSD_SYSCTL = YesPlease
-	HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
 	CSPRNG_METHOD = arc4random
-	PROCFS_EXECUTABLE_PATH = /proc/curproc/file
 	FREAD_READS_DIRECTORIES = UnfortunatelyYes
 	FILENO_IS_A_MACRO = UnfortunatelyYes
 endif
author
#3 lore raw
Quoted 9 lines · Junio C Hamano
Quoted 7 lines · Brad Smith

OpenBSD requires DIR_HAS_BSD_GROUP_SEMANTICS.

OpenBSD has never had the BSD sysctl KERN_PROC_PATHNAME nor does it support or use the /proc filesystem.

OpenBSD has had strcasestr() since 3.8. OpenBSD has had memmem() since 5.4.

Quoted 7 lines

;-) Thanks.

5.4 was from Nov 2013 if I can trust
https://undeadly.org/cgi?action=article;sid=20131101142807 and it is about time we adjust ourselves to the more recent world order.

Will apply. Thanks.

Yup, that is correct. For us that is 23 releases and over 11+ years old. I think we're good.

Quoted 28 lines
Quoted 28 lines
---
  config.mak.uname | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)
config.mak.uname +1 -4
index df172d5871..5a0b4200c3 100644
@@ -301,17 +301,14 @@ ifeq ($(uname_S),FreeBSD)
  	FILENO_IS_A_MACRO = UnfortunatelyYes
  endif
  ifeq ($(uname_S),OpenBSD)
-	NO_STRCASESTR = YesPlease
-	NO_MEMMEM = YesPlease
+	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
  	USE_ST_TIMESPEC = YesPlease
  	NEEDS_LIBICONV = YesPlease
  	BASIC_CFLAGS += -I/usr/local/include
  	BASIC_LDFLAGS += -L/usr/local/lib
  	HAVE_PATHS_H = YesPlease
  	HAVE_BSD_SYSCTL = YesPlease
-	HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
  	CSPRNG_METHOD = arc4random
-	PROCFS_EXECUTABLE_PATH = /proc/curproc/file
  	FREAD_READS_DIRECTORIES = UnfortunatelyYes
  	FILENO_IS_A_MACRO = UnfortunatelyYes
  endif