]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid issues with case insensitive file systems
authorPádraig Brady <P@draigBrady.com>
Sun, 17 May 2015 09:51:15 +0000 (10:51 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 17 May 2015 14:50:27 +0000 (15:50 +0100)
* cfg.mk (sc_case_insensitive_file_names): A new syntax-check rule.
* tests/tail-2/descriptor-vs-rename.sh: Rename from
tests/tail-2/f-vs-rename.sh
* tests/local.mk: Reference the renamed test.
Reported by Jim Meyering.

cfg.mk
tests/local.mk
tests/tail-2/descriptor-vs-rename.sh [moved from tests/tail-2/f-vs-rename.sh with 100% similarity]

diff --git a/cfg.mk b/cfg.mk
index 852685353a0181ba883151d3b25c765c7c04e900..8a5483eb66e8a68b863b8fbe69ef68d5fd4b4367 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -308,6 +308,12 @@ check-programs-vs-x:
        done;                                           \
        exit $$status
 
+# Ensure we can check out on case insensitive file systems
+sc_case_insensitive_file_names: src/uniq
+       @git ls-files | sort -f | src/uniq -Di | grep . && \
+         { echo "$(ME): the above file(s) conflict on case insensitive" \
+         " file systems" 1>&2; exit 1; } || :
+
 # Ensure that the end of each release's section is marked by two empty lines.
 sc_NEWS_two_empty_lines:
        @sed -n 4,/Noteworthy/p $(srcdir)/NEWS                          \
index 8d01064bf6c3c9a5b9b8dbaacc53b5421997a95b..bb78796cf8410ad5e338589074d14480789b9b6d 100644 (file)
@@ -172,7 +172,7 @@ all_tests =                                 \
   tests/tail-2/inotify-hash-abuse2.sh          \
   tests/tail-2/F-vs-missing.sh                 \
   tests/tail-2/F-vs-rename.sh                  \
-  tests/tail-2/f-vs-rename.sh                  \
+  tests/tail-2/descriptor-vs-rename.sh         \
   tests/tail-2/inotify-rotate.sh               \
   tests/tail-2/inotify-rotate-resources.sh     \
   tests/chmod/no-x.sh                          \