Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509246 - sys-libs/glibc: locale-gen is needlessly single-threaded
Summary: sys-libs/glibc: locale-gen is needlessly single-threaded
Status: RESOLVED DUPLICATE of bug 497784
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-01 10:57 UTC by Patrick Lauer
Modified: 2014-05-01 17:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2014-05-01 10:57:09 UTC
Quoting from locale-gen:

Line 73: LOCALE_ARCHIVE=true
Line 147 ff:

if ${LOCALE_ARCHIVE} ; then
        if [[ ${JOBS_MAX} != 1 ]] ; then
                ewarn "Generating locale-archive: forcing # of jobs to 1"
                JOBS_MAX=1
        fi
else
        LOCALEDEF_OPTS="--no-archive ${LOCALEDEF_OPTS}"
fi


So this will never run in parallel, even though the code has machinery for it.

I've locally patched it to see what happens, as expected it runs faster and in parallel. The job tracking seems mildly buggy as it returns to prompt before the last jobs terminate:

 *  (11/14) Generating fa_IR.UTF-8 ... [ ok ]
 * Generation complete
sysresccd / #  *  (12/14) Generating fr_FR.ISO-8859-1 ... [ ok ]
 *  (14/14) Generating it_IT.ISO-8859-1 ... [ ok ]

But that should be fixable too ...
Comment 1 SpanKY gentoo-dev 2014-05-01 17:43:51 UTC

*** This bug has been marked as a duplicate of bug 497784 ***