make sure Quick Build section and System Requirements are in sync -- cover
cover make sure Quick Build section and System Requirements are in sync -- cover
The instructions in the Quick Build section are targeting Ubuntu users and must be straightforward to follow, without having to follow a series of link. There is some requirement (specifically locales) that didn't make it to the Quick Build section, so let's make sure it is in sync with the section in System Requirements by simply moving the whole rST content to an include file instead of just the apt instructions.
---
Quentin Schulz (2):
tools: ubuntu_docs: remove duplicate python3-saneyaml make sure Quick Build section and System Requirements are in sync
documentation/brief-yoctoprojectqs/index.rst | 7 +---- documentation/ref-manual/system-requirements.rst | 33 +--------------------- .../ubuntu-debian-host-packages-nodocs.rst | 33 ++++++++++++++++++++++ .../tools/host_packages_scripts/ubuntu_docs.sh | 2 +- 4 files changed, 36 insertions(+), 39 deletions(-)
---
base-commit: bcb6a7c8a401ceadf69a4c0c14dbc89f85ffdebe
change-id: 20251125-quick-start-requirements-common-6490e56046c7
Best regards,
Signature · 1 line
Quentin Schulz <[email protected]>
PATCH 1/2 tools: ubuntu_docs: remove duplicate python3-saneyaml
From: Quentin Schulz <[email protected]>
The same package is listed twice, let's fix this oversight.
--- documentation/tools/host_packages_scripts/ubuntu_docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/tools/host_packages_scripts/ubuntu_docs.sh +1 -1
@@ -1 +1 @@ -sudo apt install git librsvg2-bin locales make python3-saneyaml python3-saneyaml python3-sphinx-rtd-theme sphinx +sudo apt install git librsvg2-bin locales make python3-saneyaml python3-sphinx-rtd-theme sphinx
Signature · 1 line
2.52.0
PATCH 2/2 make sure Quick Build section and System Requirements are in sync
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
Right now, there are additional instructions that are missing in the Quick Build section compared to the ones in System Requirements.
By including the exact same rST file for Ubuntu/Debian in both sections, we can make sure both are kept in sync while still providing only instructions for Ubuntu and not requiring the user to visit another page.
--- documentation/brief-yoctoprojectqs/index.rst | 7 +---- documentation/ref-manual/system-requirements.rst | 33 +--------------------- .../ubuntu-debian-host-packages-nodocs.rst | 33 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 38 deletions(-)
documentation/brief-yoctoprojectqs/index.rst +1 -6
@@ -74,12 +74,7 @@ section in the Yocto Project Reference Manual for information. Build Host Packages =================== -You must install essential host packages on your build host. The -following command installs the host packages based on an Ubuntu -distribution: - -.. literalinclude:: ../tools/host_packages_scripts/ubuntu_essential.sh - :language: shell +.. include:: ../ref-manual/ubuntu-debian-host-packages-nodocs.rst .. note::
documentation/ref-manual/system-requirements.rst +1 -32
@@ -164,38 +164,7 @@ function. Ubuntu and Debian ----------------- -Here are the packages needed to build an image on a headless system -with a supported Ubuntu or Debian Linux distribution: - -.. literalinclude:: ../tools/host_packages_scripts/ubuntu_essential.sh - :language: shell - -You also need to ensure you have the ``en_US.UTF-8`` locale enabled:: - - $ locale --all-locales | grep en_US.utf8 - -If this is not the case, you can reconfigure the ``locales`` package to add it -(requires an interactive shell):: - - $ sudo dpkg-reconfigure locales - -.. note:: - - - If you are not in an interactive shell, ``dpkg-reconfigure`` will - not work as expected. To add the locale you will need to edit - ``/etc/locale.gen`` file to add/uncomment the ``en_US.UTF-8`` locale. - A naive way to do this as root is:: - - $ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen - $ locale-gen - - - If your build system has the ``oss4-dev`` package installed, you - might experience QEMU build failures due to the package installing - its own custom ``/usr/include/linux/soundcard.h`` on the Debian - system. If you run into this situation, try either of these solutions:: - - $ sudo apt build-dep qemu - $ sudo apt remove oss4-dev +.. include:: ubuntu-debian-host-packages-nodocs.rst Here are the packages needed to build Project documentation manuals:
documentation/ref-manual/ubuntu-debian-host-packages-nodocs.rst new file +33 -0
@@ -0,0 +1,33 @@ +Here are the packages needed to build an image on a headless system +with a supported Ubuntu or Debian Linux distribution: + +.. literalinclude:: ../tools/host_packages_scripts/ubuntu_essential.sh + :language: shell + +You also need to ensure you have the ``en_US.UTF-8`` locale enabled:: + + $ locale --all-locales | grep en_US.utf8 + +If this is not the case, you can reconfigure the ``locales`` package to add it +(requires an interactive shell):: + + $ sudo dpkg-reconfigure locales + +.. note:: + + - If you are not in an interactive shell, ``dpkg-reconfigure`` will + not work as expected. To add the locale you will need to edit + ``/etc/locale.gen`` file to add/uncomment the ``en_US.UTF-8`` locale. + A naive way to do this as root is:: + + $ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen + $ locale-gen + + - If your build system has the ``oss4-dev`` package installed, you + might experience QEMU build failures due to the package installing + its own custom ``/usr/include/linux/soundcard.h`` on the Debian + system. If you run into this situation, try either of these solutions:: + + $ sudo apt build-dep qemu + $ sudo apt remove oss4-dev +
Signature · 1 line
2.52.0
Antonin Godard
AppliedQuoted 8 lines · Quentin Schulz
The instructions in the Quick Build section are targeting Ubuntu users and must be straightforward to follow, without having to follow a series of link. There is some requirement (specifically locales) that didn't make it to the Quick Build section, so let's make sure it is in sync with the section in System Requirements by simply moving the whole rST content to an include file instead of just the apt instructions.
[...]
Applied, thanks!
[1/2] tools: ubuntu_docs: remove duplicate python3-saneyaml
commit: 3a06fe794fbca96baa470387d82cb7fd6b1af95f
[2/2] make sure Quick Build section and System Requirements are in sync
commit: 411e8ebcf79d390b557aca3ea39d610cfbd06fc5Best regards,
Signature · 1 line
Antonin Godard