[libcxx-commits] [libcxx] [libc++][CI] Installs tzdata package in Docker. (PR #84643)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 9 09:38:46 PST 2024
https://github.com/mordante created https://github.com/llvm/llvm-project/pull/84643
This allows testing the time zone information in the CI. This is needed to let https://github.com/llvm/llvm-project/pull/82108 pass the CI.
>From a43c85a515f77d1a8e4cdb1e03df0f4334c0f6bd Mon Sep 17 00:00:00 2001
From: Mark de Wever <koraq at xs4all.nl>
Date: Sat, 9 Mar 2024 18:35:51 +0100
Subject: [PATCH] [libc++][CI] Installs tzdata package in Docker.
This allows testing the time zone information in the CI. This is needed
to let https://github.com/llvm/llvm-project/pull/82108 pass the CI.
---
libcxx/utils/ci/Dockerfile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libcxx/utils/ci/Dockerfile b/libcxx/utils/ci/Dockerfile
index 225de937cc869a..178cba41593388 100644
--- a/libcxx/utils/ci/Dockerfile
+++ b/libcxx/utils/ci/Dockerfile
@@ -65,6 +65,12 @@ RUN <<EOF
echo "ALL ALL = (ALL) NOPASSWD: ALL" | tee /etc/sudoers || true
EOF
+# Installing tzdata before other packages avoids the time zone prompts.
+# These prompts seem to ignore DEBIAN_FRONTEND=noninteractive.
+RUN sudo apt-get update \
+ && sudo apt-get install -y \
+ tzdata
+
RUN sudo apt-get update \
&& sudo apt-get install -y \
python3 \
More information about the libcxx-commits
mailing list