diff --git a/images/wkdev_sdk/Containerfile b/images/wkdev_sdk/Containerfile index eec9744..86f743c 100644 --- a/images/wkdev_sdk/Containerfile +++ b/images/wkdev_sdk/Containerfile @@ -79,12 +79,19 @@ RUN sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.s # GStreamer 1.26.x requires at least Meson 1.4. Install the latest version. RUN pip install meson==1.7.0 --break-system-packages +# Ensure a strong TLS connection is always used when downloading sensitive files. +ARG CURL_DOWNLOAD="curl --proto =https --tlsv1.2 --show-error --silent --fail" + +# Add LLVM repo for newer tooling, nothing is installed from it by default. +COPY /rootfs/etc/apt/sources.list.d/llvm.list /etc/apt/sources.list.d/llvm.list +RUN ${CURL_DOWNLOAD} https://apt.llvm.org/llvm-snapshot.gpg.key -o /etc/apt/trusted.gpg.d/apt.llvm.org.asc + # Add Rust environment. ENV RUSTUP_HOME="/opt/rust" \ CARGO_HOME="/opt/rust" \ PATH="/opt/rust/bin:${PATH}" -RUN curl --proto '=https' --tlsv1.2 --show-error --silent --fail https://sh.rustup.rs | sh -s -- -y && \ +RUN ${CURL_DOWNLOAD} https://sh.rustup.rs | sh -s -- -y && \ rustup default 1.84.1 && \ rustup component remove rust-docs && \ cargo install --root /usr/local --version 0.9.1 --locked sccache && \ diff --git a/images/wkdev_sdk/rootfs/etc/apt/sources.list.d/llvm.list b/images/wkdev_sdk/rootfs/etc/apt/sources.list.d/llvm.list new file mode 100644 index 0000000..e2d020e --- /dev/null +++ b/images/wkdev_sdk/rootfs/etc/apt/sources.list.d/llvm.list @@ -0,0 +1,9 @@ +# From https://apt.llvm.org/ +deb http://apt.llvm.org/noble/ llvm-toolchain-noble main +deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main +# 19 +deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main +deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main +# 20 +deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main +deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main \ No newline at end of file diff --git a/scripts/container-only/wkdev-setup-default-clang b/scripts/container-only/wkdev-setup-default-clang index bd5f529..ecdc748 100755 --- a/scripts/container-only/wkdev-setup-default-clang +++ b/scripts/container-only/wkdev-setup-default-clang @@ -10,7 +10,7 @@ else fi min_clang_version=14 -max_clang_version=18 +max_clang_version=21 init_application "${0}" "Installs and creates symlinks to set default clang executables" container-only