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

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 12 09:28:19 PDT 2024


Author: Mark de Wever
Date: 2024-03-12T17:28:15+01:00
New Revision: af21659c8c5c1d16b9bc5e745aaaf49b322f64d7

URL: https://github.com/llvm/llvm-project/commit/af21659c8c5c1d16b9bc5e745aaaf49b322f64d7
DIFF: https://github.com/llvm/llvm-project/commit/af21659c8c5c1d16b9bc5e745aaaf49b322f64d7.diff

LOG: [libc++][CI] Installs tzdata package in Docker. (#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.

Added: 
    

Modified: 
    libcxx/utils/ci/Dockerfile

Removed: 
    


################################################################################
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