Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/glibc/extra/locale: locale-gen locale-gen.8 locale.gen.5
Date: Sat, 29 Dec 2007 21:34:57
Message-Id: E1J8jKQ-0005bK-ST@stork.gentoo.org
1 vapier 07/12/29 21:34:46
2
3 Modified: locale-gen locale-gen.8 locale.gen.5
4 Log:
5 generate a locale-archive by default ... this is much slower at build time as it cannot be done in parallel, but it is much faster at runtime #187658
6
7 Revision Changes Path
8 1.24 src/patchsets/glibc/extra/locale/locale-gen
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale-gen?rev=1.24&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale-gen?rev=1.24&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale-gen?r1=1.23&r2=1.24
13
14 Index: locale-gen
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v
17 retrieving revision 1.23
18 retrieving revision 1.24
19 diff -u -r1.23 -r1.24
20 --- locale-gen 22 Jul 2007 21:25:15 -0000 1.23
21 +++ locale-gen 29 Dec 2007 21:34:46 -0000 1.24
22 @@ -45,7 +45,7 @@
23 }
24 show_version() {
25 local Header=""
26 - local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.23 2007/07/22 21:25:15 vapier Exp $"
27 + local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.24 2007/12/29 21:34:46 vapier Exp $"
28 cvsver=${cvsver##*locale-gen,v }
29 echo "locale-gen-${cvsver%% *}"
30 exit 0
31 @@ -53,7 +53,7 @@
32
33
34
35 -LOCALEDEF_OPTS="--no-archive -c"
36 +LOCALEDEF_OPTS="-c"
37 KEEP=""
38 DESTDIR=""
39 CONFIG=""
40 @@ -65,6 +65,7 @@
41 JOBS_MAX=1
42 QUIET=0
43 SET_X=""
44 +LOCALE_ARCHIVE=true
45 while [[ -n $1 ]] ; do
46 case $1 in
47 -k|--keep|--keep-existing) KEEP=$1;;
48 @@ -118,6 +119,32 @@
49 SUPPORTED=${DESTDIR}usr/share/i18n/SUPPORTED
50 ALIAS=${DESTDIR}usr/share/locale/locale.alias
51
52 +#
53 +# Grab any user options in their config file
54 +options=$(sed -n \
55 + -e '/^[[:space:]]*#%/s:^[[:space:]]*#%[[:space:]]*::p'\
56 + "${CONFIG}"
57 +)
58 +IFS=$'\n'
59 +for option in ${options} ; do
60 + case ${option} in
61 + no-locale-archive)
62 + LOCALE_ARCHIVE=false
63 + ;;
64 + *)
65 + ewarn "Unrecognized option '${option}'"
66 + ;;
67 + esac
68 +done
69 +unset IFS
70 +
71 +if ${LOCALE_ARCHIVE} ; then
72 + if [[ ${JOBS_MAX} != 1 ]] ; then
73 + ewarn "Generating locale-archive: forcing # of jobs to 1"
74 + JOBS_MAX=1
75 + fi
76 +fi
77 +
78 [[ -n ${ALL} ]] && CONFIG=${SUPPORTED}
79
80 # Extract the location of the locale dir on the fly as `localedef --help` has:
81
82
83
84 1.4 src/patchsets/glibc/extra/locale/locale-gen.8
85
86 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale-gen.8?rev=1.4&view=markup
87 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale-gen.8?rev=1.4&content-type=text/plain
88 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale-gen.8?r1=1.3&r2=1.4
89
90 Index: locale-gen.8
91 ===================================================================
92 RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen.8,v
93 retrieving revision 1.3
94 retrieving revision 1.4
95 diff -u -r1.3 -r1.4
96 --- locale-gen.8 6 Aug 2007 11:45:49 -0000 1.3
97 +++ locale-gen.8 29 Dec 2007 21:34:46 -0000 1.4
98 @@ -50,8 +50,7 @@
99 \fB\-\-\fR
100 To pass custom options directly to the \fBlocaledef\fR utility, end the
101 \fBlocale\-gen\fR option list with \-\- and then everything after that will be
102 -passed on through unmolested (the options \-c \-\-no\-archive are passed by
103 -default)
104 +passed on through unmolested (the options \-c are passed by default)
105 .SH "AUTHORS"
106 .fi
107 Mike Frysinger <vapier@g.o>
108
109
110
111 1.3 src/patchsets/glibc/extra/locale/locale.gen.5
112
113 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale.gen.5?rev=1.3&view=markup
114 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale.gen.5?rev=1.3&content-type=text/plain
115 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/extra/locale/locale.gen.5?r1=1.2&r2=1.3
116
117 Index: locale.gen.5
118 ===================================================================
119 RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale.gen.5,v
120 retrieving revision 1.2
121 retrieving revision 1.3
122 diff -u -r1.2 -r1.3
123 --- locale.gen.5 28 Dec 2006 19:02:30 -0000 1.2
124 +++ locale.gen.5 29 Dec 2007 21:34:46 -0000 1.3
125 @@ -35,6 +35,12 @@
126 command will generate all the locales, placing them in
127 \fB/usr/lib/locale\fP.
128
129 +Comments start with the hash mark # and may only be on new lines.
130 +
131 +Options start with #% (to preserve backwards compatibility). The only option
132 +currently recognized is \fIno-locale-archive\fR. This will disable generation
133 +of the locale archive file and instead generate multiple files/directories for
134 +each locale.
135 .SH "SEE ALSO"
136 .BR locale-gen (8),
137 .BR localedef (1),
138
139
140
141 --
142 gentoo-commits@g.o mailing list