From: Richard Purdie Date: Sat, 4 Feb 2023 08:51:03 +0000 (+0000) Subject: libc-locale: Fix on target locale generation X-Git-Tag: 2023-04-mickledore~619 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2844c9f1bbb729562063d96a3d1cc9d44dafa0a;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git libc-locale: Fix on target locale generation If on target locale generation is used, it fails at first boot showing errors about a missing directory. Ensure the directory exists. Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/libc-package.bbclass b/meta/classes-recipe/libc-package.bbclass index de3d4223a8c..8a99f73ae72 100644 --- a/meta/classes-recipe/libc-package.bbclass +++ b/meta/classes-recipe/libc-package.bbclass @@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0" OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}" locale_base_postinst_ontarget() { +mkdir ${libdir}/locale localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s }