mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
sys-libs/glibc: Fix parallelization during binpkg install
Bug: https://bugs.gentoo.org/736794 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
@@ -1271,7 +1271,15 @@ run_locale_gen() {
|
||||
locale_list="${root%/}/usr/share/i18n/SUPPORTED"
|
||||
fi
|
||||
|
||||
set -- locale-gen ${inplace} --jobs $(makeopts_jobs) --config "${locale_list}" \
|
||||
# bug 736794: we need to be careful with the parallelization... the number of
|
||||
# processors saved in the environment of a binary package may differ strongly
|
||||
# from the number of processes available during postinst
|
||||
local mygenjobs="$(makeopts_jobs)"
|
||||
if [[ "${EMERGE_FROM}" == "binary" ]] ; then
|
||||
mygenjobs="$(nproc)"
|
||||
fi
|
||||
|
||||
set -- locale-gen ${inplace} --jobs "${mygenjobs}" --config "${locale_list}" \
|
||||
--destdir "${root}"
|
||||
echo "$@"
|
||||
"$@"
|
||||
|
||||
Reference in New Issue
Block a user