Skip to contentSkip to conversation

musl-locales: Add package

PATCH New Khem Raj 1 participant 1 message Apr 26, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v4 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.

Do not empty out IMAGE_LINGUAS forcibly for musl anymore

---
v2:
- Fix typo in LICENSE for musl-locales output package
- Do not reset IMAGE_LINGUAS for musl
v3:
- Skip parsing recipe when TCLIBC != musl
v4:
- Fix the tclibc check to include recipe only on musl

 meta/conf/distro/include/maintainers.inc   |  1 +
 meta/conf/distro/include/tclibc-musl.inc   |  3 +-
 meta/recipes-core/musl/musl-locales_git.bb | 75 ++++++++++++++++++++++
 3 files changed, 77 insertions(+), 2 deletions(-)
 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 -2
index 8badbbb40a6..98d7a801ac8 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"
 
@@ -19,8 +20,6 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
 
 CXXFLAGS += "-fvisibility-inlines-hidden"
 
-IMAGE_LINGUAS = ""
-
 LIBC_DEPENDENCIES = "\
     musl \
     musl-dbg \
meta/recipes-core/musl/musl-locales_git.bb new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
2.36.0