mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
coreutils port
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user