coreutils port

This commit is contained in:
Matheus
2023-05-29 09:25:06 -03:00
parent 8412e71b0d
commit 1c93fd89e2
3 changed files with 29 additions and 3 deletions
+1 -3
View File
@@ -76,7 +76,7 @@ syscallret_t syscall_execve(context_t *context, char *upath, char *uargv[], char
refnode = *path == '/' ? sched_getroot() : sched_getcwd();
ret.errno = vfs_lookup(&node, vfsroot, "/usr/bin/bash", NULL, 0);
ret.errno = vfs_lookup(&node, vfsroot, path, NULL, 0);
if (ret.errno)
goto error;
@@ -142,7 +142,5 @@ syscallret_t syscall_execve(context_t *context, char *upath, char *uargv[], char
CTX_IP(context) = (uint64_t)entry;
}
printf("exec ret: %lu %lu\n", ret.ret, ret.errno);
return ret;
}
+19
View File
@@ -0,0 +1,19 @@
name=coreutils
revision=1
from_source=coreutils
imagedeps="base-devel gperf"
hostdeps="xgcc xbinutils"
deps="mlibc"
configure() {
cp -pr ${source_dir}/* .
CFLAGS="-DSLOW_BUT_NO_HACKS $CFLAGS" ./configure --host=x86_64-astral --prefix=${prefix}
}
build() {
make -j ${parallelism}
}
install() {
make install DESTDIR=${dest_dir}
}
+9
View File
@@ -0,0 +1,9 @@
name=coreutils
version=9.1
source_method=tarball
tarball_url="https://ftp.gnu.org/gnu/coreutils/coreutils-${version}.tar.xz"
tarball_sha512=a6ee2c549140b189e8c1b35e119d4289ec27244ec0ed9da0ac55202f365a7e33778b1dc7c4e64d1669599ff81a8297fe4f5adbcc8a3a2f75c919a43cd4b9bdfa
hostdeps="autoconf automake pkgconfig libtool"
regenerate() {
autoreconf -fvi
}