diff --git a/patches/coreutils/coreutils.patch b/patches/coreutils/coreutils.patch new file mode 100644 index 00000000..685a79c2 --- /dev/null +++ b/patches/coreutils/coreutils.patch @@ -0,0 +1,12 @@ +diff -ruN coreutils/build-aux/config.sub coreutils-patched/build-aux/config.sub +--- coreutils/build-aux/config.sub 2022-09-19 20:36:40.342028200 -0300 ++++ coreutils-patched/build-aux/config.sub 2022-09-19 20:37:21.462028200 -0300 +@@ -1723,7 +1723,7 @@ + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | astral* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ diff --git a/recipes/coreutils b/recipes/coreutils new file mode 100644 index 00000000..f75a7351 --- /dev/null +++ b/recipes/coreutils @@ -0,0 +1,24 @@ +name=coreutils +revision=1 +from_source=coreutils +imagedeps="base-devel" +hostdeps="gcc-cross binutils-cross" +deps="mlibc" + +configure() { + + CFLAGS="-DSLOW_BUT_NO_HACKS $CFLAGS" ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} + +} + +build() { + + make -j ${parallelism} + +} + +install() { + + make install DESTDIR=${dest_dir} + +} diff --git a/source-recipes/coreutils b/source-recipes/coreutils new file mode 100644 index 00000000..6c9065b3 --- /dev/null +++ b/source-recipes/coreutils @@ -0,0 +1,8 @@ +name=coreutils +version=9.1 +source_method=tarball +tarball_url="https://ftp.gnu.org/gnu/coreutils/coreutils-${version}.tar.xz" +tarball_sha512=a6ee2c549140b189e8c1b35e119d4289ec27244ec0ed9da0ac55202f365a7e33778b1dc7c4e64d1669599ff81a8297fe4f5adbcc8a3a2f75c919a43cd4b9bdfa +regenerate() { + true +}