@@ -, +, @@ --- sys-libs/glibc/glibc-2.33.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/sys-libs/glibc/glibc-2.33.ebuild +++ a/sys-libs/glibc/glibc-2.33.ebuild @@ -724,6 +724,7 @@ pkg_pretend() { pkg_setup() { # see bug 682570 [[ -z ${BOOTSTRAP_RAP} ]] && python-any-r1_pkg_setup + LOCALE_GEN_ROOT="${EROOT}" # For locale-gen later } # src_unpack @@ -1175,9 +1176,12 @@ run_locale_gen() { if [[ "${root}" == "--inplace-glibc" ]] ; then inplace="--inplace-glibc" root="$2" + # Use locale src in build tree + export I18NPATH="${ED}"/usr/share/i18n fi - local locale_list="${root}/etc/locale.gen" + # Always use hosts(EROOT) locale config + local locale_list="${LOCALE_GEN_ROOT}/etc/locale.gen" pushd "${ED}"/$(get_libdir) >/dev/null --