diff --git a/groups/211.native_packages_cmdline.group b/groups/211.native_packages_cmdline.group index b7ffb7d..d07f905 100644 --- a/groups/211.native_packages_cmdline.group +++ b/groups/211.native_packages_cmdline.group @@ -48,8 +48,8 @@ the_silver_searcher toilet tree terminally_tetris ubase which zsh")"; : ${PKG_CLIPBOARD_UTILS_BUILD_DIR:=clipboard-utils}; : ${PKG_CLIPBOARD_UTILS_CFLAGS_BUILD_EXTRA:="-g2 -O0"}; : ${PKG_CLIPBOARD_UTILS_LDFLAGS_BUILD_EXTRA:="-L${PREFIX_NATIVE}/lib/w32lib"}; -: ${PKG_COREUTILS_SHA256SUM:=4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa}; -: ${PKG_COREUTILS_VERSION:=8.32}; +: ${PKG_COREUTILS_SHA256SUM:=ce30acdf4a41bc5bb30dd955e9eaa75fa216b4e3deb08889ed32433c7b3b97ce}; +: ${PKG_COREUTILS_VERSION:=9.0}; : ${PKG_COREUTILS_URL:=https://ftp.gnu.org/gnu/coreutils/coreutils-${PKG_COREUTILS_VERSION}.tar.xz}; : ${PKG_CPIO_SHA256SUM:=eab5bdc5ae1df285c59f2a4f140a98fc33678a0bf61bdba67d9436ae26b46f6d}; : ${PKG_CPIO_VERSION:=2.13}; diff --git a/midipix.env b/midipix.env index b9e83fb..e7b0ef3 100644 --- a/midipix.env +++ b/midipix.env @@ -211,6 +211,7 @@ ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_chown_works=yes +ac_cv_func_fork_works=yes ac_cv_func_getgroups_works=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_memcmp_working=yes @@ -227,6 +228,7 @@ xorg_cv_malloc0_returns_null=yes"}; : ${CONFIG_CACHE_GNULIB:=" ac_cv_func___fseterr=yes +am_cv_func_working_getline=yes gl_cv_C_locale_sans_EILSEQ=yes gl_cv_func_cbrtl_ieee=yes gl_cv_func_ceilf_ieee=yes @@ -327,6 +329,8 @@ gl_cv_func_strchrnul_works=yes gl_cv_func_strerror_0_works=yes gl_cv_func_strstr_linear=yes gl_cv_func_strtod_works=yes +gl_cv_func_strtoll_works=yes +gl_cv_func_strtoull_works=yes gl_cv_func_svid_putenv=yes gl_cv_func_symlink_works=yes gl_cv_func_tdelete_works=yes @@ -335,6 +339,7 @@ gl_cv_func_trunc_ieee=yes gl_cv_func_truncl_ieee=yes gl_cv_func_tzset_clobber=no gl_cv_func_ungetc_works=yes +gl_cv_func_unlink_busy_text=yes gl_cv_func_unlink_honors_slashes=yes gl_cv_func_unsetenv_works=yes gl_cv_func_usleep_works=yes diff --git a/patches/coreutils-8.32.local.patch b/patches/coreutils-8.32.local.patch deleted file mode 100644 index 45b861e..0000000 --- a/patches/coreutils-8.32.local.patch +++ /dev/null @@ -1,56 +0,0 @@ -diff -ru coreutils-8.27.orig/configure coreutils-8.27/configure ---- coreutils-8.27.orig/configure 2017-03-09 06:00:50.000000000 +0100 -+++ coreutils-8.27/configure 2017-08-11 19:04:46.135115372 +0200 -@@ -68318,3 +68318,12 @@ - $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} - fi - -+# bypass dependency on help2man -+if [ x"$cross_compiling" = xyes ]; then -+ mkdir -p man; -+ for f in $srcdir/src/*.c; do src=$(basename $f); doc="${src%.*}"; echo $doc; touch man/$doc.1; done -+ for f in dir sha1sum sha224sum sha256sum sha384sum sha512sum vdir; do touch man/$f.1; done -+ -+ sed -i -e 's/@cross_compiling@/'$cross_compiling'/g' Makefile || exit 2 -+fi -+ -diff -ru coreutils-8.27.orig/Makefile.in coreutils-8.27/Makefile.in ---- coreutils-8.27.orig/Makefile.in 2017-03-09 06:24:51.000000000 +0100 -+++ coreutils-8.27/Makefile.in 2017-08-11 19:09:39.000000000 +0200 -@@ -3454,7 +3454,7 @@ - INET_PTON_LIB = @INET_PTON_LIB@ - INSTALL = $(cu_install_program) -c - INSTALL_DATA = @INSTALL_DATA@ --INSTALL_PROGRAM = @INSTALL_PROGRAM@ -+INSTALL_PROGRAM = install - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ - INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ -@@ -5040,12 +5040,14 @@ - $(bin_SCRIPTS) \ - $(EXTRA_PROGRAMS) - -+CROSS_COMPILE = @cross_compiling@ -+ - pm = progs-makefile - pr = progs-readme - @CROSS_COMPILING_FALSE@cu_install_program = src/ginstall - - # Use the just-built 'ginstall', when not cross-compiling. --@CROSS_COMPILING_TRUE@cu_install_program = @INSTALL@ -+@CROSS_COMPILING_TRUE@cu_install_program = install - info_TEXINFOS = doc/coreutils.texi - doc_coreutils_TEXINFOS = \ - doc/perm.texi \ -diff -ru coreutils-8.31.orig/src/fs.h coreutils-8.31/src/fs.h ---- coreutils-8.31.orig/src/fs.h 2019-03-06 19:53:32.000000000 +0100 -+++ coreutils-8.31/src/fs.h 2019-10-18 08:55:31.598366616 +0200 -@@ -2,7 +2,7 @@ - Please send additions to bug-coreutils@gnu.org and meskes@debian.org. - This file is generated automatically from ./src/stat.c. */ - --#if defined __linux__ || defined __ANDROID__ -+#if defined __linux__ || defined __ANDROID__ || defined(__midipix__) - # define S_MAGIC_AAFS 0x5A3C69F0 - # define S_MAGIC_ACFS 0x61636673 - # define S_MAGIC_ADFS 0xADF5 diff --git a/patches/coreutils-9.0.local.patch b/patches/coreutils-9.0.local.patch new file mode 100644 index 0000000..cd2814c --- /dev/null +++ b/patches/coreutils-9.0.local.patch @@ -0,0 +1,90 @@ +diff -ru coreutils-9.0.orig/lib/lchmod.c coreutils-9.0/lib/lchmod.c +--- coreutils-9.0.orig/lib/lchmod.c 2021-09-24 13:32:44.000000000 +0200 ++++ coreutils-9.0/lib/lchmod.c 2021-09-28 21:21:23.721953133 +0200 +@@ -76,7 +76,7 @@ + return -1; + } + +-# if defined __linux__ || defined __ANDROID__ || defined __CYGWIN__ ++# if defined __linux__ || defined __ANDROID__ || defined __CYGWIN__ || defined __midipix__ + static char const fmt[] = "/proc/self/fd/%d"; + char buf[sizeof fmt - sizeof "%d" + INT_BUFSIZE_BOUND (int)]; + sprintf (buf, fmt, fd); +diff -ru coreutils-9.0.orig/src/ls.c coreutils-9.0/src/ls.c +--- coreutils-9.0.orig/src/ls.c 2021-09-24 13:31:05.000000000 +0200 ++++ coreutils-9.0/src/ls.c 2021-09-28 19:14:34.301611763 +0200 +@@ -2273,18 +2273,14 @@ + if (linelen < 0) + { + /* Suppress bogus warning re comparing ws.ws_col to big integer. */ +-# if __GNUC_PREREQ (4, 6) + # pragma GCC diagnostic push + # pragma GCC diagnostic ignored "-Wtype-limits" +-# endif + struct winsize ws; + if (stdout_isatty () + && 0 <= ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws) + && 0 < ws.ws_col) + linelen = ws.ws_col <= MIN (PTRDIFF_MAX, SIZE_MAX) ? ws.ws_col : 0; +-# if __GNUC_PREREQ (4, 6) + # pragma GCC diagnostic pop +-# endif + } + #endif + if (linelen < 0) +diff -ru coreutils-8.27.orig/configure coreutils-8.27/configure +--- coreutils-8.27.orig/configure 2017-03-09 06:00:50.000000000 +0100 ++++ coreutils-8.27/configure 2017-08-11 19:04:46.135115372 +0200 +@@ -68318,3 +68318,12 @@ + $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + fi + ++# bypass dependency on help2man ++if [ x"$cross_compiling" = xyes ]; then ++ mkdir -p man; ++ for f in $srcdir/src/*.c; do src=$(basename $f); doc="${src%.*}"; echo $doc; touch man/$doc.1; done ++ for f in dir sha1sum sha224sum sha256sum sha384sum sha512sum vdir; do touch man/$f.1; done ++ ++ sed -i -e 's/@cross_compiling@/'$cross_compiling'/g' Makefile || exit 2 ++fi ++ +diff -ru coreutils-8.27.orig/Makefile.in coreutils-8.27/Makefile.in +--- coreutils-8.27.orig/Makefile.in 2017-03-09 06:24:51.000000000 +0100 ++++ coreutils-8.27/Makefile.in 2017-08-11 19:09:39.000000000 +0200 +@@ -3454,7 +3454,7 @@ + INET_PTON_LIB = @INET_PTON_LIB@ + INSTALL = $(cu_install_program) -c + INSTALL_DATA = @INSTALL_DATA@ +-INSTALL_PROGRAM = @INSTALL_PROGRAM@ ++INSTALL_PROGRAM = install + INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ + INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ +@@ -5040,12 +5040,14 @@ + $(bin_SCRIPTS) \ + $(EXTRA_PROGRAMS) + ++CROSS_COMPILE = @cross_compiling@ ++ + pm = progs-makefile + pr = progs-readme + @CROSS_COMPILING_FALSE@cu_install_program = src/ginstall + + # Use the just-built 'ginstall', when not cross-compiling. +-@CROSS_COMPILING_TRUE@cu_install_program = @INSTALL@ ++@CROSS_COMPILING_TRUE@cu_install_program = install + info_TEXINFOS = doc/coreutils.texi + doc_coreutils_TEXINFOS = \ + doc/perm.texi \ +diff -ru coreutils-8.31.orig/src/fs.h coreutils-8.31/src/fs.h +--- coreutils-8.31.orig/src/fs.h 2019-03-06 19:53:32.000000000 +0100 ++++ coreutils-8.31/src/fs.h 2019-10-18 08:55:31.598366616 +0200 +@@ -2,7 +2,7 @@ + Please send additions to bug-coreutils@gnu.org and meskes@debian.org. + This file is generated automatically from ./src/stat.c. */ + +-#if defined __linux__ || defined __ANDROID__ ++#if defined __linux__ || defined __ANDROID__ || defined(__midipix__) + # define S_MAGIC_AAFS 0x5A3C69F0 + # define S_MAGIC_ACFS 0x61636673 + # define S_MAGIC_ADFS 0xADF5 diff --git a/patches/coreutils_minipix-8.32.local.patch b/patches/coreutils_minipix-8.32.local.patch deleted file mode 100644 index 45b861e..0000000 --- a/patches/coreutils_minipix-8.32.local.patch +++ /dev/null @@ -1,56 +0,0 @@ -diff -ru coreutils-8.27.orig/configure coreutils-8.27/configure ---- coreutils-8.27.orig/configure 2017-03-09 06:00:50.000000000 +0100 -+++ coreutils-8.27/configure 2017-08-11 19:04:46.135115372 +0200 -@@ -68318,3 +68318,12 @@ - $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} - fi - -+# bypass dependency on help2man -+if [ x"$cross_compiling" = xyes ]; then -+ mkdir -p man; -+ for f in $srcdir/src/*.c; do src=$(basename $f); doc="${src%.*}"; echo $doc; touch man/$doc.1; done -+ for f in dir sha1sum sha224sum sha256sum sha384sum sha512sum vdir; do touch man/$f.1; done -+ -+ sed -i -e 's/@cross_compiling@/'$cross_compiling'/g' Makefile || exit 2 -+fi -+ -diff -ru coreutils-8.27.orig/Makefile.in coreutils-8.27/Makefile.in ---- coreutils-8.27.orig/Makefile.in 2017-03-09 06:24:51.000000000 +0100 -+++ coreutils-8.27/Makefile.in 2017-08-11 19:09:39.000000000 +0200 -@@ -3454,7 +3454,7 @@ - INET_PTON_LIB = @INET_PTON_LIB@ - INSTALL = $(cu_install_program) -c - INSTALL_DATA = @INSTALL_DATA@ --INSTALL_PROGRAM = @INSTALL_PROGRAM@ -+INSTALL_PROGRAM = install - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ - INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ -@@ -5040,12 +5040,14 @@ - $(bin_SCRIPTS) \ - $(EXTRA_PROGRAMS) - -+CROSS_COMPILE = @cross_compiling@ -+ - pm = progs-makefile - pr = progs-readme - @CROSS_COMPILING_FALSE@cu_install_program = src/ginstall - - # Use the just-built 'ginstall', when not cross-compiling. --@CROSS_COMPILING_TRUE@cu_install_program = @INSTALL@ -+@CROSS_COMPILING_TRUE@cu_install_program = install - info_TEXINFOS = doc/coreutils.texi - doc_coreutils_TEXINFOS = \ - doc/perm.texi \ -diff -ru coreutils-8.31.orig/src/fs.h coreutils-8.31/src/fs.h ---- coreutils-8.31.orig/src/fs.h 2019-03-06 19:53:32.000000000 +0100 -+++ coreutils-8.31/src/fs.h 2019-10-18 08:55:31.598366616 +0200 -@@ -2,7 +2,7 @@ - Please send additions to bug-coreutils@gnu.org and meskes@debian.org. - This file is generated automatically from ./src/stat.c. */ - --#if defined __linux__ || defined __ANDROID__ -+#if defined __linux__ || defined __ANDROID__ || defined(__midipix__) - # define S_MAGIC_AAFS 0x5A3C69F0 - # define S_MAGIC_ACFS 0x61636673 - # define S_MAGIC_ADFS 0xADF5 diff --git a/patches/coreutils_minipix-9.0.local.patch b/patches/coreutils_minipix-9.0.local.patch new file mode 120000 index 0000000..7d54ba2 --- /dev/null +++ b/patches/coreutils_minipix-9.0.local.patch @@ -0,0 +1 @@ +coreutils-9.0.local.patch \ No newline at end of file