summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorGuénaël Muller <guenael.muller@smile.fr>2024-12-02 12:01:28 +0100
committerSteve Sakoman <steve@sakoman.com>2024-12-16 05:58:03 -0800
commit0bee34892d744458a5ed95550febfebd34d67c50 (patch)
treee22b230a42540ddb52f27d028e3d2ea9db8244cb /documentation
parentbdd2eae1f5b153fed4ba372a608328cfb41c62ca (diff)
downloadpoky-0bee34892d744458a5ed95550febfebd34d67c50.tar.gz
ref-manual: use standardized method accross both ubuntu and debian for locale install
Modify locale installation method to be standard accross all debian-based distributions. Pre-existing method is available only on Ubuntu, locale-gen tool has no parameter in Debian. (From yocto-docs rev: 057f2fbce22fc020bef7d432275e28227895e022) Signed-off-by: Guénaël Muller <guenael.muller@smile.fr> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com> Tested-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> (cherry picked from commit 30002019198a168e48537407bb928facb26af82a) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/poky.yaml.in3
-rw-r--r--documentation/ref-manual/system-requirements.rst17
2 files changed, 18 insertions, 2 deletions
diff --git a/documentation/poky.yaml.in b/documentation/poky.yaml.in
index 16bbce5afc..d9a0cc4d61 100644
--- a/documentation/poky.yaml.in
+++ b/documentation/poky.yaml.in
@@ -13,8 +13,7 @@ YOCTO_RELEASE_DL_URL : "&YOCTO_DL_URL;/releases/yocto/yocto-&DISTRO;"
13UBUNTU_HOST_PACKAGES_ESSENTIAL : "gawk wget git diffstat unzip texinfo gcc \ 13UBUNTU_HOST_PACKAGES_ESSENTIAL : "gawk wget git diffstat unzip texinfo gcc \
14 build-essential chrpath socat cpio python3 python3-pip python3-pexpect \ 14 build-essential chrpath socat cpio python3 python3-pip python3-pexpect \
15 xz-utils debianutils iputils-ping python3-git python3-jinja2 \ 15 xz-utils debianutils iputils-ping python3-git python3-jinja2 \
16 python3-subunit zstd liblz4-tool file locales libacl1 16 python3-subunit zstd liblz4-tool file locales libacl1"
17 \n\ $ sudo locale-gen en_US.UTF-8"
18FEDORA_HOST_PACKAGES_ESSENTIAL : "gawk make wget tar bzip2 gzip python3 unzip perl patch \ 17FEDORA_HOST_PACKAGES_ESSENTIAL : "gawk make wget tar bzip2 gzip python3 unzip perl patch \
19 diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \ 18 diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
20 ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \ 19 ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \
diff --git a/documentation/ref-manual/system-requirements.rst b/documentation/ref-manual/system-requirements.rst
index b45c863005..5b0beab7c2 100644
--- a/documentation/ref-manual/system-requirements.rst
+++ b/documentation/ref-manual/system-requirements.rst
@@ -160,8 +160,25 @@ with a supported Ubuntu or Debian Linux distribution::
160 160
161 $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL; 161 $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
162 162
163You also need to ensure you have the ``en_US.UTF-8`` locale enabled::
164
165 $ locale --all-locales | grep en_US.utf8
166
167If this is not the case, you can reconfigure the ``locales`` package to add it
168(requires an interactive shell)::
169
170 $ sudo dpkg-reconfigure locales
171
163.. note:: 172.. note::
164 173
174 - If you are not in an interactive shell, ``dpkg-reconfigure`` will
175 not work as expected. To add the locale you will need to edit
176 ``/etc/locale.gen`` file to add/uncomment the ``en_US.UTF-8`` locale.
177 A naive way to do this as root is::
178
179 $ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
180 $ locale-gen
181
165 - If your build system has the ``oss4-dev`` package installed, you 182 - If your build system has the ``oss4-dev`` package installed, you
166 might experience QEMU build failures due to the package installing 183 might experience QEMU build failures due to the package installing
167 its own custom ``/usr/include/linux/soundcard.h`` on the Debian 184 its own custom ``/usr/include/linux/soundcard.h`` on the Debian