diff mbox series

[yocto-docs,5/5] poky.yaml.in: add missing locales dependency

Message ID 20241120-update-doc-deps-v1-5-50e267ae4123@bootlin.com
State Superseded
Headers show
Series Update the dependencies in poky.yaml.in | expand

Commit Message

Antonin Godard Nov. 20, 2024, 3:10 p.m. UTC
This is a requirement for building the documentation, otherwise we get
(on Ubuntu 24.04):

    File "/usr/lib/python3.12/locale.py", line 615, in setlocale
      return _setlocale(category, locale)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  locale.Error: unsupported locale setting

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/poky.yaml.in | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Quentin Schulz Nov. 25, 2024, 6:12 p.m. UTC | #1
Hi Antonin,

On 11/20/24 4:10 PM, Antonin Godard via lists.yoctoproject.org wrote:
> This is a requirement for building the documentation, otherwise we get
> (on Ubuntu 24.04):
> 
>      File "/usr/lib/python3.12/locale.py", line 615, in setlocale
>        return _setlocale(category, locale)
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    locale.Error: unsupported locale setting
> 
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
>   documentation/poky.yaml.in | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/documentation/poky.yaml.in b/documentation/poky.yaml.in
> index d95b73c74ad7979609c6e7f4e1be5343968da743..0158203da7d4db9eadf21943d10256c6bc49a290 100644
> --- a/documentation/poky.yaml.in
> +++ b/documentation/poky.yaml.in
> @@ -63,6 +63,7 @@ UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL: >-
>   UBUNTU_DEBIAN_HOST_PACKAGES_DOC: >-
>     git
>     librsvg2-bin
> +  locales
>     make
>     python3-saneyaml
>     python3-sphinx-rtd-theme
> @@ -135,6 +136,7 @@ FEDORA_HOST_PACKAGES_DOC: >-
>     python3-saneyaml
>     python3-sphinx-rtd-theme
>     git
> +  glibc-locale-source
>     make
>     python3-pip
>     which
> @@ -203,6 +205,7 @@ OPENSUSE_PIP3_HOST_PACKAGES_ESSENTIAL: GitPython
>   
>   OPENSUSE_HOST_PACKAGES_DOC: >-
>     git
> +  glibc-i18ndata
>     rsvg-convert
>     make
>     python3-pip
> @@ -286,6 +289,7 @@ ALMALINUX_HOST_PACKAGES_ESSENTIAL_CMDS: |-
>   
>   ALMALINUX_HOST_PACKAGES_DOC: >-
>     git
> +  olibc-locale-source

I believe this is a typo here and should read glibc-locale-source?

Cheers,
Quentin
Antonin Godard Nov. 29, 2024, 2:06 p.m. UTC | #2
Hi Quentin,

On Mon Nov 25, 2024 at 7:12 PM CET, Quentin Schulz wrote:
> Hi Antonin,
>
> On 11/20/24 4:10 PM, Antonin Godard via lists.yoctoproject.org wrote:
>> This is a requirement for building the documentation, otherwise we get
>> (on Ubuntu 24.04):
>> 
>>      File "/usr/lib/python3.12/locale.py", line 615, in setlocale
>>        return _setlocale(category, locale)
>>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>    locale.Error: unsupported locale setting
>> 
>> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
>> ---
>>   documentation/poky.yaml.in | 4 ++++
>>   1 file changed, 4 insertions(+)
>> 
>> diff --git a/documentation/poky.yaml.in b/documentation/poky.yaml.in
>> index d95b73c74ad7979609c6e7f4e1be5343968da743..0158203da7d4db9eadf21943d10256c6bc49a290 100644
>> --- a/documentation/poky.yaml.in
>> +++ b/documentation/poky.yaml.in
>> @@ -63,6 +63,7 @@ UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL: >-
>>   UBUNTU_DEBIAN_HOST_PACKAGES_DOC: >-
>>     git
>>     librsvg2-bin
>> +  locales
>>     make
>>     python3-saneyaml
>>     python3-sphinx-rtd-theme
>> @@ -135,6 +136,7 @@ FEDORA_HOST_PACKAGES_DOC: >-
>>     python3-saneyaml
>>     python3-sphinx-rtd-theme
>>     git
>> +  glibc-locale-source
>>     make
>>     python3-pip
>>     which
>> @@ -203,6 +205,7 @@ OPENSUSE_PIP3_HOST_PACKAGES_ESSENTIAL: GitPython
>>   
>>   OPENSUSE_HOST_PACKAGES_DOC: >-
>>     git
>> +  glibc-i18ndata
>>     rsvg-convert
>>     make
>>     python3-pip
>> @@ -286,6 +289,7 @@ ALMALINUX_HOST_PACKAGES_ESSENTIAL_CMDS: |-
>>   
>>   ALMALINUX_HOST_PACKAGES_DOC: >-
>>     git
>> +  olibc-locale-source
>
> I believe this is a typo here and should read glibc-locale-source?

Totally, thank you for noticing this.


Antonin
diff mbox series

Patch

diff --git a/documentation/poky.yaml.in b/documentation/poky.yaml.in
index d95b73c74ad7979609c6e7f4e1be5343968da743..0158203da7d4db9eadf21943d10256c6bc49a290 100644
--- a/documentation/poky.yaml.in
+++ b/documentation/poky.yaml.in
@@ -63,6 +63,7 @@  UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL: >-
 UBUNTU_DEBIAN_HOST_PACKAGES_DOC: >-
   git
   librsvg2-bin
+  locales
   make
   python3-saneyaml
   python3-sphinx-rtd-theme
@@ -135,6 +136,7 @@  FEDORA_HOST_PACKAGES_DOC: >-
   python3-saneyaml
   python3-sphinx-rtd-theme
   git
+  glibc-locale-source
   make
   python3-pip
   which
@@ -203,6 +205,7 @@  OPENSUSE_PIP3_HOST_PACKAGES_ESSENTIAL: GitPython
 
 OPENSUSE_HOST_PACKAGES_DOC: >-
   git
+  glibc-i18ndata
   rsvg-convert
   make
   python3-pip
@@ -286,6 +289,7 @@  ALMALINUX_HOST_PACKAGES_ESSENTIAL_CMDS: |-
 
 ALMALINUX_HOST_PACKAGES_DOC: >-
   git
+  olibc-locale-source
   librsvg2-tools
   make
   python3-pip