]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buildcontainer-setup.sh: Fix curl package conflict
authorZack Cerza <zack@cerza.org>
Thu, 10 Apr 2025 18:33:59 +0000 (12:33 -0600)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 31 Jul 2025 21:14:53 +0000 (17:14 -0400)
It looks like at some point the centos9 image started shipping with
curl-minimal, which conflicts with the regular curl package. Asking dnf to find
the binary avoids this, since both packages provide it. Since we were already
doing this with rpmbuild, we can go ahead and loop wget into that in case
something similar happens there.

Signed-off-by: Zack Cerza <zack@cerza.org>
(cherry picked from commit 8964380cbbf6c64eb8342b55bc7078f5617560b8)

src/script/buildcontainer-setup.sh

index f655bcb6a9380a5492108e503ec667c4608f6b9f..43e45fcd9b7dd1757d939896e6633a9a8e73a101 100644 (file)
@@ -31,12 +31,12 @@ fi
 # packages etc.
 case "${CEPH_BASE_BRANCH}~${DISTRO_KIND}" in
     *~*centos*8)
-        dnf install -y java-1.8.0-openjdk-headless /usr/bin/rpmbuild wget curl
+        dnf install -y java-1.8.0-openjdk-headless /usr/bin/{rpmbuild,wget,curl}
         install_container_deps
         dnf_clean
     ;;
     *~*centos*9|*~*centos*10*|*~fedora*)
-        dnf install -y /usr/bin/rpmbuild wget curl
+        dnf install -y /usr/bin/{rpmbuild,wget,curl}
         install_container_deps
         dnf_clean
     ;;