Blame patches/git-2.35.8.local.patch

78fa4f
--- git-2.35.2/Makefile.orig	2022-03-24 00:31:43.000000000 +0100
78fa4f
+++ git-2.35.2/Makefile	2022-04-14 12:43:38.240213010 +0200
78fa4f
@@ -2213,7 +2213,7 @@
78fa4f
 	'-DGIT_MAN_PATH="$(mandir_relative_SQ)"' \
78fa4f
 	'-DGIT_INFO_PATH="$(infodir_relative_SQ)"'
78fa4f
 
78fa4f
-git$X: git.o GIT-LDFLAGS $(BUILTIN_OBJS) $(GITLIBS)
78fa4f
+git$X: git.o $(BUILTIN_OBJS) $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) \
78fa4f
 		$(filter %.o,$^) $(LIBS)
78fa4f
 
78fa4f
@@ -2390,7 +2390,7 @@
78fa4f
 $(SCRIPT_PYTHON_GEN): GIT-BUILD-OPTIONS
78fa4f
 
78fa4f
 ifndef NO_PYTHON
78fa4f
-$(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS
78fa4f
+$(SCRIPT_PYTHON_GEN): GIT-PREFIX GIT-PYTHON-VARS
78fa4f
 $(SCRIPT_PYTHON_GEN): % : %.py
78fa4f
 	$(QUIET_GEN) \
78fa4f
 	sed -e '1s|#!.*python|#!$(PYTHON_PATH_SQ)|' \
78fa4f
@@ -2538,12 +2538,12 @@
78fa4f
 
78fa4f
 .SUFFIXES:
78fa4f
 
78fa4f
-$(C_OBJ): %.o: %.c GIT-CFLAGS $(missing_dep_dirs) $(missing_compdb_dir)
78fa4f
+$(C_OBJ): %.o: %.c $(missing_dep_dirs) $(missing_compdb_dir)
78fa4f
 	$(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(compdb_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $<
78fa4f
-$(ASM_OBJ): %.o: %.S GIT-CFLAGS $(missing_dep_dirs) $(missing_compdb_dir)
78fa4f
+$(ASM_OBJ): %.o: %.S $(missing_dep_dirs) $(missing_compdb_dir)
78fa4f
 	$(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(compdb_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $<
78fa4f
 
78fa4f
-%.s: %.c GIT-CFLAGS FORCE
78fa4f
+%.s: %.c FORCE
78fa4f
 	$(QUIET_CC)$(CC) -o $@ -S $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $<
78fa4f
 
78fa4f
 ifdef USE_COMPUTED_HEADER_DEPENDENCIES
78fa4f
@@ -2607,17 +2607,17 @@
78fa4f
 compat/nedmalloc/nedmalloc.sp: SP_EXTRA_FLAGS += -Wno-non-pointer-null
78fa4f
 endif
78fa4f
 
78fa4f
-git-%$X: %.o GIT-LDFLAGS $(GITLIBS)
78fa4f
+git-%$X: %.o $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
78fa4f
 
78fa4f
-git-imap-send$X: imap-send.o $(IMAP_SEND_BUILDDEPS) GIT-LDFLAGS $(GITLIBS)
78fa4f
+git-imap-send$X: imap-send.o $(IMAP_SEND_BUILDDEPS) $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
78fa4f
 		$(IMAP_SEND_LDFLAGS) $(LIBS)
78fa4f
 
78fa4f
-git-http-fetch$X: http.o http-walker.o http-fetch.o GIT-LDFLAGS $(GITLIBS)
78fa4f
+git-http-fetch$X: http.o http-walker.o http-fetch.o $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
78fa4f
 		$(CURL_LIBCURL) $(LIBS)
78fa4f
-git-http-push$X: http.o http-push.o GIT-LDFLAGS $(GITLIBS)
78fa4f
+git-http-push$X: http.o http-push.o $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
78fa4f
 		$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
78fa4f
 
78fa4f
@@ -2627,11 +2627,11 @@
78fa4f
 	ln -s $< $@ 2>/dev/null || \
78fa4f
 	cp $< $@
78fa4f
 
78fa4f
-$(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o GIT-LDFLAGS $(GITLIBS)
78fa4f
+$(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
78fa4f
 		$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
78fa4f
 
78fa4f
-contrib/scalar/scalar$X: $(SCALAR_OBJECTS) GIT-LDFLAGS $(GITLIBS)
78fa4f
+contrib/scalar/scalar$X: $(SCALAR_OBJECTS) $(GITLIBS)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) \
78fa4f
 		$(filter %.o,$^) $(LIBS)
78fa4f
 
78fa4f
@@ -2945,7 +2945,7 @@
78fa4f
 
78fa4f
 t/helper/test-tool$X: $(patsubst %,t/helper/%,$(TEST_BUILTINS_OBJS))
78fa4f
 
78fa4f
-t/helper/test-%$X: t/helper/test-%.o GIT-LDFLAGS $(GITLIBS) $(REFTABLE_TEST_LIB)
78fa4f
+t/helper/test-%$X: t/helper/test-%.o $(GITLIBS) $(REFTABLE_TEST_LIB)
78fa4f
 	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(filter %.a,$^) $(LIBS)
78fa4f
 
78fa4f
 check-sha1:: t/helper/test-tool$X
561b80
--- git-2.35.6/git-compat-util.h.orig	2022-12-13 13:17:26.000000000 +0100
561b80
+++ git-2.35.6/git-compat-util.h	2023-03-28 08:13:34.179644083 +0200
561b80
@@ -221,7 +221,7 @@
561b80
 #include <time.h>
561b80
 #include <signal.h>
561b80
 #include <assert.h>
561b80
-#include <regex.h>
561b80
+#include <pcreposix.h>
561b80
 #include <utime.h>
561b80
 #include <syslog.h>
561b80
 #if !defined(NO_POLL_H)
561b80
--- git-2.35.6/compat/regex/regex.c.orig	2022-12-13 13:17:26.000000000 +0100
561b80
+++ git-2.35.6/compat/regex/regex.c	2023-03-28 08:18:00.186635875 +0200
561b80
@@ -66,7 +66,7 @@
561b80
 #undef alloca
561b80
 #define alloca alloca_is_bad_you_should_never_use_it
561b80
 #endif
561b80
-#include <regex.h>
561b80
+#include "compat/regex/regex.h"
561b80
 #include "regex_internal.h"
561b80
 
561b80
 #include "regex_internal.c"