]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_librados_build.sh: install build deps
authorKefu Chai <kchai@redhat.com>
Tue, 11 Jun 2019 05:16:48 +0000 (13:16 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 15 Oct 2019 20:04:20 +0000 (22:04 +0200)
to build helloworld of librados, we need to install the build
dependencies.

Fixes: https://tracker.ceph.com/issues/40155
Signed-off-by: Kefu Chai <kchai@redhat.com>
(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

index 3aaaec7eb2302209c8549b82558a913dd2697353..c5166ffc6691c4d940bb653febbd27a5bdfe4c69 100755 (executable)
@@ -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