1 |
commit: e384a5562c53795590cfc9239b422062bf559105 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 2 23:45:43 2019 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 12 04:17:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=e384a556 |
7 |
|
8 |
locale-gen: add trigger variable for compiled-locales and warning to locale-gen |
9 |
|
10 |
Originally ab05be2e3957ccbec1279124f7da51c0a602fdea, gentoo/glibc-9999-14 |
11 |
|
12 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
13 |
|
14 |
locale-gen | 11 +++++++++++ |
15 |
1 file changed, 11 insertions(+) |
16 |
|
17 |
diff --git a/locale-gen b/locale-gen |
18 |
index 794cfeb..bfbd505 100755 |
19 |
--- a/locale-gen |
20 |
+++ b/locale-gen |
21 |
@@ -20,6 +20,8 @@ source "${EPREFIX}"${FUNCTIONS_SH} || { |
22 |
exit 1 |
23 |
} |
24 |
|
25 |
+COMPILED_LOCALES="" |
26 |
+ |
27 |
show_usage() { |
28 |
cat <<-EOF |
29 |
Usage: ${HILITE}${argv0}${NORMAL} ${GOOD}[options]${NORMAL} -- ${GOOD}[localedef options]${NORMAL} |
30 |
@@ -96,6 +98,15 @@ while [[ $# -gt 0 ]] ; do |
31 |
esac |
32 |
shift |
33 |
done |
34 |
+ |
35 |
+if [[ -n ${COMPILED_LOCALES} ]] ; then |
36 |
+ ewarn "All locales have been installed and registered by the package manager. If you" |
37 |
+ ewarn "rebuild the locale archive now, file integrity tools may show it as corrupted." |
38 |
+ ewarn "This is not really a big problem, but a better solution is to disable" |
39 |
+ ewarn "USE=compile-locales and re-install glibc if you dont need all locales." |
40 |
+ echo |
41 |
+fi |
42 |
+ |
43 |
if [[ -z ${JOBS_MAX} ]] ; then |
44 |
JOBS_MAX=$(getconf _NPROCESSORS_ONLN 2>/dev/null) |
45 |
: ${JOBS_MAX:=1} |