Skip to contentSkip to conversation

musl-locale: Recommend musl-locale in every locale-base package

PATCH In review Khem Raj 2 participants 3 messages Jun 4, 2025 – Jun 5, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 musl-locale: Recommend musl-locale in every locale-base package

musl-locale installs a profile fragment in /etc/profile.d/ which sets MUSL_LOCPATH in environment. This is required for locale to work correctly. e.g.

root@qemux86-64:~# date
Wed Jun  4 03:06:25 UTC 2025
root@qemux86-64:~# LC_ALL=fr_FR.UTF-8 date
Mer Jun  4 03:06:29 UTC 2025

Works out of box now.

---
 meta/recipes-core/musl/musl-locales_git.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
meta/recipes-core/musl/musl-locales_git.bb +17 -0
index 1373c60daf4..2815e2ddf08 100644
@@ -82,4 +82,21 @@ FILES:locale-base-ru-ru += "${datadir}/i18n/locales/musl/ru_RU.UTF-8"
 FILES:locale-base-sr-rs += "${datadir}/i18n/locales/musl/sr_RS.UTF-8"
 FILES:locale-base-sv-se += "${datadir}/i18n/locales/musl/sv_SE.UTF-8"
 
+RRECOMMENDS:locale-base-cs-cz += "${PN}"
+RRECOMMENDS:locale-base-de-ch += "${PN}"
+RRECOMMENDS:locale-base-de-de += "${PN}"
+RRECOMMENDS:locale-base-en-gb += "${PN}"
+RRECOMMENDS:locale-base-en-us += "${PN}"
+RRECOMMENDS:locale-base-es-es += "${PN}"
+RRECOMMENDS:locale-base-fi-fi += "${PN}"
+RRECOMMENDS:locale-base-fr-ca += "${PN}"
+RRECOMMENDS:locale-base-fr-fr += "${PN}"
+RRECOMMENDS:locale-base-it-it += "${PN}"
+RRECOMMENDS:locale-base-nb-no += "${PN}"
+RRECOMMENDS:locale-base-nl-nl += "${PN}"
+RRECOMMENDS:locale-base-pt-br += "${PN}"
+RRECOMMENDS:locale-base-ru-ru += "${PN}"
+RRECOMMENDS:locale-base-sr-sr += "${PN}"
+RRECOMMENDS:locale-base-sv-se += "${PN}"
+
 UPSTREAM_CHECK_COMMITS = "1"
#1 lore raw
Quoted 3 lines · Khem Raj via lists.openembedded.org

musl-locale installs a profile fragment in /etc/profile.d/ which sets MUSL_LOCPATH in environment. This is required for locale to work correctly. e.g.

Is there a good reason why musl can’t be told at build time what the locale path is?

Ross

author
#2 lore raw
Quoted 8 lines · Ross Burton
Quoted 3 lines · Khem Raj via lists.openembedded.org

musl-locale installs a profile fragment in /etc/profile.d/ which sets MUSL_LOCPATH in environment. This is required for locale to work correctly. e.g.

Is there a good reason why musl can’t be told at build time what the locale path is?

It needs to live along with glibc systems is my estimate.

Quoted 1 line

Ross