Fix failure in check targets when there is no UTF-8 C locale.
This commit is contained in:
@@ -152,7 +152,7 @@ check-fuzzer:
|
||||
|
||||
check: $(TEST_PROGS) check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
@@ -200,7 +200,7 @@ fuzz_iolog_json_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_iolog_json: fuzz_iolog_json
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -225,7 +225,7 @@ fuzz_iolog_legacy_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_iolog_legacy: fuzz_iolog_legacy
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -250,7 +250,7 @@ fuzz_iolog_timing_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_iolog_timing: fuzz_iolog_timing
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -302,7 +302,7 @@ fuzz: run-fuzz_iolog_json run-fuzz_iolog_legacy run-fuzz_iolog_timing
|
||||
|
||||
check-fuzzer: $(FUZZ_PROGS)
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -319,7 +319,7 @@ check-fuzzer: $(FUZZ_PROGS)
|
||||
|
||||
check: $(TEST_PROGS) check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
@@ -342,7 +342,7 @@ fuzz_sudo_conf_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_sudo_conf: fuzz_sudo_conf
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -406,7 +406,7 @@ fuzz: run-fuzz_sudo_conf
|
||||
|
||||
check-fuzzer: $(FUZZ_PROGS)
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -420,7 +420,7 @@ check-fuzzer: $(FUZZ_PROGS)
|
||||
# Note: some regress checks are run from srcdir for consistent error messages
|
||||
check: $(TEST_PROGS) check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
@@ -195,7 +195,7 @@ fuzz_logsrvd_conf_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_logsrvd_conf: fuzz_logsrvd_conf
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -256,7 +256,7 @@ fuzz: run-fuzz_logsrvd_conf
|
||||
|
||||
check-fuzzer: $(FUZZ_PROGS)
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -269,7 +269,7 @@ check-fuzzer: $(FUZZ_PROGS)
|
||||
|
||||
check: $(TEST_PROGS) check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
@@ -228,7 +228,7 @@ check-fuzzer:
|
||||
|
||||
check: $(TEST_PROGS) check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
@@ -431,7 +431,7 @@ fuzz_policy_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_policy: fuzz_policy
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -456,7 +456,7 @@ fuzz_sudoers_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_sudoers: fuzz_sudoers
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -481,7 +481,7 @@ fuzz_sudoers_ldif_seed_corpus.zip:
|
||||
rm -rf $$tdir
|
||||
|
||||
run-fuzz_sudoers_ldif: fuzz_sudoers_ldif
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -629,7 +629,7 @@ fuzz: run-fuzz_policy run-fuzz_sudoers run-fuzz_sudoers_ldif
|
||||
|
||||
check-fuzzer: $(FUZZ_PROGS)
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
@@ -646,7 +646,7 @@ check-fuzzer: $(FUZZ_PROGS)
|
||||
|
||||
check: $(TEST_PROGS) visudo testsudoers cvtsudoers check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
@@ -332,7 +332,7 @@ check-fuzzer:
|
||||
|
||||
check: $(TEST_PROGS) check-fuzzer
|
||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'`; \
|
||||
l=`locale -a 2>&1 | $(EGREP) -i '^C.UTF-?8$$'` || true; \
|
||||
test -n "$$l" || l="C"; \
|
||||
LC_ALL="$$l"; export LC_ALL; \
|
||||
unset LANG || LANG=; \
|
||||
|
Reference in New Issue
Block a user