Skip to contentSkip to conversation

musl-locales: Add package

PATCH Superseded Khem Raj 1 participant 1 message Apr 22, 2022

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 musl-locales: Add package

This package will provide a limited set of localedata for musl based systems. It will fill in into images when IMAGE_LINGUAS variable is set however the choice is limited to the given 13 locales as of now.

e.g.
IMAGE_LINGUAS ?= "de-de fr-fr en-gb"

would work fine

Default locale can be set by exporting LANG=<locale> in /etc/profile or some such file e.g.

export LANG=de_DE.UTF-8

This will also help in ptest coverage with musl where some test packages expect locales e.g. pango to name one.

---
 meta/conf/distro/include/maintainers.inc   |  1 +
 meta/conf/distro/include/tclibc-musl.inc   |  1 +
 meta/recipes-core/musl/musl-locales_git.bb | 73 ++++++++++++++++++++++
 3 files changed, 75 insertions(+)
 create mode 100644 meta/recipes-core/musl/musl-locales_git.bb
meta/conf/distro/include/maintainers.inc +1 -0
index 8bbcf071603..8efa27324f3 100644
@@ -519,6 +519,7 @@ RECIPE_MAINTAINER:pn-mtd-utils = "Denys Dmytriyenko <[email protected]>"
 RECIPE_MAINTAINER:pn-mtdev = "Anuj Mittal <[email protected]>"
 RECIPE_MAINTAINER:pn-mtools = "Anuj Mittal <[email protected]>"
 RECIPE_MAINTAINER:pn-musl = "Khem Raj <[email protected]>"
+RECIPE_MAINTAINER:pn-musl-locales = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-musl-obstack = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-musl-utils = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-nasm = "Richard Purdie <[email protected]>"
meta/conf/distro/include/tclibc-musl.inc +1 -0
index 8badbbb40a6..9698d35a7a4 100644
@@ -10,6 +10,7 @@ PREFERRED_PROVIDER_virtual/libc ?= "musl"
 PREFERRED_PROVIDER_virtual/libiconv ?= "musl"
 PREFERRED_PROVIDER_virtual/libintl ?= "musl"
 PREFERRED_PROVIDER_virtual/crypt ?= "musl"
+PREFERRED_PROVIDER_virtual/libc-locale ?= "musl-locales"
 PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc"
 PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc"
 
meta/recipes-core/musl/musl-locales_git.bb new file +73 -0

73 lines not on this page · raw message

Signature · 1 line
2.36.0