patch: disable gnulib renameat2

This commit is contained in:
Jeremy Soller 2025-11-01 08:41:51 -06:00
parent beb030a45d
commit 0a964d8e3c
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,15 @@
--- source-old/lib/renameat2.c 2018-02-03 05:41:53.000000000 -0700
+++ source/lib/renameat2.c 2025-11-01 08:39:54.945513820 -0600
@@ -70,6 +70,7 @@
Obey FLAGS when doing the renaming. If FLAGS is zero, this
function is equivalent to renameat (FD1, SRC, FD2, DST). */
+#if !defined(__redox__)
int
renameat2 (int fd1, char const *src, int fd2, char const *dst,
unsigned int flags)
@@ -225,3 +226,4 @@
#endif /* !HAVE_RENAMEAT */
}
+#endif

View File

@ -4,6 +4,7 @@ blake3 = "d46d14c12aa4ea51e356bf92091c368fd871e1d770b94bc29027886737aecd5f"
patches = [
"01_no_rlimit.patch",
"02_no_chown.patch",
"03_renameat2.patch",
]
script = """
wget -O build-aux/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
@ -24,4 +25,4 @@ cookbook_configure
${TARGET}-strip "${COOKBOOK_STAGE}/bin/"*
rm -rf "${COOKBOOK_STAGE}/share" "${COOKBOOK_STAGE}/lib"
"""
"""