From: Pádraig Brady
Date: Sun, 17 May 2015 09:51:15 +0000 (+0100) Subject: build: avoid issues with case insensitive file systems X-Git-Tag: v8.24~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=524a86e4f5a2cf1145c18187d4158aec48c87640;p=thirdparty%2Fcoreutils.git build: avoid issues with case insensitive file systems * 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. --- diff --git a/cfg.mk b/cfg.mk index 852685353a..8a5483eb66 100644 --- 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 \ diff --git a/tests/local.mk b/tests/local.mk index 8d01064bf6..bb78796cf8 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -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 \ diff --git a/tests/tail-2/f-vs-rename.sh b/tests/tail-2/descriptor-vs-rename.sh similarity index 100% rename from tests/tail-2/f-vs-rename.sh rename to tests/tail-2/descriptor-vs-rename.sh