diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-08-03 01:45:43 +0200 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-02-16 19:04:42 +0000 |
commit | b6a12ec6c3756e5d3c4fff2986c35ec257fa4806 (patch) | |
tree | 2d1a2510605760ea48550828a7168808a4e69362 | |
parent | Gentoo: force -O0 in conform tests to survive $CC changes (diff) | |
download | glibc-gentoo/glibc-2.30-5.tar.gz glibc-gentoo/glibc-2.30-5.tar.bz2 glibc-gentoo/glibc-2.30-5.zip |
[no-patch] Gentoo: Add trigger variable for compiled-locales and warning to locale-gengentoo/glibc-2.30-5
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-x | scripts/gentoo/extra/locale/locale-gen | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/gentoo/extra/locale/locale-gen b/scripts/gentoo/extra/locale/locale-gen index fd9ac56a71..eb19c2f151 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} |