From: Richard Purdie Date: Sat, 4 Feb 2023 08:51:03 +0000 (+0000) Subject: libc-locale: Fix on target locale generation X-Git-Tag: 2022-10.3-langdale~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99b3e9101dc931e8d68158e7cf268dd7c6fee84c;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 (cherry picked from commit f2844c9f1bbb729562063d96a3d1cc9d44dafa0a) Signed-off-by: Steve Sakoman --- 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 }