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>2019-08-03 01:45:43 +0200
commit2aebca3c0f66ae24da775bc77c387132edc17dd7 (patch)
tree6b87ffb1d2d9c0b93f240f16a1b73fa279766538
parentGentoo: Fix 'make install-headers' when cross-compiler is not available yet. (diff)
downloadglibc-2aebca3c0f66ae24da775bc77c387132edc17dd7.tar.gz
glibc-2aebca3c0f66ae24da775bc77c387132edc17dd7.tar.bz2
glibc-2aebca3c0f66ae24da775bc77c387132edc17dd7.zip
[no-patch] Gentoo: Add trigger variable for compiled-locales and warning to locale-gengentoo/glibc-2.30-1
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xscripts/gentoo/extra/locale/locale-gen11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/gentoo/extra/locale/locale-gen b/scripts/gentoo/extra/locale/locale-gen
index 794cfeb2e7..bfbd505c37 100755
--- a/scripts/gentoo/extra/locale/locale-gen
+++ b/scripts/gentoo/extra/locale/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}