[libcxx-commits] [libcxx] [libc++][CI] Installs tzdata package in Docker. (PR #84643)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 9 09:39:14 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Mark de Wever (mordante)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/84643.diff


1 Files Affected:

- (modified) libcxx/utils/ci/Dockerfile (+6) 


``````````diff
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 \

``````````

</details>


https://github.com/llvm/llvm-project/pull/84643


More information about the libcxx-commits mailing list