]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libc-locale: Fix on target locale generation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 Feb 2023 08:51:03 +0000 (08:51 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 20 Feb 2023 15:51:44 +0000 (05:51 -1000)
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 <richard.purdie@linuxfoundation.org>
(cherry picked from commit f2844c9f1bbb729562063d96a3d1cc9d44dafa0a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/libc-package.bbclass

index 1143f538d66ec84c2ef973e57557f55d44a44a04..72f489d673f8ca8392377d700ab299e17b72c68a 100644 (file)
@@ -45,6 +45,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
 }