Blame patches/coreutils-9.0.local.patch

2458c7
diff --git a/src/chmod.c b/src/chmod.c
2458c7
index 37b04f500..57ac47f33 100644
2458c7
--- a/src/chmod.c
2458c7
+++ b/src/chmod.c
2458c7
@@ -44,8 +44,8 @@ struct change_status
2458c7
   enum
2458c7
     {
2458c7
       CH_NO_STAT,
2458c7
-      CH_NOT_APPLIED,
2458c7
       CH_FAILED,
2458c7
+      CH_NOT_APPLIED,
2458c7
       CH_NO_CHANGE_REQUESTED,
2458c7
       CH_SUCCEEDED
2458c7
     }
2458c7
@@ -322,7 +322,7 @@ process_file (FTS *fts, FTSENT *ent)
2458c7
   if ( ! recurse)
2458c7
     fts_set (fts, ent, FTS_SKIP);
2458c7
 
2458c7
-  return CH_NO_CHANGE_REQUESTED <= ch.status;
2458c7
+  return CH_NOT_APPLIED <= ch.status;
2458c7
 }
2458c7
 
2458c7
 /* Recursively change the modes of the specified FILES (the last entry
64f564
diff -ru coreutils-9.0.orig/lib/lchmod.c coreutils-9.0/lib/lchmod.c
64f564
--- coreutils-9.0.orig/lib/lchmod.c     2021-09-24 13:32:44.000000000 +0200
64f564
+++ coreutils-9.0/lib/lchmod.c  2021-09-28 21:21:23.721953133 +0200
64f564
@@ -76,7 +76,7 @@
64f564
       return -1;
64f564
     }
64f564
64f564
-# if defined __linux__ || defined __ANDROID__ || defined __CYGWIN__
64f564
+# if defined __linux__ || defined __ANDROID__ || defined __CYGWIN__ || defined __midipix__
64f564
   static char const fmt[] = "/proc/self/fd/%d";
64f564
   char buf[sizeof fmt - sizeof "%d" + INT_BUFSIZE_BOUND (int)];
64f564
   sprintf (buf, fmt, fd);
64f564
diff -ru coreutils-9.0.orig/src/ls.c coreutils-9.0/src/ls.c
64f564
--- coreutils-9.0.orig/src/ls.c 2021-09-24 13:31:05.000000000 +0200
64f564
+++ coreutils-9.0/src/ls.c      2021-09-28 19:14:34.301611763 +0200
64f564
@@ -2273,18 +2273,14 @@
64f564
       if (linelen < 0)
64f564
         {
64f564
           /* Suppress bogus warning re comparing ws.ws_col to big integer.  */
64f564
-# if __GNUC_PREREQ (4, 6)
64f564
 #  pragma GCC diagnostic push
64f564
 #  pragma GCC diagnostic ignored "-Wtype-limits"
64f564
-# endif
64f564
           struct winsize ws;
64f564
           if (stdout_isatty ()
64f564
               && 0 <= ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws)
64f564
               && 0 < ws.ws_col)
64f564
             linelen = ws.ws_col <= MIN (PTRDIFF_MAX, SIZE_MAX) ? ws.ws_col : 0;
64f564
-# if __GNUC_PREREQ (4, 6)
64f564
 #  pragma GCC diagnostic pop
64f564
-# endif
64f564
         }
64f564
 #endif
64f564
       if (linelen < 0)
Lucio Andrés Illanes Albornoz a16226
diff -ru coreutils-8.27.orig/configure coreutils-8.27/configure
Lucio Andrés Illanes Albornoz a16226
--- coreutils-8.27.orig/configure	2017-03-09 06:00:50.000000000 +0100
Lucio Andrés Illanes Albornoz a16226
+++ coreutils-8.27/configure	2017-08-11 19:04:46.135115372 +0200
Lucio Andrés Illanes Albornoz a16226
@@ -68318,3 +68318,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+# bypass dependency on help2man
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+if [ x"$cross_compiling" = xyes ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+	mkdir -p man;
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+	for f in $srcdir/src/*.c; do src=$(basename $f); doc="${src%.*}"; echo $doc; touch man/$doc.1; done
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+	for f in dir sha1sum sha224sum sha256sum sha384sum sha512sum vdir; do touch man/$f.1; done
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+	sed -i -e 's/@cross_compiling@/'$cross_compiling'/g' Makefile || exit 2
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+fi
Lucio Andrés Illanes Albornoz a16226
+
Lucio Andrés Illanes Albornoz a16226
diff -ru coreutils-8.27.orig/Makefile.in coreutils-8.27/Makefile.in
Lucio Andrés Illanes Albornoz a16226
--- coreutils-8.27.orig/Makefile.in	2017-03-09 06:24:51.000000000 +0100
Lucio Andrés Illanes Albornoz a16226
+++ coreutils-8.27/Makefile.in	2017-08-11 19:09:39.000000000 +0200
Lucio Andrés Illanes Albornoz a16226
@@ -3454,7 +3454,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 INET_PTON_LIB = @INET_PTON_LIB@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 INSTALL = $(cu_install_program) -c
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 INSTALL_DATA = @INSTALL_DATA@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+INSTALL_PROGRAM = install
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
Lucio Andrés Illanes Albornoz a16226
@@ -5040,12 +5040,14 @@
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
     $(bin_SCRIPTS) \
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
     $(EXTRA_PROGRAMS)
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+CROSS_COMPILE = @cross_compiling@
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
+
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 pm = progs-makefile
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 pr = progs-readme
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 @CROSS_COMPILING_FALSE@cu_install_program = src/ginstall
Lucio Andrés Illanes Albornoz (arab, vxp) cddeef
 
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 # Use the just-built 'ginstall', when not cross-compiling.
Lucio Andrés Illanes Albornoz a16226
-@CROSS_COMPILING_TRUE@cu_install_program = @INSTALL@
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
+@CROSS_COMPILING_TRUE@cu_install_program = install
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 info_TEXINFOS = doc/coreutils.texi
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
 doc_coreutils_TEXINFOS = \
Lucio Andrés Illanes Albornoz (arab, vxp) 09c779
   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 a16226
@@ -2,7 +2,7 @@
Lucio Andrés Illanes Albornoz a16226
    Please send additions to bug-coreutils@gnu.org and meskes@debian.org.
Lucio Andrés Illanes Albornoz a16226
    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 416b29
 # define S_MAGIC_AAFS 0x5A3C69F0
Lucio Andrés Illanes Albornoz a16226
 # define S_MAGIC_ACFS 0x61636673
Lucio Andrés Illanes Albornoz a16226
 # define S_MAGIC_ADFS 0xADF5