]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
localedata: Do not generate output if warnings were present.
authorCarlos O'Donell <carlos@redhat.com>
Thu, 3 Feb 2022 21:01:52 +0000 (16:01 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 25 Feb 2022 12:31:27 +0000 (07:31 -0500)
With LC_MONETARY parsing fixed we can now generate locales
without forcing output with '-c'.

Removing '-c' from localedef invocation is the equivalent of
using -Werror for localedef.  The glibc locale sources should
always be clean and free from warnings.

We remove '-c' from both test locale generation and the targets
used for installing locales e.g. install-locale-archive, and
install-locale-files.

Tested on x86_64 and i686 without regressions.
Tested with install-locale-archive target.
Tested with install-locale-files target.

Reviewed-by: DJ Delorie <dj@redhat.com>
localedata/Makefile
localedata/gen-locale.sh

index 9ae2e5c161d60d119d48b066ed20efd25f243797..7741ac3b5e96868537ecf76adb1236a5264dc915 100644 (file)
@@ -468,11 +468,11 @@ define build-one-locale
 endef
 
 $(INSTALL-SUPPORTED-LOCALE-ARCHIVE): install-locales-dir
-       @flags="-c"; \
+       @flags=""; \
        $(build-one-locale)
 
 $(INSTALL-SUPPORTED-LOCALE-FILES): install-locales-dir
-       @flags="-c --no-archive --no-hard-links"; \
+       @flags="--no-archive --no-hard-links"; \
        $(build-one-locale)
 
 tst-setlocale-ENV = LC_ALL=ja_JP.EUC-JP
index 7fce35f2127a3ef5c96f307f3868a82b1d011b89..8053c816a6067159e769584a94bb9cb02fc97aa5 100644 (file)
@@ -54,8 +54,14 @@ modifier=`echo $locfile|sed 's|[^.]*[.]\([^@ ]*\)\(@[^ ]*\)\?/LC_CTYPE|\2|'`
 
 echo "Generating locale $locale.$charmap: this might take a while..."
 
-# Run quietly and force output.
-flags="--quiet -c"
+# Do not force output with '-c', all locales should compile without
+# warning or errors.  There is likewise no need to run quietly with
+# '--quiet' since all locales should compile without additional
+# diagnostics.  If there are messages printed then we want to see
+# them, fix them, and the associated error or warning.  During
+# development it may be beneficialy to put '--quiet -c' here to allow
+# you to develop in-progress locales.
+flags=""
 
 # For SJIS the charmap is SHIFT_JIS. We just want the locale to have
 # a slightly nicer name instead of using "*.SHIFT_SJIS", but that