summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-04-25 20:28:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-26 18:25:08 +0100
commitba14e497597365ea825db09303f72dcb15f63e3e (patch)
treebc33b49f8ba7a1ab1edaa168e560ec3b950226fc /meta/recipes-core
parentd7300f37a3731530e7629b09b470117aefdb66ae (diff)
downloadpoky-ba14e497597365ea825db09303f72dcb15f63e3e.tar.gz
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 (From OE-Core rev: 5643f9722db250ac9eb4f955b02500420cb29556) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/musl/musl-locales_git.bb75
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl-locales_git.bb b/meta/recipes-core/musl/musl-locales_git.bb
new file mode 100644
index 0000000000..fa814d2bd9
--- /dev/null
+++ b/meta/recipes-core/musl/musl-locales_git.bb
@@ -0,0 +1,75 @@
1# Copyright (C) 2022 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3#
4SUMMARY = "Locales support for musl"
5HOMEPAGE = "https://gitlab.com/rilian-la-te/musl-locales"
6LICENSE = "MIT & LGPL-3.0-or-later"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=cf5713fba707073020b1db2acaa73e78 \
8 file://LICENSE.MIT;md5=a4f1c6864a83ddf4b754cdab7d593523"
9
10SRC_URI = "git://gitlab.com/rilian-la-te/musl-locales;protocol=https;branch=master"
11
12PV = "1.0+git${SRCPV}"
13SRCREV = "1101fb2bcdd189cd9415b8bd1c775eb43527d25c"
14
15S = "${WORKDIR}/git"
16
17DEPENDS = "virtual/libintl"
18
19PROVIDES = "virtual/libc-locale"
20
21inherit cmake gettext
22
23EXTRA_OECMAKE = ""
24#
25# We will skip parsing for non-musl systems
26python () {
27 if d.getVar('TCLIBC') != "musl":
28 raise bb.parse.SkipRecipe("Only use it with Musl C library")
29}
30
31# only locale binaries are under GPL-3.0-or-later others are MIT
32LICENSE:${PN} = "LGPL-3.0-or-later"
33LICENSE:locale-base-ch-de = "MIT"
34LICENSE:locale-base-de-ch = "MIT"
35LICENSE:locale-base-de-de = "MIT"
36LICENSE:locale-base-en-gb = "MIT"
37LICENSE:locale-base-en-us = "MIT"
38LICENSE:locale-base-es-es = "MIT"
39LICENSE:locale-base-fr-fr = "MIT"
40LICENSE:locale-base-it-it = "MIT"
41LICENSE:locale-base-nb-no = "MIT"
42LICENSE:locale-base-nl-nl = "MIT"
43LICENSE:locale-base-pt-br = "MIT"
44LICENSE:locale-base-ru-ru = "MIT"
45LICENSE:locale-base-sv-se = "MIT"
46
47PACKAGES =+ "locale-base-ch-de \
48 locale-base-de-ch \
49 locale-base-de-de \
50 locale-base-en-gb \
51 locale-base-en-us \
52 locale-base-es-es \
53 locale-base-fr-fr \
54 locale-base-it-it \
55 locale-base-nb-no \
56 locale-base-nl-nl \
57 locale-base-pt-br \
58 locale-base-ru-ru \
59 locale-base-sv-se \
60 "
61FILES:locale-base-ch-de += "${datadir}/i18n/locales/musl/ch_DE.UTF-8"
62FILES:locale-base-de-ch += "${datadir}/i18n/locales/musl/de_CH.UTF-8"
63FILES:locale-base-de-de += "${datadir}/i18n/locales/musl/de_DE.UTF-8"
64FILES:locale-base-en-gb += "${datadir}/i18n/locales/musl/en_GB.UTF-8"
65FILES:locale-base-en-us += "${datadir}/i18n/locales/musl/en_US.UTF-8"
66FILES:locale-base-es-es += "${datadir}/i18n/locales/musl/es_ES.UTF-8"
67FILES:locale-base-fr-fr += "${datadir}/i18n/locales/musl/fr_FR.UTF-8"
68FILES:locale-base-it-it += "${datadir}/i18n/locales/musl/it_IT.UTF-8"
69FILES:locale-base-nb-no += "${datadir}/i18n/locales/musl/nb_NO.UTF-8"
70FILES:locale-base-nl-nl += "${datadir}/i18n/locales/musl/nl_NL.UTF-8"
71FILES:locale-base-pt-br += "${datadir}/i18n/locales/musl/pt_BR.UTF-8"
72FILES:locale-base-ru-ru += "${datadir}/i18n/locales/musl/ru_RU.UTF-8"
73FILES:locale-base-sv-se += "${datadir}/i18n/locales/musl/sv_SE.UTF-8"
74
75UPSTREAM_CHECK_COMMITS = "1"