From 342aff662a76964aa52a9d593ae88750e6e86fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Fri, 23 Oct 2026 10:41:08 +0200 Subject: [PATCH] GH-55113: [CI][R] Install tzdata-legacy if available so tests are able to find required timezones --- ci/scripts/r_docker_configure.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/scripts/r_docker_configure.sh b/ci/scripts/r_docker_configure.sh index 014a18b2eddc..7c8a7c171964 100755 --- a/ci/scripts/r_docker_configure.sh +++ b/ci/scripts/r_docker_configure.sh @@ -85,6 +85,11 @@ else "$PACKAGE_MANAGER" install -y rsync cmake curl fi +# Newer Debian/Ubuntu require tzdata-legacy for our tests, install it if available. +if [ "$PACKAGE_MANAGER" = "apt-get" ] && apt-cache show tzdata-legacy > /dev/null 2>&1; then + apt-get install -y tzdata-legacy +fi + # Update clang version to latest available. # The rhub/ubuntu-clang image ships clang-15 but CRAN's debian-clang now uses