From 71ae4a2fb5600e8a4f0f9805c4f6d97be66ef53e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 4 Feb 2023 08:51:03 +0000 Subject: [PATCH] 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. (From OE-Core rev: 99b3e9101dc931e8d68158e7cf268dd7c6fee84c) Signed-off-by: Richard Purdie (cherry picked from commit f2844c9f1bbb729562063d96a3d1cc9d44dafa0a) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/classes-recipe/libc-package.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-recipe/libc-package.bbclass b/meta/classes-recipe/libc-package.bbclass index de3d4223a8..8a99f73ae7 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 }