[libcxx-commits] [libcxx] da59376 - [libcxx][CI] Install all locales used by the test suite
David Spickett via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 7 01:24:23 PDT 2021
Author: David Spickett
Date: 2021-10-07T09:24:17+01:00
New Revision: da5937654691d3287c36b00641867a427b3adfb1
URL: https://github.com/llvm/llvm-project/commit/da5937654691d3287c36b00641867a427b3adfb1
DIFF: https://github.com/llvm/llvm-project/commit/da5937654691d3287c36b00641867a427b3adfb1.diff
LOG: [libcxx][CI] Install all locales used by the test suite
Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D111235
Added:
Modified:
libcxx/utils/ci/Dockerfile
Removed:
################################################################################
diff --git a/libcxx/utils/ci/Dockerfile b/libcxx/utils/ci/Dockerfile
index 6aebebf05a70b..6152b05935934 100644
--- a/libcxx/utils/ci/Dockerfile
+++ b/libcxx/utils/ci/Dockerfile
@@ -45,6 +45,15 @@ RUN apt-get update && apt-get install -y bash curl
RUN apt-get update && apt-get install -y ninja-build python3 python3-sphinx python3-distutils git gdb
RUN apt-get update && apt-get install -y libc6-dev-i386 # Required to cross-compile to 32 bits
+# Locales for gdb and localization tests
+RUN apt-get update && apt-get install -y language-pack-en language-pack-fr \
+ language-pack-ru language-pack-zh-hans
+# These two are not enabled by default so generate them
+RUN printf "fr_CA ISO-8859-1\ncs_CZ ISO-8859-2" >> /etc/locale.gen
+RUN mkdir /usr/local/share/i1en/
+RUN printf "fr_CA ISO-8859-1\ncs_CZ ISO-8859-2" >> /usr/local/share/i1en/SUPPORTED
+RUN locale-gen
+
# Install Clang <latest>, <latest-1> and ToT, which are the ones we support.
ENV LLVM_LATEST_VERSION=12
RUN apt-get update && apt-get install -y lsb-release wget software-properties-common
More information about the libcxx-commits
mailing list