Debian removed software-properties-common from the archive in trixie,
so the flat apt-get install list fails there. The package was only
needed to provide add-apt-repository for llvm.sh, which installs
clang-19 from apt.llvm.org. Trixie ships clang-19 natively, so install
it from the distro instead; run-make.sh's prepare() then finds clang-19
and skips llvm.sh entirely. Ubuntu and older Debian releases still have
software-properties-common and keep the previous behavior.
Fixes: https://tracker.ceph.com/issues/78111
Signed-off-by: David Galloway <david.galloway@ibm.com>
;;
*~*ubuntu*|*~*debian*)
apt-get update
- apt-get install -y wget reprepro curl software-properties-common lksctp-tools libsctp-dev protobuf-compiler ragel libc-ares-dev
+ pkgs=(wget reprepro curl lksctp-tools libsctp-dev protobuf-compiler ragel libc-ares-dev)
+ # software-properties-common provides add-apt-repository, which
+ # llvm.sh needs to install clang from apt.llvm.org. Debian removed
+ # the package in trixie, which ships clang-19 natively instead, so
+ # install that directly and run-make.sh will skip llvm.sh.
+ if apt-cache show software-properties-common >/dev/null 2>&1; then
+ pkgs+=(software-properties-common)
+ else
+ pkgs+=(clang-19)
+ fi
+ apt-get install -y "${pkgs[@]}"
install_container_deps
;;
*)