public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] config.mak.uname: update settings for OpenBSD
@ 2025-06-02  3:14 Brad Smith
  2025-06-02  4:45 ` Carlo Marcelo Arenas Belón
  2025-06-02  5:01 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Brad Smith @ 2025-06-02  3:14 UTC (permalink / raw)
  To: git

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.

Signed-off-by: Brad Smith <brad@comstyle.com>
---
 config.mak.uname | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/config.mak.uname b/config.mak.uname
index df172d5871..5a0b4200c3 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -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
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] config.mak.uname: update settings for OpenBSD
  2025-06-02  3:14 [PATCH] config.mak.uname: update settings for OpenBSD Brad Smith
@ 2025-06-02  4:45 ` Carlo Marcelo Arenas Belón
  2025-06-02  5:01 ` Junio C Hamano
  1 sibling, 0 replies; 4+ messages in thread
From: Carlo Marcelo Arenas Belón @ 2025-06-02  4:45 UTC (permalink / raw)
  To: Brad Smith; +Cc: git

On Sun, Jun 01, 2025 at 11:14:43PM -0800, Brad Smith wrote:
> 
> OpenBSD has never had the BSD sysctl KERN_PROC_PATHNAME nor
> does it support or use the /proc filesystem.

... since 5.7 [1]

Carlo

[1] https://man.openbsd.org/OpenBSD-5.6/mount_procfs.8

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config.mak.uname: update settings for OpenBSD
  2025-06-02  3:14 [PATCH] config.mak.uname: update settings for OpenBSD Brad Smith
  2025-06-02  4:45 ` Carlo Marcelo Arenas Belón
@ 2025-06-02  5:01 ` Junio C Hamano
  2025-06-02  5:05   ` Brad Smith
  1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2025-06-02  5:01 UTC (permalink / raw)
  To: Brad Smith; +Cc: git

Brad Smith <brad@comstyle.com> writes:

> 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.

> Signed-off-by: Brad Smith <brad@comstyle.com>
> ---
>  config.mak.uname | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/config.mak.uname b/config.mak.uname
> index df172d5871..5a0b4200c3 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] config.mak.uname: update settings for OpenBSD
  2025-06-02  5:01 ` Junio C Hamano
@ 2025-06-02  5:05   ` Brad Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Brad Smith @ 2025-06-02  5:05 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On 2025-06-02 1:01 a.m., Junio C Hamano wrote:
> Brad Smith <brad@comstyle.com> writes:
>
>> 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.

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

>> Signed-off-by: Brad Smith <brad@comstyle.com>
>> ---
>>   config.mak.uname | 5 +----
>>   1 file changed, 1 insertion(+), 4 deletions(-)
>>
>> diff --git a/config.mak.uname b/config.mak.uname
>> index df172d5871..5a0b4200c3 100644
>> --- a/config.mak.uname
>> +++ b/config.mak.uname
>> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-02  5:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-02  3:14 [PATCH] config.mak.uname: update settings for OpenBSD Brad Smith
2025-06-02  4:45 ` Carlo Marcelo Arenas Belón
2025-06-02  5:01 ` Junio C Hamano
2025-06-02  5:05   ` Brad Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox