Blame patches/coreutils_minipix-8.31.local.patch

Lucio Andrés Illanes Albornoz 5ec4a9
diff -ru coreutils-8.27.orig/configure coreutils-8.27/configure
Lucio Andrés Illanes Albornoz 5ec4a9
--- coreutils-8.27.orig/configure	2017-03-09 06:00:50.000000000 +0100
Lucio Andrés Illanes Albornoz 5ec4a9
+++ coreutils-8.27/configure	2017-08-11 19:04:46.135115372 +0200
Lucio Andrés Illanes Albornoz 5ec4a9
@@ -68318,3 +68318,12 @@
Lucio Andrés Illanes Albornoz 5ec4a9
 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Lucio Andrés Illanes Albornoz 5ec4a9
 fi
Lucio Andrés Illanes Albornoz 5ec4a9
 
Lucio Andrés Illanes Albornoz 5ec4a9
+# bypass dependency on help2man
Lucio Andrés Illanes Albornoz 5ec4a9
+if [ x"$cross_compiling" = xyes ]; then
Lucio Andrés Illanes Albornoz 5ec4a9
+	mkdir -p man;
Lucio Andrés Illanes Albornoz 5ec4a9
+	for f in $srcdir/src/*.c; do src=$(basename $f); doc="${src%.*}"; echo $doc; touch man/$doc.1; done
Lucio Andrés Illanes Albornoz 5ec4a9
+	for f in dir sha1sum sha224sum sha256sum sha384sum sha512sum vdir; do touch man/$f.1; done
Lucio Andrés Illanes Albornoz 5ec4a9
+
Lucio Andrés Illanes Albornoz 5ec4a9
+	sed -i -e 's/@cross_compiling@/'$cross_compiling'/g' Makefile || exit 2
Lucio Andrés Illanes Albornoz 5ec4a9
+fi
Lucio Andrés Illanes Albornoz 5ec4a9
+
Lucio Andrés Illanes Albornoz 5ec4a9
diff -ru coreutils-8.27.orig/Makefile.in coreutils-8.27/Makefile.in
Lucio Andrés Illanes Albornoz 5ec4a9
--- coreutils-8.27.orig/Makefile.in	2017-03-09 06:24:51.000000000 +0100
Lucio Andrés Illanes Albornoz 5ec4a9
+++ coreutils-8.27/Makefile.in	2017-08-11 19:09:39.000000000 +0200
Lucio Andrés Illanes Albornoz 5ec4a9
@@ -3454,7 +3454,7 @@
Lucio Andrés Illanes Albornoz 5ec4a9
 INET_PTON_LIB = @INET_PTON_LIB@
Lucio Andrés Illanes Albornoz 5ec4a9
 INSTALL = $(cu_install_program) -c
Lucio Andrés Illanes Albornoz 5ec4a9
 INSTALL_DATA = @INSTALL_DATA@
Lucio Andrés Illanes Albornoz 5ec4a9
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
Lucio Andrés Illanes Albornoz 5ec4a9
+INSTALL_PROGRAM = install
Lucio Andrés Illanes Albornoz 5ec4a9
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
Lucio Andrés Illanes Albornoz 5ec4a9
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
Lucio Andrés Illanes Albornoz 5ec4a9
 INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
Lucio Andrés Illanes Albornoz 5ec4a9
@@ -5040,12 +5040,14 @@
Lucio Andrés Illanes Albornoz 5ec4a9
     $(bin_SCRIPTS) \
Lucio Andrés Illanes Albornoz 5ec4a9
     $(EXTRA_PROGRAMS)
Lucio Andrés Illanes Albornoz 5ec4a9
 
Lucio Andrés Illanes Albornoz 5ec4a9
+CROSS_COMPILE = @cross_compiling@
Lucio Andrés Illanes Albornoz 5ec4a9
+
Lucio Andrés Illanes Albornoz 5ec4a9
 pm = progs-makefile
Lucio Andrés Illanes Albornoz 5ec4a9
 pr = progs-readme
Lucio Andrés Illanes Albornoz 5ec4a9
 @CROSS_COMPILING_FALSE@cu_install_program = src/ginstall
Lucio Andrés Illanes Albornoz 5ec4a9
 
Lucio Andrés Illanes Albornoz 5ec4a9
 # Use the just-built 'ginstall', when not cross-compiling.
Lucio Andrés Illanes Albornoz 5ec4a9
-@CROSS_COMPILING_TRUE@cu_install_program = @INSTALL@
Lucio Andrés Illanes Albornoz 5ec4a9
+@CROSS_COMPILING_TRUE@cu_install_program = install
Lucio Andrés Illanes Albornoz 5ec4a9
 info_TEXINFOS = doc/coreutils.texi
Lucio Andrés Illanes Albornoz 5ec4a9
 doc_coreutils_TEXINFOS = \
Lucio Andrés Illanes Albornoz 5ec4a9
   doc/perm.texi \
Lucio Andrés Illanes Albornoz 5ec4a9
diff -ru coreutils-8.31.orig/src/fs.h coreutils-8.31/src/fs.h
Lucio Andrés Illanes Albornoz 5ec4a9
--- coreutils-8.31.orig/src/fs.h        2019-03-06 19:53:32.000000000 +0100
Lucio Andrés Illanes Albornoz 5ec4a9
+++ coreutils-8.31/src/fs.h     2019-10-18 08:55:31.598366616 +0200
Lucio Andrés Illanes Albornoz 5ec4a9
@@ -2,7 +2,7 @@
Lucio Andrés Illanes Albornoz 5ec4a9
    Please send additions to bug-coreutils@gnu.org and meskes@debian.org.
Lucio Andrés Illanes Albornoz 5ec4a9
    This file is generated automatically from ./src/stat.c. */
Lucio Andrés Illanes Albornoz 5ec4a9
Lucio Andrés Illanes Albornoz 5ec4a9
-#if defined __linux__ || defined __ANDROID__
Lucio Andrés Illanes Albornoz 5ec4a9
+#if defined __linux__ || defined __ANDROID__ || defined(__midipix__)
Lucio Andrés Illanes Albornoz 5ec4a9
 # define S_MAGIC_AAFS 0x5A3C69F0
Lucio Andrés Illanes Albornoz 5ec4a9
 # define S_MAGIC_ACFS 0x61636673
Lucio Andrés Illanes Albornoz 5ec4a9
 # define S_MAGIC_ADFS 0xADF5