From 825781f09586ee4ef2e423092a268ba6236a5631 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 11 Jun 2019 13:16:48 +0800 Subject: [PATCH] qa/workunits/rados/test_librados_build.sh: install build deps to build helloworld of librados, we need to install the build dependencies. Fixes: https://tracker.ceph.com/issues/40155 Signed-off-by: Kefu Chai (cherry picked from commit be89e66f7498a43573d1efcc81ae8cc15bb67cbe) Conflicts: qa/workunits/rados/test_librados_build.sh - dropped libradospp-{dev,devel} because luminous does not build such a package --- qa/workunits/rados/test_librados_build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qa/workunits/rados/test_librados_build.sh b/qa/workunits/rados/test_librados_build.sh index 3aaaec7eb2302..c5166ffc6691c 100755 --- a/qa/workunits/rados/test_librados_build.sh +++ b/qa/workunits/rados/test_librados_build.sh @@ -8,6 +8,8 @@ # libradosstriper headers, boost headers, etc. - are already installed. # +source $(dirname $0)/../ceph-helpers-root.sh + trap cleanup EXIT SOURCES="hello_radosstriper.cc @@ -56,6 +58,14 @@ function run_binaries () { } pushd $DESTDIR +case $(distro_id) in + centos|fedora|rhel|opensuse*|suse|sles) + install gcc-c++ make librados-devel;; + ubuntu|debian|devuan) + install g++ make librados-dev;; + *) + echo "$(distro_id) is unknown, $@ will have to be installed manually." +esac get_sources check_sources make all-system -- 2.39.5