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
# libradosstriper headers, boost headers, etc. - are already installed.
#
+source $(dirname $0)/../ceph-helpers-root.sh
+
trap cleanup EXIT
SOURCES="hello_radosstriper.cc
}
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