summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add COPYING file with the GNU GPL2HEADmasterAndreas K. Hüttel2023-05-121-0/+339
| | | | | | | The code was originally taken from GNU glibc, and this license is what applies to the tools bundled with it. Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Fix use of EROOT to be compatible with EAPI 7+locale-gen-2.23Bart Oldeman2023-03-211-3/+3
| | | | | | | | | | | | | | | | | | EROOT no longer has a trailing slash, so replace it with "${EROOT%/}/" to avoid errors such as: /home/oldeman/eessi3/usr/sbin/locale-gen: line 168: /home/oldeman/eessi3usr/bin/localedef: No such file or directory * Unable to parse the output of your localedef utility. * File a bug about this issue and include the output of 'localedef --help'. in stage3.log when bootstrapping Gentoo Prefix. See also: https://mgorny.pl/articles/the-ultimate-guide-to-eapi-7.html#d-ed-root-eroot-no-longer-have-a-trailing-slash Closes: https://bugs.gentoo.org/883457 Signed-off-by: Bart Oldeman <bart.oldeman@calculquebec.ca> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* document bash version requirementslocale-gen-2.22Mike Frysinger2021-09-271-1/+3
| | | | | | | With bash-4.0 released in 2009, should be plenty of time to use its features. Especially with Gentoo requiring newer already. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* switch from tr to bash builtin ${var,,}Mike Frysinger2021-09-271-3/+4
| | | | | | This seems to speed things up. Or I'm lying to myself. Either way. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix hint about use of / in locale namesMike Frysinger2021-09-271-4/+4
| | | | | | | We checked $ret outside of the subshell where it was set, so this code never actually fired. Move it up to where it should work. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add quotes around : ${...} defaultsMike Frysinger2021-09-271-5/+5
| | | | | | | In practice this shouldn't matter, but this makes shellcheck a bit happy in case of pathological globs in environment variables. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* delete unused CUTF_ADDED variableMike Frysinger2021-09-271-1/+0
| | | | | | The code deleting its use forgot to clean up its decl. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* skip duplicate locales when normalizedMike Frysinger2021-09-271-12/+21
| | | | | | | | | | If you try to generate "en_US.UTF-8 UTF-8" and "en_US.UTF8 UTF-8", we end up generating the locale twice even though it normalizes down to the same value (or, in the case of --update, we skip the 1st and then always generate the 2nd). Keep track of all locales we've processed so we can dedupe as we go. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* omit more spam when in quiet modeMike Frysinger2021-09-271-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Ensure DESTDIR ends with a /Andreas K. Hüttel2021-08-061-0/+1
| | | | | Bug: https://bugs.gentoo.org/779790 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* omit spam when in quiet modeMike Frysinger2021-03-121-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix error message if no locales are to be addedlocale-gen-2.10Andreas K. Hüttel2020-07-271-2/+5
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Further logic improvementsAndreas K. Hüttel2020-07-271-54/+60
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Rework C.UTF-8 insertion logicAndreas K. Hüttel2020-07-261-16/+8
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Minor output fixAndreas K. Hüttel2020-07-151-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Remove incomplete, nonfunctional ROOT supportAndreas K. Hüttel2020-07-151-10/+7
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Drop useless old cvs version informationAndreas K. Hüttel2020-07-151-5/+2
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* locale-gen: remove --force option from localedef calllocale-gen-2.00Andreas K. Hüttel2020-05-121-1/+1
| | | | | | Originally 9231f507d365b6d81ccae618aaeca27076b92164, gentoo/glibc-9999-15 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* locale-gen: add trigger variable for compiled-locales and warning to locale-genAndreas K. Hüttel2020-05-121-0/+11
| | | | | | Originally ab05be2e3957ccbec1279124f7da51c0a602fdea, gentoo/glibc-9999-14 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* locale-gen: Add switch to force use of newly built ld.so for glibc updatesAndreas K. Hüttel2020-05-121-11/+44
| | | | | | Originally 6f89339308241bceb5194a200c99002e6c75dbb6, gentoo/glibc-9999-11 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* locale-gen: do not touch locale-archive when no locales requested in configAndreas K. Hüttel2020-05-121-2/+14
| | | | | | Originally 3179a4df4ea81aa9116b70e2a064f55da65d13e8, gentoo/glibc-9999-10 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* locale-gen: Always build the C.UTF-8 locale (which we now patch in)Andreas K. Hüttel2020-05-121-2/+6
| | | | | | Originally f2ed15510fd0f7b9bcc923e24efd2681aacd0d5f, gentoo/glibc-9999-9 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* locale-gen: suppress ignored error when emptying already empty directoryAndreas K. Hüttel2020-05-121-1/+1
| | | | | | | Originally aba214da1a265afe4dfa3b52bc356275a275a9aa, gentoo/glibc-9999-6 Closes: https://bugs.gentoo.org/647188 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* glibc: make locale-gen parallel, bug #592300slyfox2017-08-121-10/+29
| | | | | | | Speed up locale generation on multicore machines. Patch is written by Tobias Klausmann. Bug: https://bugs.gentoo.org/592300
* locale-gen: fix wait logic to not double increment job countervapier2015-10-141-2/+2
|
* locale-gen: default --jobs to ncpus onlinevapier2015-10-141-2/+6
|
* drop support for /etc/locales.buildvapier2015-08-291-51/+5
|
* locale-gen: detect non-unique locale names #235555vapier2015-08-291-4/+4
|
* improve documentation greatly #235555vapier2015-08-292-15/+48
|
* document the format of the -G optionvapier2015-08-291-1/+3
|
* detect & warn & filter out duplicate locale generation entries #550884 by ↵vapier2015-07-211-2/+12
| | | | Toralf Förster
* extra/locale/locale-gen: source /lib/gentoo/functions.sh, bug #478764blueness2014-12-281-3/+4
|
* locale-gen: write out localedef error messages when in quiet modevapier2014-06-131-2/+6
|
* locale-gen: use $# when processing positional argsvapier2014-06-131-3/+3
|
* add prefix support #473484 by Benda Xuvapier2013-07-011-10/+20
|
* avoid empty echo when running in quiet modevapier2011-12-131-2/+2
|
* simplify job handling a bit by always using it -- 1 job is simply a special ↵vapier2011-11-201-64/+35
| | | | case of N jobs
* make sure we pass along --no-archive when people request no-locale-archive ↵vapier2011-09-151-1/+3
| | | | in the config file
* use simpler default variable initializationvapier2011-09-151-4/+4
|
* clarify implicit --keep/--update when using --generatevapier2011-08-172-3/+3
|
* dont show error if config file doesnt existvapier2008-09-071-2/+2
|
* rework job handling so we dont lose status information #204299vapier2008-03-231-12/+19
|
* simplify version handling a littlevapier2008-03-231-4/+3
|
* generate a locale-archive by default ... this is much slower at build time ↵vapier2007-12-293-4/+36
| | | | as it cannot be done in parallel, but it is much faster at runtime #187658
* throw out the old manpage and write a new one that doesnt suck from scratchvapier2007-08-061-102/+67
|
* add a --generate <locale> option for quick one-shot testingvapier2007-07-221-15/+20
|
* flesh out support for DESTDIRvapier2007-01-291-18/+20
|
* add support for -j# syntaxvapier2007-01-291-1/+3
|
* tweak --update behavior to remove existing locales that the user did not specifyvapier2007-01-291-11/+31
|
* if locale failed to generate and it has a / in it, chances are the user ↵vapier2007-01-261-1/+6
| | | | messed up their locale.gen so lets display a helpful message