mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
Switch containers from Debian 12 (bookworm) to Debian 13 (trixie). Trixie ships LLVM 19 by default, so we no longer need to add LLVM repos to install llvm-19. Notably, trixie also uses Python 3.13. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6994 Signed-off-by: Valentine Burley <valentine.burley@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35853>
18 lines
575 B
Bash
18 lines
575 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Check to see if we need a separate repo to install LLVM.
|
|
|
|
case "${FDO_DISTRIBUTION_VERSION%-*},${LLVM_VERSION}" in
|
|
trixie,19)
|
|
NEED_LLVM_REPO="false"
|
|
;;
|
|
*)
|
|
NEED_LLVM_REPO="true"
|
|
;;
|
|
esac
|
|
|
|
if [ "$NEED_LLVM_REPO" = "true" ]; then
|
|
curl --fail -s https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
|
export LLVM_APT_REPO="deb [trusted=yes] https://apt.llvm.org/${FDO_DISTRIBUTION_VERSION%-*}/ llvm-toolchain-${FDO_DISTRIBUTION_VERSION%-*}-${LLVM_VERSION} main"
|
|
echo "$LLVM_APT_REPO" | tee /etc/apt/sources.list.d/llvm.list
|
|
fi
|