From 4264f58238aef4cdbaeb20052c7dbcd399e6aa3f Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Tue, 29 Jun 2021 10:51:46 +0200 Subject: [PATCH v2] sys-libs/glibc: unbreak USE=compile-locales USE=compile-locales has two errors: 1) Looks for locale.gen in the build tree where there is none. 2) Looks for locale src in the host tree, which may be old or non existent. This fixes those problems by using ESYSROOT when building locales instead of EROOT as the latter is not allowed in src_install. Also point to locale src using I18NPATH variable Signed-off-by: Joakim Tjernlund --- sys-libs/glibc/glibc-2.33.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-libs/glibc/glibc-2.33.ebuild b/sys-libs/glibc/glibc-2.33.ebuild index c97ef6b4c66..2db16e8e66b 100644 --- a/sys-libs/glibc/glibc-2.33.ebuild +++ b/sys-libs/glibc/glibc-2.33.ebuild @@ -1175,9 +1175,10 @@ run_locale_gen() { if [[ "${root}" == "--inplace-glibc" ]] ; then inplace="--inplace-glibc" root="$2" + export I18NPATH="${ED}"/usr/share/i18n fi - local locale_list="${root}/etc/locale.gen" + local locale_list="${ESYSROOT}/etc/locale.gen" pushd "${ED}"/$(get_libdir) >/dev/null -- 2.31.1