From 2e37e8a8a8f0a09c565f6d95e23670f2118a201b Mon Sep 17 00:00:00 2001 From: slydetector Date: Tue, 28 Apr 2026 03:05:08 +0000 Subject: [PATCH] Devcontainer: Install CMake from Kitware repo The distro version of CMake sometimes lags behind the required minimum version of CMake, currently 3.30.0. This ensures that the latest version is always installed. --- .devcontainer/features/ladybird/install-ubuntu.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.devcontainer/features/ladybird/install-ubuntu.sh b/.devcontainer/features/ladybird/install-ubuntu.sh index 1ea18ff750..3695e12ca2 100644 --- a/.devcontainer/features/ladybird/install-ubuntu.sh +++ b/.devcontainer/features/ladybird/install-ubuntu.sh @@ -21,10 +21,19 @@ install_llvm_key() { apt update -y } +install_cmake() { + wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null + echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/kitware.list + apt update -y + apt install -y cmake +} + ### Install packages apt update -y -apt install -y lsb-release git python3 autoconf autoconf-archive automake bison build-essential cmake libdrm-dev libgl1-mesa-dev libtool libxkbcommon-dev nasm ninja-build pkg-config qt6-base-dev qt6-tools-dev-tools qt6-wayland ccache fonts-liberation2 zip unzip curl tar +apt install -y autoconf autoconf-archive automake bison build-essential ccache curl fonts-liberation2 git libdrm-dev libgl1-mesa-dev libtool libxkbcommon-dev lsb-release nasm ninja-build pkg-config python3 qt6-base-dev qt6-tools-dev-tools qt6-wayland shellcheck tar unzip zip + +install_cmake ### Ensure new enough host compiler is available