summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2019-08-03 01:45:43 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-05-12 07:17:24 +0300
commite384a5562c53795590cfc9239b422062bf559105 (patch)
tree06b852daeb5ecac808ea56eb690f54cddbd6ce8c
parentlocale-gen: Add switch to force use of newly built ld.so for glibc updates (diff)
downloadlocale-gen-e384a5562c53795590cfc9239b422062bf559105.tar.gz
locale-gen-e384a5562c53795590cfc9239b422062bf559105.tar.bz2
locale-gen-e384a5562c53795590cfc9239b422062bf559105.zip
locale-gen: add trigger variable for compiled-locales and warning to locale-gen
Originally ab05be2e3957ccbec1279124f7da51c0a602fdea, gentoo/glibc-9999-14 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xlocale-gen11
1 files changed, 11 insertions, 0 deletions
diff --git a/locale-gen b/locale-gen
index 794cfeb..bfbd505 100755
--- a/locale-gen
+++ b/locale-gen
@@ -20,6 +20,8 @@ source "${EPREFIX}"${FUNCTIONS_SH} || {
exit 1
}
+COMPILED_LOCALES=""
+
show_usage() {
cat <<-EOF
Usage: ${HILITE}${argv0}${NORMAL} ${GOOD}[options]${NORMAL} -- ${GOOD}[localedef options]${NORMAL}
@@ -96,6 +98,15 @@ while [[ $# -gt 0 ]] ; do
esac
shift
done
+
+if [[ -n ${COMPILED_LOCALES} ]] ; then
+ ewarn "All locales have been installed and registered by the package manager. If you"
+ ewarn "rebuild the locale archive now, file integrity tools may show it as corrupted."
+ ewarn "This is not really a big problem, but a better solution is to disable"
+ ewarn "USE=compile-locales and re-install glibc if you dont need all locales."
+ echo
+fi
+
if [[ -z ${JOBS_MAX} ]] ; then
JOBS_MAX=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
: ${JOBS_MAX:=1}