me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Use GNU C17 to build Git 2.47 on the newer bootstrap compiler

diviocity committed 5 days ago · 471a99683b1bd5d83e008c1ddee5414d168c9df2 View patch
Unverified signature 2 files changed +3 -2
git/PKGBUILD.vile +1 -1

@@ -12,7 +12,7 @@ defpkgbuild(git,

1212 "config.mak", "check.py"],

1313 #:sha256sums, ["9c2eb1250781b3e5bfef098572d07fdf132d67e6c065e4307332ade9819a1501",

1414 "2ae5b4901a7ef98ffb35eaba1d201d97b556fca1bf4688f88f79ca24d51a8cd6",

15- "458eb38655279e40713e134ba778346524279d6787681b1f8af2c16f0fce0c76", "8bc530df1d77f35bfdd0cbbcde4860c3f0964842cfbe6c50bdf878331d73332b"],

15+ "42d43fa5647fb5eff12264238ad569fd8ca0d2870e2b6eae4ef7386c39be37c7", "8bc530df1d77f35bfdd0cbbcde4860c3f0964842cfbe6c50bdf878331d73332b"],

1616 #:prepare, fn() {

1717 run("patch", "-d", "git-2.47.3", "-p1", "-i", string-append(srcdir(), "/fix-t4219-with-sticky-bit.patch"))

1818 run("cp", "config.mak", "git-2.47.3/config.mak")

git/config.mak +2 -1

@@ -1,6 +1,7 @@

11prefix = /usr

22CC = vinix-cc

3-CFLAGS = -O2

3+# Git 2.47 uses thread_local as a struct tag, which is a keyword in C23.

4+CFLAGS = -O2 -std=gnu17

45# libcurl's OpenSSL dependency must resolve in the same target SDK as libcurl.

56LDFLAGS += -Wl,--sysroot=$(VPAC_MAKEPKG_ROOT) -L$(VPAC_MAKEPKG_ROOT)/usr/lib -Wl,-rpath-link,$(VPAC_MAKEPKG_ROOT)/usr/lib

67INSTALL_SYMLINKS = YesPlease