From 471a99683b1bd5d83e008c1ddee5414d168c9df2 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 15:03:39 +0100 Subject: [PATCH] Use GNU C17 to build Git 2.47 on the newer bootstrap compiler --- git/PKGBUILD.vile | 2 +- git/config.mak | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/git/PKGBUILD.vile b/git/PKGBUILD.vile index 05138c1..f66ca0f 100644 --- a/git/PKGBUILD.vile +++ b/git/PKGBUILD.vile @@ -12,7 +12,7 @@ defpkgbuild(git, "config.mak", "check.py"], #:sha256sums, ["9c2eb1250781b3e5bfef098572d07fdf132d67e6c065e4307332ade9819a1501", "2ae5b4901a7ef98ffb35eaba1d201d97b556fca1bf4688f88f79ca24d51a8cd6", - "458eb38655279e40713e134ba778346524279d6787681b1f8af2c16f0fce0c76", "8bc530df1d77f35bfdd0cbbcde4860c3f0964842cfbe6c50bdf878331d73332b"], + "42d43fa5647fb5eff12264238ad569fd8ca0d2870e2b6eae4ef7386c39be37c7", "8bc530df1d77f35bfdd0cbbcde4860c3f0964842cfbe6c50bdf878331d73332b"], #:prepare, fn() { run("patch", "-d", "git-2.47.3", "-p1", "-i", string-append(srcdir(), "/fix-t4219-with-sticky-bit.patch")) run("cp", "config.mak", "git-2.47.3/config.mak") diff --git a/git/config.mak b/git/config.mak index 126fb41..1d0d4b4 100644 --- a/git/config.mak +++ b/git/config.mak @@ -1,6 +1,7 @@ prefix = /usr CC = vinix-cc -CFLAGS = -O2 +# Git 2.47 uses thread_local as a struct tag, which is a keyword in C23. +CFLAGS = -O2 -std=gnu17 # libcurl's OpenSSL dependency must resolve in the same target SDK as libcurl. LDFLAGS += -Wl,--sysroot=$(VPAC_MAKEPKG_ROOT) -L$(VPAC_MAKEPKG_ROOT)/usr/lib -Wl,-rpath-link,$(VPAC_MAKEPKG_ROOT)/usr/lib INSTALL_SYMLINKS = YesPlease -- 2.56.1