config.mak.uname: update settings for FreeBSD
PATCH 1/1 config.mak.uname: update settings for FreeBSD
FreeBSD 6.0 has memmem().
--- config.mak.uname | 6 ------ 1 file changed, 6 deletions(-)
config.mak.uname +0 -6
@@ -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
Signature · 1 line
2.49.0
Hi Brad,
Quoted 12 lines · Brad Smith
FreeBSD 6.0 has
memmem().Signed-off-by Brad Smith <[email protected]>--- config.mak.uname | 6 ------ 1 file changed, 6 deletions(-)config.mak.uname +0
-0
config.mak.uname ifeq ($(uname_S),FreeBSD) · line 305
Quoted 4 lines
config.mak.uname +0
-1@@ -302,16 +302,10 @@ ifeq ($(uname_S),FreeBSD) ifeq ($(firstword $(subst -, ,$(uname_R))),10.1) OLD_ICONV = YesPlease endif - NO_MEMMEM = YesPlease
I don't have a FreeBSD machine that old to test it. But Gnulib's documentation says it was added in FreeBSD 5.2.1 [1].
config.mak.uname ifeq ($(uname_S),FreeBSD) · line 311
Quoted 12 lines
config.mak.uname +0
-5BASIC_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
Curious about this change though. Are you basing it off a FreeBSD system you have? Or do we not care about that old version anymore? For reference, FreeBSD 4.2 was released in 2000.
Collin
[1] https://www.gnu.org/software/gnulib/manual/html_node/memmem.html
[2] https://www.freebsd.org/releases/4.2R/announce/
Quoted 11 lines · Collin Funk
Hi Brad,
Quoted 7 lines · Brad Smith
FreeBSD 6.0 has
memmem().Signed-off-by Brad Smith <[email protected]>--- config.mak.uname | 6 ------ 1 file changed, 6 deletions(-)
Quoted 11 lines
config.mak.uname ifeq ($(uname_S),FreeBSD) · line 305
Quoted 9 lines
config.mak.uname +0
-1@@ -302,16 +302,10 @@ ifeq ($(uname_S),FreeBSD) ifeq ($(firstword $(subst -, ,$(uname_R))),10.1) OLD_ICONV = YesPlease endif - NO_MEMMEM = YesPleaseI don't have a FreeBSD machine that old to test it. But Gnulib's documentation says it was added in FreeBSD 5.2.1 [1].
Not that it matters for git, but that does not match the actual code. The first man page I see is for 6 and looking at their source repo I only see memmem() on the 6 branch.
https://svnweb.freebsd.org/base/stable/5/lib/libc/string/
https://svnweb.freebsd.org/base/stable/6/lib/libc/string/
Quoted 17 lines
Reviewed-by Collin Funk <[email protected]>config.mak.uname ifeq ($(uname_S),FreeBSD) · line 311
Quoted 12 lines
config.mak.uname +0
-5BASIC_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 = YesPleaseCurious about this change though. Are you basing it off a FreeBSD system you have? Or do we not care about that old version anymore? For reference, FreeBSD 4.2 was released in 2000.
I probably should have mentioned it in some manner in the commit message. Since the minimum version is now 6.x after this changed I removed the 4.x support. 6.0 is 19.5 years old.
Quoted 5 lines
Collin
[1] https://www.gnu.org/software/gnulib/manual/html_node/memmem.html
[2] https://www.freebsd.org/releases/4.2R/announce/
Quoted 1 line · Brad Smith
FreeBSD 6.0 has
memmem().
And anything older than that no longer matters?
That may indeed be true (6.0 was from Nov 2005), but if that is the reason why we simply lose NO_MEMMEM (instead of conditionally losing for 6.0 and newer), that needs to be explained in the proposed log message, together with the reason why we no longer do anything special with version "4.x" (which could be "We ditch the support for anything older than 6.0").
Assuming that our stance is "anything older than 6.0 no longer matters", the patch itself looks good.
Quoted 26 lines
Signed-off-by Brad Smith <[email protected]>--- config.mak.uname | 6 ------ 1 file changed, 6 deletions(-)config.mak.uname +0
-6@@ -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
Quoted 4 lines · Junio C Hamano
Quoted 1 line · Brad Smith
FreeBSD 6.0 has
memmem().And anything older than that no longer matters?
I look at is as so. 6.0 is 19.5 years old as it is.
Quoted 9 lines
That may indeed be true (6.0 was from Nov 2005), but if that is the reason why we simply lose
NO_MEMMEM(instead of conditionally losing for 6.0 and newer), that needs to be explained in the proposed log message, together with the reason why we no longer do anything special with version "4.x" (which could be "We ditch the support for anything older than 6.0").Assuming that our stance is "anything older than 6.0 no longer matters", the patch itself looks good.
This was my intent. I'll update the commit message.
Quoted 5 lines · Junio C Hamano
Quoted 1 line · Brad Smith
FreeBSD 6.0 has
memmem().And anything older than that no longer matters?
The oldest supported version of FreeBSD is 13.5, which will EOL in April 2026.
Quoted 38 lines
That may indeed be true (6.0 was from Nov 2005), but if that is the reason why we simply lose
NO_MEMMEM(instead of conditionally losing for 6.0 and newer), that needs to be explained in the proposed log message, together with the reason why we no longer do anything special with version "4.x" (which could be "We ditch the support for anything older than 6.0").Assuming that our stance is "anything older than 6.0 no longer matters", the patch itself looks good.
Quoted 26 lines
Signed-off-by Brad Smith <[email protected]>--- config.mak.uname | 6 ------ 1 file changed, 6 deletions(-)config.mak.uname +0
-6@@ -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
Signature · 1 line
Renato Botelho