public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH v2] config.mak.uname: update settings for FreeBSD
@ 2025-06-12  4:36 Brad Smith
  0 siblings, 0 replies; 5+ messages in thread
From: Brad Smith @ 2025-06-12  4:36 UTC (permalink / raw)
  To: git

From bdeb596fa6a99c4059df52bbdaed08268100c43e Mon Sep 17 00:00:00 2001
From: Brad Smith <brad@comstyle•com>
Date: Mon, 9 Jun 2025 14:27:39 -0400
Subject: [PATCH] config.mak.uname: update settings for FreeBSD

FreeBSD 6.0 has memmem().

With making 6.0 the minimum version drop bits for supporting
FreeBSD 4.x.

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

diff --git a/config.mak.uname b/config.mak.uname
index b1c5c4d5e8..da592eeaa0 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -302,16 +302,10 @@ ifeq ($(uname_S),FreeBSD)
         ifeq ($(firstword $(subst -, ,$(uname_R))),10.1)
 		OLD_ICONV = YesPlease
         endif
-	NO_MEMMEM = YesPlease
 	BASIC_CFLAGS += -I/usr/local/include
 	BASIC_LDFLAGS += -L/usr/local/lib
 	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
 	USE_ST_TIMESPEC = YesPlease
-        ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
-		PTHREAD_LIBS = -pthread
-		NO_UINTMAX_T = YesPlease
-		NO_STRTOUMAX = YesPlease
-        endif
 	PYTHON_PATH = /usr/local/bin/python
 	PERL_PATH = /usr/local/bin/perl
 	HAVE_PATHS_H = YesPlease
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* Re: [PATCH v2] config.mak.uname: update settings for FreeBSD
@ 2025-06-12 13:52 Carlo Arenas
  2025-06-12 16:48 ` brian m. carlson
  2025-06-12 16:52 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Carlo Arenas @ 2025-06-12 13:52 UTC (permalink / raw)
  To: Brad Smith; +Cc: git

On Thu, Jun 12, 2025 at 12:36:46AM -0800, Brad Smith wrote:
>
> FreeBSD 6.0 has memmem().

but AFAIK it was buggy, uncompatible with the "standard" and
didn't perform that well, at least until FreeBSD 12.

assuming that the system version is indeed faster than the
one provided with git (which should be true but worth testing)
then it might be better to only enable this for later versions?

> With making 6.0 the minimum version drop bits for supporting
> FreeBSD 4.x.

FreeBSD 4.x is no longer supported and wouldn't even build a
current git, since it predates C99 and is missing POSIX
compatibility with what we require (ex: no statvfs)

Carlo

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

end of thread, other threads:[~2025-06-12 21:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-12  4:36 [PATCH v2] config.mak.uname: update settings for FreeBSD Brad Smith
  -- strict thread matches above, loose matches on Subject: below --
2025-06-12 13:52 Carlo Arenas
2025-06-12 16:48 ` brian m. carlson
2025-06-12 21:31   ` Carlo Marcelo Arenas Belón
2025-06-12 16:52 ` Junio C Hamano

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