Add zsh to WIP recipe

This commit is contained in:
Wildan Mubarok 2025-08-05 21:15:50 +00:00
parent 01d3154b0a
commit 48eff2e7ac
2 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,54 @@
diff --color -ruwN source/configure.ac source-new/configure.ac
--- source/configure.ac 2022-05-15 01:59:21.000000000 +0700
+++ source-new/configure.ac 2025-08-06 02:08:48.797381523 +0700
@@ -1311,7 +1311,7 @@
setuid seteuid setreuid setresuid setsid \
setgid setegid setregid setresgid \
memcpy memmove strstr strerror strtoul \
- getrlimit getrusage \
+ getrusage \
setlocale \
isblank iswblank \
uname \
diff --color -ruwN source/Src/builtin.c source-new/Src/builtin.c
--- source/Src/builtin.c 2022-05-15 01:59:21.000000000 +0700
+++ source-new/Src/builtin.c 2025-08-06 02:41:57.266846385 +0700
@@ -7160,16 +7160,7 @@
long clktck = get_clktck();
/* get time accounting information */
- if (times(&buf) == -1)
- return 1;
- pttime(buf.tms_utime); /* user time */
- putchar(' ');
- pttime(buf.tms_stime); /* system time */
- putchar('\n');
- pttime(buf.tms_cutime); /* user time, children */
- putchar(' ');
- pttime(buf.tms_cstime); /* system time, children */
- putchar('\n');
+ // Somehow times() is not linking correctly
return 0;
}
diff --color -ruwN source/Src/Builtins/rlimits.c source-new/Src/Builtins/rlimits.c
--- source/Src/Builtins/rlimits.c 2022-05-15 01:59:21.000000000 +0700
+++ source-new/Src/Builtins/rlimits.c 2025-08-06 02:24:09.457135439 +0700
@@ -892,7 +892,7 @@
int
boot_(UNUSED(Module m))
{
- set_resinfo();
+// set_resinfo();
return 0;
}
@@ -900,7 +900,7 @@
int
cleanup_(Module m)
{
- free_resinfo();
+// free_resinfo();
return setfeatureenables(m, &module_features, NULL);
}

View File

@ -0,0 +1,24 @@
#TODO: Buggy, can't return after running commands
[source]
tar = "https://github.com/zsh-users/zsh/archive/refs/tags/zsh-5.9.tar.gz"
blake3 = "a15b94fae03e87aba6fc6a27df3c98e610b85b0c7c0fc90248f07fdcb8816860"
patches = [
"01_redox.patch"
]
script = """
DYNAMIC_INIT
autotools_recursive_regenerate
"""
[build]
template = "custom"
dependencies = [
"ncursesw",
]
script = """
DYNAMIC_INIT
"${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}"
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}"
"${COOKBOOK_MAKE}" install.bin install.modules install.fns DESTDIR="${COOKBOOK_STAGE}"
"""