]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/buildcontainer-setup: fix package install on debian trixie 70127/head
authorDavid Galloway <david.galloway@ibm.com>
Fri, 10 Jul 2026 20:12:01 +0000 (16:12 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 10 Jul 2026 20:12:01 +0000 (16:12 -0400)
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>
src/script/buildcontainer-setup.sh

index e5442f4ab7bdd81bc4f8284f48ae5608abbd0580..d4de868e68a7191a103f39b4cbfe66b573c2d7da 100644 (file)
@@ -43,7 +43,17 @@ case "${CEPH_BASE_BRANCH}~${DISTRO_KIND}" in
     ;;
     *~*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
     ;;
     *)