git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's in git.git (Oct 2008, #03; Tue, 14)

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 24, 2008, 02:44 UTC
Message-ID
<7vod1a3e5w.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<bsftmRx17krWBpVlulipoJEO1fWsD0hZfF3HOZcajX6GV66RKW8W6A@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 8 quoted lines
>   2) Do we want to stick with compat/regex on
>
>       Darwin: Arjen
>      FreeBSD: Jeff
>          AIX: Mike
>
>      now that the builtin funcname patterns have been converted to Extended
>      Regular Expressions?
-- >8 --
Subject: Stop using compat/regex.c on platforms with working regexp library

We used to have non-POSIX comformant BRE in our code, and linked with GNU regexp library on a few platforms (Darwin, FreeBSD and AIX) to work it around. This was backwards.

We've fixed the broken regexps to use ERE that native regexp libraries on these platforms can handle just fine. There is no need to link with GNU regexp library on these platforms anymore.

Tested-on-AIX-by: Mike Ralphson <mike@abacus.co.uk>
Tested-on-FreeBSD-by: Jeff King <peff@peff.net>
Tested-on-Darwin-by: Arjen Laarhoven <arjen@yaph.org>
Tested-on-Darwin-by: Pieter de Bie <pieter@frim.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 Makefile |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
diff --git c/Makefile w/Makefile
index d6f3695..40309e1 100644
--- c/Makefile
+++ w/Makefile
@@ -640,8 +640,6 @@ ifeq ($(uname_S),Darwin)
 	endif
 	NO_STRLCPY = YesPlease
 	NO_MEMMEM = YesPlease
-	COMPAT_CFLAGS += -Icompat/regex
-	COMPAT_OBJS += compat/regex/regex.o
 endif
 ifeq ($(uname_S),SunOS)
 	NEEDS_SOCKET = YesPlease
@@ -692,8 +690,6 @@ ifeq ($(uname_S),FreeBSD)
 	BASIC_LDFLAGS += -L/usr/local/lib
 	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
 	THREADED_DELTA_SEARCH = YesPlease
-	COMPAT_CFLAGS += -Icompat/regex
-	COMPAT_OBJS += compat/regex/regex.o
 endif
 ifeq ($(uname_S),OpenBSD)
 	NO_STRCASESTR = YesPlease
@@ -720,8 +716,6 @@ ifeq ($(uname_S),AIX)
 	INTERNAL_QSORT = UnfortunatelyYes
 	NEEDS_LIBICONV=YesPlease
 	BASIC_CFLAGS += -D_LARGE_FILES
-	COMPAT_CFLAGS += -Icompat/regex
-	COMPAT_OBJS += compat/regex/regex.o
 endif
 ifeq ($(uname_S),GNU)
 	# GNU/Hurd
Previous: Arjen LaarhovenNext: Jeff King
Message 13 of 16 in “What's in git.git (Oct 2008, #03; Tue, 14)”
  1. Junio C HamanoOct 14, 2008
  2. Brandon CaseyOct 15, 2008
  3. Mike RalphsonOct 15, 2008
  4. Junio C HamanoOct 15, 2008
  5. Shawn O. PearceOct 15, 2008
  6. Junio C HamanoOct 15, 2008
  7. Shawn O. PearceOct 15, 2008
  8. 1/2 t4018-diff-funcname: rework negated last expression testdrafnel@gmail.com, Oct 16, 2008
  9. Jeff KingOct 16, 2008
  10. Brandon CaseyOct 16, 2008
  11. Pieter de BieOct 16, 2008
  12. Arjen LaarhovenOct 17, 2008
  13. Junio C HamanoOct 24, 2008
  14. Jeff KingOct 17, 2008
  15. Junio C HamanoOct 17, 2008
  16. 2/2 t4018-diff-funcname: demonstrate end of line funcname matching flawdrafnel@gmail.com, Oct 16, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.