diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-04-25 20:28:54 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-26 18:25:08 +0100 |
| commit | ba14e497597365ea825db09303f72dcb15f63e3e (patch) | |
| tree | bc33b49f8ba7a1ab1edaa168e560ec3b950226fc /meta/recipes-core/musl | |
| parent | d7300f37a3731530e7629b09b470117aefdb66ae (diff) | |
| download | poky-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/musl')
| -rw-r--r-- | meta/recipes-core/musl/musl-locales_git.bb | 75 |
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 | # | ||
| 4 | SUMMARY = "Locales support for musl" | ||
| 5 | HOMEPAGE = "https://gitlab.com/rilian-la-te/musl-locales" | ||
| 6 | LICENSE = "MIT & LGPL-3.0-or-later" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=cf5713fba707073020b1db2acaa73e78 \ | ||
| 8 | file://LICENSE.MIT;md5=a4f1c6864a83ddf4b754cdab7d593523" | ||
| 9 | |||
| 10 | SRC_URI = "git://gitlab.com/rilian-la-te/musl-locales;protocol=https;branch=master" | ||
| 11 | |||
| 12 | PV = "1.0+git${SRCPV}" | ||
| 13 | SRCREV = "1101fb2bcdd189cd9415b8bd1c775eb43527d25c" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | |||
| 17 | DEPENDS = "virtual/libintl" | ||
| 18 | |||
| 19 | PROVIDES = "virtual/libc-locale" | ||
| 20 | |||
| 21 | inherit cmake gettext | ||
| 22 | |||
| 23 | EXTRA_OECMAKE = "" | ||
| 24 | # | ||
| 25 | # We will skip parsing for non-musl systems | ||
| 26 | python () { | ||
| 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 | ||
| 32 | LICENSE:${PN} = "LGPL-3.0-or-later" | ||
| 33 | LICENSE:locale-base-ch-de = "MIT" | ||
| 34 | LICENSE:locale-base-de-ch = "MIT" | ||
| 35 | LICENSE:locale-base-de-de = "MIT" | ||
| 36 | LICENSE:locale-base-en-gb = "MIT" | ||
| 37 | LICENSE:locale-base-en-us = "MIT" | ||
| 38 | LICENSE:locale-base-es-es = "MIT" | ||
| 39 | LICENSE:locale-base-fr-fr = "MIT" | ||
| 40 | LICENSE:locale-base-it-it = "MIT" | ||
| 41 | LICENSE:locale-base-nb-no = "MIT" | ||
| 42 | LICENSE:locale-base-nl-nl = "MIT" | ||
| 43 | LICENSE:locale-base-pt-br = "MIT" | ||
| 44 | LICENSE:locale-base-ru-ru = "MIT" | ||
| 45 | LICENSE:locale-base-sv-se = "MIT" | ||
| 46 | |||
| 47 | PACKAGES =+ "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 | " | ||
| 61 | FILES:locale-base-ch-de += "${datadir}/i18n/locales/musl/ch_DE.UTF-8" | ||
| 62 | FILES:locale-base-de-ch += "${datadir}/i18n/locales/musl/de_CH.UTF-8" | ||
| 63 | FILES:locale-base-de-de += "${datadir}/i18n/locales/musl/de_DE.UTF-8" | ||
| 64 | FILES:locale-base-en-gb += "${datadir}/i18n/locales/musl/en_GB.UTF-8" | ||
| 65 | FILES:locale-base-en-us += "${datadir}/i18n/locales/musl/en_US.UTF-8" | ||
| 66 | FILES:locale-base-es-es += "${datadir}/i18n/locales/musl/es_ES.UTF-8" | ||
| 67 | FILES:locale-base-fr-fr += "${datadir}/i18n/locales/musl/fr_FR.UTF-8" | ||
| 68 | FILES:locale-base-it-it += "${datadir}/i18n/locales/musl/it_IT.UTF-8" | ||
| 69 | FILES:locale-base-nb-no += "${datadir}/i18n/locales/musl/nb_NO.UTF-8" | ||
| 70 | FILES:locale-base-nl-nl += "${datadir}/i18n/locales/musl/nl_NL.UTF-8" | ||
| 71 | FILES:locale-base-pt-br += "${datadir}/i18n/locales/musl/pt_BR.UTF-8" | ||
| 72 | FILES:locale-base-ru-ru += "${datadir}/i18n/locales/musl/ru_RU.UTF-8" | ||
| 73 | FILES:locale-base-sv-se += "${datadir}/i18n/locales/musl/sv_SE.UTF-8" | ||
| 74 | |||
| 75 | UPSTREAM_CHECK_COMMITS = "1" | ||
