Skip to contentSkip to conversation

Update the dependencies in poky.yaml.in

PATCH New Antonin Godard 1 participant 7 messages Dec 10, 2024

lore
Share & tools
lore
#0 lore raw

v3 cover Update the dependencies in poky.yaml.in

This patch series aims at gathering the dependencies required to build (both the image and the documentation) in poky.yaml.in, and updating them with regards to recent changes (PDF, Epub addition / switch to rsvg-convert).

Having all the dependencies listed in poky.yaml.in makes it easier to track and compare them across the different distros. Also, these can be reused by scripts (note: I am working on a patch that uses these variables to build a container image ready for building the doc).

Also, add the dependencies required to build PDFs/Epub files. These were initially listed for an Ubuntu 22.04 docker image I was working with, and "translated" for other distros using https://pkgs.org.

---
Changes in v3:
- Comments from Quentin (thanks!):
- Re-order commits for easier backporting.
- Enquote texlive-collection-* to avoid shell errors.
- Remove extra doc deps on Fedora that weren't there previously.
- Move the texlive-fncychap dependency to the PDF specific dependencies.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Fix sorting of the yaml lists.
- Split commit for Fedora 39 addition, to backport on scarthgap.
- Use texlive-collection-lang* to match all language texlive packages in
fedora and opensuse.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Antonin Godard (6):
Gather dependencies in poky.yaml.in poky.yaml.in: add missing locales dependency poky.yaml.in: replace inkscape dependency by librsvg2-bin
system-requirements: add fedora 39 to supported distros
system-requirements: update list of supported distros system-requirements.rst: add dependencies for pdf builds

 documentation/brief-yoctoprojectqs/index.rst     |   2 +-
 documentation/poky.yaml.in                       | 263 ++++++++++++++++++++---
 documentation/ref-manual/system-requirements.rst |  59 ++++-
 3 files changed, 289 insertions(+), 35 deletions(-)

---
base-commit: 30002019198a168e48537407bb928facb26af82a
change-id: 20241120-update-doc-deps-1d59abdb2119

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>
#1 lore raw

PATCH v3 1/6 Gather dependencies in poky.yaml.in

We used to have packages here and there in system-requirements.rst for each distro. Instead, gather all the dependencies in poky.yaml.in so we have an overview of what we provide for each distro.

Use yaml ">" to list the dependencies in alphabetical order, one entry per line, which makes them easier to read and compare among distros.

Rename UBUNTU_… variables to UBUNTU_DEBIAN_…, since these are used for both distros.

---
 documentation/brief-yoctoprojectqs/index.rst     |   2 +-
 documentation/poky.yaml.in                       | 213 ++++++++++++++++++++---
 documentation/ref-manual/system-requirements.rst |  22 ++-
 3 files changed, 202 insertions(+), 35 deletions(-)
documentation/brief-yoctoprojectqs/index.rst +1 -1
index c5400e4ac8dafb9e3d1e4c14a065d02ac3e2f7a7..3d249eefaae35239b92c8a2f8dedf27ec2dbdca0 100644
@@ -78,7 +78,7 @@ You must install essential host packages on your build host. The
 following command installs the host packages based on an Ubuntu
 distribution::
 
-   $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
+   $ sudo apt install &UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL;
 
 .. note::
 
documentation/poky.yaml.in +188 -25

225 lines not on this page · raw message

documentation/ref-manual/system-requirements.rst +13 -9
index 43c3c5834b1a3c7d164512a9b42b68e06eacaafa..0b40c3f5e5ae87d703d9a2d338de084ca9f93b2b 100644
@@ -150,7 +150,7 @@ Ubuntu and Debian
 Here are the packages needed to build an image on a headless system
 with a supported Ubuntu or Debian Linux distribution::
 
-   $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
+   $ sudo apt install &UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL;
 
 You also need to ensure you have the ``en_US.UTF-8`` locale enabled::
 
@@ -181,8 +181,7 @@ If this is not the case, you can reconfigure the ``locales`` package to add it
 
 Here are the packages needed to build Project documentation manuals::
 
-   $ sudo apt install git make inkscape texlive-latex-extra
-   $ sudo apt install sphinx python3-saneyaml python3-sphinx-rtd-theme
+   $ sudo apt install &UBUNTU_DEBIAN_HOST_PACKAGES_DOC;
 
 Fedora Packages
 ---------------
@@ -194,8 +193,8 @@ with a supported Fedora Linux distribution::
 
 Here are the packages needed to build Project documentation manuals::
 
-   $ sudo dnf install git make python3-pip which inkscape texlive-fncychap
-   &PIP3_HOST_PACKAGES_DOC;
+   $ sudo dnf install &FEDORA_HOST_PACKAGES_DOC;
+   $ sudo pip3 install &PIP3_HOST_PACKAGES_DOC;
 
 openSUSE Packages
 -----------------
@@ -204,11 +203,12 @@ Here are the packages needed to build an image on a headless system
 with a supported openSUSE distribution::
 
    $ sudo zypper install &OPENSUSE_HOST_PACKAGES_ESSENTIAL;
+   $ sudo pip3 install &OPENSUSE_PIP3_HOST_PACKAGES_ESSENTIAL;
 
 Here are the packages needed to build Project documentation manuals::
 
-   $ sudo zypper install git make python3-pip which inkscape texlive-fncychap
-   &PIP3_HOST_PACKAGES_DOC;
+   $ sudo zypper install &OPENSUSE_HOST_PACKAGES_DOC;
+   $ sudo pip3 install &PIP3_HOST_PACKAGES_DOC;
 
 
 AlmaLinux Packages
@@ -217,6 +217,10 @@ AlmaLinux Packages
 Here are the packages needed to build an image on a headless system
 with a supported AlmaLinux distribution::
 
+   $ sudo dnf install -y epel-release
+   $ sudo yum install dnf-plugins-core
+   $ sudo dnf config-manager --set-enabled crb
+   $ sudo dnf makecache
    $ sudo dnf install &ALMALINUX_HOST_PACKAGES_ESSENTIAL;
 
 .. note::
@@ -234,8 +238,8 @@ with a supported AlmaLinux distribution::
 
 Here are the packages needed to build Project documentation manuals::
 
-   $ sudo dnf install git make python3-pip which inkscape texlive-fncychap
-   &PIP3_HOST_PACKAGES_DOC;
+   $ sudo dnf install &ALMALINUX_HOST_PACKAGES_DOC;
+   $ sudo pip3 install &PIP3_HOST_PACKAGES_DOC;
 
 .. _system-requirements-buildtools:
 
Signature · 1 line
2.47.1
#2 lore raw

PATCH v3 2/6 poky.yaml.in: add missing locales dependency

In reply to Antonin Godard

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

---
 documentation/poky.yaml.in | 4 ++++
 1 file changed, 4 insertions(+)
documentation/poky.yaml.in +4 -0
index 117307effb99bc9a0f7203e3f786cfca6512791b..a81610756575a47c55d1e0cc7799e7920657adee 100644
@@ -63,6 +63,7 @@ UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL: >-
 UBUNTU_DEBIAN_HOST_PACKAGES_DOC: >-
   git
   inkscape
+  locales
   make
   python3-saneyaml
   python3-sphinx-rtd-theme
@@ -118,6 +119,7 @@ FEDORA_HOST_PACKAGES_ESSENTIAL: >-
 
 FEDORA_HOST_PACKAGES_DOC: >-
   git
+  glibc-locale-source
   inkscape
   make
   python3-pip
@@ -158,6 +160,7 @@ OPENSUSE_PIP3_HOST_PACKAGES_ESSENTIAL: GitPython
 
 OPENSUSE_HOST_PACKAGES_DOC: >-
   git
+  glibc-i18ndata
   inkscape
   make
   python3-pip
@@ -204,6 +207,7 @@ ALMALINUX_HOST_PACKAGES_ESSENTIAL: >-
 
 ALMALINUX_HOST_PACKAGES_DOC: >-
   git
+  glibc-locale-source
   inkscape
   make
   python3-pip
Signature · 1 line
2.47.1
#3 lore raw

PATCH v3 3/6 poky.yaml.in: replace inkscape dependency by librsvg2-bin

In reply to Antonin Godard

inkscape used to be a requirement to convert SVG images to PNGs/PDFs, but we replaced it recently by rsvg-convert.

---
 documentation/poky.yaml.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
documentation/poky.yaml.in +4 -4
index a81610756575a47c55d1e0cc7799e7920657adee..eedefcdea88694061fa2a3536bc86f78ed4a28d0 100644
@@ -62,7 +62,7 @@ UBUNTU_DEBIAN_HOST_PACKAGES_ESSENTIAL: >-
 
 UBUNTU_DEBIAN_HOST_PACKAGES_DOC: >-
   git
-  inkscape
+  librsvg2-bin
   locales
   make
   python3-saneyaml
@@ -120,7 +120,7 @@ FEDORA_HOST_PACKAGES_ESSENTIAL: >-
 FEDORA_HOST_PACKAGES_DOC: >-
   git
   glibc-locale-source
-  inkscape
+  librsvg2-tools
   make
   python3-pip
   texlive-fncychap
@@ -161,9 +161,9 @@ OPENSUSE_PIP3_HOST_PACKAGES_ESSENTIAL: GitPython
 OPENSUSE_HOST_PACKAGES_DOC: >-
   git
   glibc-i18ndata
-  inkscape
   make
   python3-pip
+  rsvg-convert
   texlive-fncychap
   which
 
@@ -208,7 +208,7 @@ ALMALINUX_HOST_PACKAGES_ESSENTIAL: >-
 ALMALINUX_HOST_PACKAGES_DOC: >-
   git
   glibc-locale-source
-  inkscape
+  librsvg2-tools
   make
   python3-pip
   texlive-fncychap
Signature · 1 line
2.47.1
#4 lore raw

PATCH v3 4/6 system-requirements: add fedora 39 to supported distros

In reply to Antonin Godard
---
 documentation/ref-manual/system-requirements.rst | 2 ++
 1 file changed, 2 insertions(+)
documentation/ref-manual/system-requirements.rst +2 -0
index 0b40c3f5e5ae87d703d9a2d338de084ca9f93b2b..17ad1b741a0b92f218860d22bbc4b0927b73b865 100644
@@ -64,6 +64,8 @@ supported on the following distributions:
 
 -  Fedora 38
 
+-  Fedora 39
+
 -  CentOS Stream 8
 
 -  Debian GNU/Linux 11 (Bullseye)
Signature · 1 line
2.47.1
#5 lore raw

PATCH v3 5/6 system-requirements: update list of supported distros

In reply to Antonin Godard

To match the list in meta-poky/conf/distro/poky.conf.

---
 documentation/ref-manual/system-requirements.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
documentation/ref-manual/system-requirements.rst +8 -0
index 17ad1b741a0b92f218860d22bbc4b0927b73b865..7c7f518d9fe1f68e5b014cf31e59dc9bbe322e4c 100644
@@ -62,10 +62,14 @@ supported on the following distributions:
 
 -  Ubuntu 22.04 (LTS)
 
+-  Ubuntu 24.04 (LTS)
+
 -  Fedora 38
 
 -  Fedora 39
 
+-  Fedora 40
+
 -  CentOS Stream 8
 
 -  Debian GNU/Linux 11 (Bullseye)
@@ -74,6 +78,10 @@ supported on the following distributions:
 
 -  OpenSUSE Leap 15.4
 
+-  OpenSUSE Leap 15.5
+
+-  OpenSUSE Leap 15.6
+
 -  AlmaLinux 8
 
 -  AlmaLinux 9
Signature · 1 line
2.47.1
#6 lore raw

PATCH v3 6/6 system-requirements.rst: add dependencies for pdf builds

In reply to Antonin Godard

With the recent changes from commit bd6265ca323fac547a197bb516dc4a9ef3897508 ("doc: Makefile: add support for xelatex"), the list of dependencies needs to be updated.

The initial list of dependencies was made for Ubuntu/Debian, and the packages were translated for the other distros using pkgs.org.

Add them separately from the rest of the dependencies as they pull a _lot_ of additional dependencies (for LaTeX).

Move the texlive-fncychap documentation dependency to the PDF specific dependency.

Notes:
- Fedora/OpenSUSE do not have the "lang-all" texlive collection, so install all available languages.
- AlmaLinux does not seem to provide texlive-collection-fontsextra, texlive-collection-lang*, and texlive-collection-latexextra, so add a warning about that.

---
 documentation/poky.yaml.in                       | 52 ++++++++++++++++++++++--
 documentation/ref-manual/system-requirements.rst | 27 ++++++++++++
 2 files changed, 76 insertions(+), 3 deletions(-)
documentation/poky.yaml.in +49 -3
index eedefcdea88694061fa2a3536bc86f78ed4a28d0..0933cbbd351985899ecaea94ae42748bd7ba1753 100644
@@ -68,7 +68,17 @@ UBUNTU_DEBIAN_HOST_PACKAGES_DOC: >-
   python3-saneyaml
   python3-sphinx-rtd-theme
   sphinx
+
+UBUNTU_DEBIAN_HOST_PACKAGES_DOC_PDF: >-
+  fonts-freefont-otf
+  latexmk
+  tex-gyre
+  texlive-fonts-extra
+  texlive-fonts-recommended
+  texlive-lang-all
   texlive-latex-extra
+  texlive-latex-recommended
+  texlive-xetex
 
 FEDORA_HOST_PACKAGES_ESSENTIAL: >-
   bzip2
@@ -123,9 +133,22 @@ FEDORA_HOST_PACKAGES_DOC: >-
   librsvg2-tools
   make
   python3-pip
-  texlive-fncychap
   which
 
+FEDORA_HOST_PACKAGES_DOC_PDF: >-
+  'texlive-collection-lang*'
+  latexmk
+  texlive-collection-fontsextra
+  texlive-collection-fontsrecommended
+  texlive-collection-latex
+  texlive-collection-latexextra
+  texlive-collection-latexrecommended
+  texlive-collection-xetex
+  texlive-fncychap
+  texlive-gnu-freefont
+  texlive-tex-gyre
+  texlive-xetex
+
 OPENSUSE_HOST_PACKAGES_ESSENTIAL: >-
   bzip2
   chrpath
@@ -164,9 +187,22 @@ OPENSUSE_HOST_PACKAGES_DOC: >-
   make
   python3-pip
   rsvg-convert
-  texlive-fncychap
   which
 
+OPENSUSE_HOST_PACKAGES_DOC_PDF: >-
+  'texlive-collection-lang*'
+  texlive-collection-fontsextra
+  texlive-collection-fontsrecommended
+  texlive-collection-latex
+  texlive-collection-latexextra
+  texlive-collection-latexrecommended
+  texlive-collection-xetex
+  texlive-fncychap
+  texlive-gnu-freefont
+  texlive-latexmk
+  texlive-tex-gyre
+  texlive-xetex
+
 ALMALINUX_HOST_PACKAGES_ESSENTIAL: >-
   bzip2
   ccache
@@ -211,5 +247,15 @@ ALMALINUX_HOST_PACKAGES_DOC: >-
   librsvg2-tools
   make
   python3-pip
-  texlive-fncychap
   which
+
+ALMALINUX_HOST_PACKAGES_DOC_PDF: >-
+  latexmk
+  texlive-collection-fontsrecommended
+  texlive-collection-latex
+  texlive-collection-latexrecommended
+  texlive-collection-xetex
+  texlive-fncychap
+  texlive-gnu-freefont
+  texlive-tex-gyre
+  texlive-xetex
documentation/ref-manual/system-requirements.rst +27 -0
index 7c7f518d9fe1f68e5b014cf31e59dc9bbe322e4c..b087d374d23a71104dc9c050e96e4a2c20f5abb0 100644
@@ -193,6 +193,11 @@ Here are the packages needed to build Project documentation manuals::
 
    $ sudo apt install &UBUNTU_DEBIAN_HOST_PACKAGES_DOC;
 
+In addition to the previous packages, here are the packages needed to build the
+documentation in PDF format::
+
+   $ sudo apt install &UBUNTU_DEBIAN_HOST_PACKAGES_DOC_PDF;
+
 Fedora Packages
 ---------------
 
@@ -206,6 +211,11 @@ Here are the packages needed to build Project documentation manuals::
    $ sudo dnf install &FEDORA_HOST_PACKAGES_DOC;
    $ sudo pip3 install &PIP3_HOST_PACKAGES_DOC;
 
+In addition to the previous packages, here are the packages needed to build the
+documentation in PDF format::
+
+   $ sudo dnf install &FEDORA_HOST_PACKAGES_DOC_PDF;
+
 openSUSE Packages
 -----------------
 
@@ -220,6 +230,11 @@ Here are the packages needed to build Project documentation manuals::
    $ sudo zypper install &OPENSUSE_HOST_PACKAGES_DOC;
    $ sudo pip3 install &PIP3_HOST_PACKAGES_DOC;
 
+In addition to the previous packages, here are the packages needed to build the
+documentation in PDF format::
+
+   $ sudo zypper install &OPENSUSE_HOST_PACKAGES_DOC_PDF;
+
 
 AlmaLinux Packages
 ------------------
@@ -251,6 +266,18 @@ Here are the packages needed to build Project documentation manuals::
    $ sudo dnf install &ALMALINUX_HOST_PACKAGES_DOC;
    $ sudo pip3 install &PIP3_HOST_PACKAGES_DOC;
 
+In addition to the previous packages, here are the packages needed to build the
+documentation in PDF format::
+
+   $ sudo dnf install &ALMALINUX_HOST_PACKAGES_DOC_PDF;
+
+.. warning::
+
+   Unlike Fedora or OpenSUSE, AlmaLinux does not provide the packages
+   ``texlive-collection-fontsextra``, ``texlive-collection-lang*`` and
+   ``texlive-collection-latexextra``, so you may run into issues. These may be
+   installed using `tlmgr <https://tug.org/texlive/tlmgr.html>`_.
+
 .. _system-requirements-buildtools:
 
 Required Git, tar, Python, make and gcc Versions
Signature · 1 line
2.47.1