mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
patch: disable gnulib renameat2
This commit is contained in:
parent
beb030a45d
commit
0a964d8e3c
15
recipes/dev/patch/03_renameat2.patch
Normal file
15
recipes/dev/patch/03_renameat2.patch
Normal 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
|
||||
@ -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"
|
||||
"""
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user