diff options
author | Guénaël Muller <guenael.muller@smile.fr> | 2024-12-02 12:01:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-16 11:04:53 +0000 |
commit | 1c9140b0d4d995d274034130a937339828766c2f (patch) | |
tree | 6d05e13348fbdb64370930bfa823382e08c590cd /documentation/ref-manual/system-requirements.rst | |
parent | fafd1db382cc24c53c17170df82780f9d593ca1f (diff) | |
download | poky-1c9140b0d4d995d274034130a937339828766c2f.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: 30002019198a168e48537407bb928facb26af82a)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/system-requirements.rst')
-rw-r--r-- | documentation/ref-manual/system-requirements.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/system-requirements.rst b/documentation/ref-manual/system-requirements.rst index 0fc92550a5..43c3c5834b 100644 --- a/documentation/ref-manual/system-requirements.rst +++ b/documentation/ref-manual/system-requirements.rst | |||
@@ -152,8 +152,25 @@ with a supported Ubuntu or Debian Linux distribution:: | |||
152 | 152 | ||
153 | $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL; | 153 | $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL; |
154 | 154 | ||
155 | You also need to ensure you have the ``en_US.UTF-8`` locale enabled:: | ||
156 | |||
157 | $ locale --all-locales | grep en_US.utf8 | ||
158 | |||
159 | If this is not the case, you can reconfigure the ``locales`` package to add it | ||
160 | (requires an interactive shell):: | ||
161 | |||
162 | $ sudo dpkg-reconfigure locales | ||
163 | |||
155 | .. note:: | 164 | .. note:: |
156 | 165 | ||
166 | - If you are not in an interactive shell, ``dpkg-reconfigure`` will | ||
167 | not work as expected. To add the locale you will need to edit | ||
168 | ``/etc/locale.gen`` file to add/uncomment the ``en_US.UTF-8`` locale. | ||
169 | A naive way to do this as root is:: | ||
170 | |||
171 | $ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | ||
172 | $ locale-gen | ||
173 | |||
157 | - If your build system has the ``oss4-dev`` package installed, you | 174 | - If your build system has the ``oss4-dev`` package installed, you |
158 | might experience QEMU build failures due to the package installing | 175 | might experience QEMU build failures due to the package installing |
159 | its own custom ``/usr/include/linux/soundcard.h`` on the Debian | 176 | its own custom ``/usr/include/linux/soundcard.h`` on the Debian |