ports: fix bash recipe and stub a few signal sysdeps in mlibc

This commit is contained in:
Matheus
2023-09-09 00:32:36 -03:00
parent b9e7c8a039
commit e8355df0b6
2 changed files with 16 additions and 3 deletions
+14 -2
View File
@@ -170,10 +170,10 @@ index 0000000..e5b087a
+
diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp
new file mode 100644
index 0000000..310a6df
index 0000000..8029348
--- /dev/null
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
@@ -0,0 +1,501 @@
@@ -0,0 +1,513 @@
+#include <bits/ensure.h>
+#include <mlibc/debug.hpp>
+#include <mlibc/all-sysdeps.hpp>
@@ -292,6 +292,18 @@ index 0000000..310a6df
+ return 0;
+ }
+
+ int sys_sigprocmask(int how, const sigset_t *__restrict set,
+ sigset_t *__restrict retrieve) {
+ mlibc::infoLogger() << "mlibc: sigprocmask is a stub" << frg::endlog;
+ return 0;
+ }
+
+ int sys_sigaction(int, const struct sigaction *__restrict,
+ struct sigaction *__restrict) {
+ mlibc::infoLogger() << "mlibc: sigaction is a stub" << frg::endlog;
+ return 0;
+ }
+
+ int sys_utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags) {
+ long ret;
+ return syscall(SYSCALL_UTIMENSAT, &ret, dirfd, (uint64_t)pathname, (uint64_t)times, flags);
+2 -1
View File
@@ -6,7 +6,8 @@ hostdeps="xgcc xbinutils"
deps="readline mlibc"
configure() {
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --without-bash-malloc
cp -rp ${source_dir}/* .
./configure --host=x86_64-astral --prefix=${prefix} --without-bash-malloc
}
build() {