commit: b9166d1131fe00d1c6bd23b8feb9ff4b0c883d34
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Thu Oct 30 02:27:18 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 30 04:38:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9166d11
sys-apps/locale-gen: Apply the fix for bug #964382 to r9999
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/locale-gen/locale-gen-9999.ebuild | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/sys-apps/locale-gen/locale-gen-9999.ebuild
b/sys-apps/locale-gen/locale-gen-9999.ebuild
index c380120ac933..9263d4838d6e 100644
--- a/sys-apps/locale-gen/locale-gen-9999.ebuild
+++ b/sys-apps/locale-gen/locale-gen-9999.ebuild
@@ -47,8 +47,12 @@ src_install() {
# See the locale.gen(5) and locale-gen(8) man pages for more
details.
EOF
- # Run the interpreter by name so as not to have to prefixify
mkconfig.
- perl mkconfig "${EROOT}"
+ if [[ -e ${EROOT}/usr/share/i18n/SUPPORTED ]]; then
+ # Run the interpreter by name so as not to have to
prefixify.
+ perl mkconfig "${EROOT}"
+ else
+ ewarn "Skipping the incorporation of locale.gen
examples because the SUPPORTED file is absent"
+ fi
} | newins - locale.gen
if (( PIPESTATUS[0] || PIPESTATUS[1] )); then
die "Failed to generate and/or install locale.gen"