Patch libarchive temporarily

This commit is contained in:
Wildan Mubarok 2025-09-14 10:23:50 +00:00
parent ad5c952335
commit f5ea670b2a
2 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,9 @@
[source]
tar = "https://libarchive.org/downloads/libarchive-3.6.2.tar.xz"
blake3 = "f98695fe81235a74fa3fc2c3ba0f0d4f13ea15f9be3850b83e304cf5d78be710"
patches = [
"redox.patch"
]
[build]
template = "configure"

View File

@ -0,0 +1,13 @@
diff -ruwN source/configure source-new/configure
--- source/configure 2022-12-09 20:38:47.000000000 +0700
+++ source-new/configure 2025-09-14 17:17:50.138530195 +0700
@@ -19039,7 +19039,8 @@
ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
if test "x$ac_cv_func_fstatat" = xyes
then :
- printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
+# When fstatat works, remove this patch
+# printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"