echo "Running submodule update ..."
git submodule update --init
+# export args for building optional packages
ceph_build_args_from_flavor ${FLAVOR}
# When using autotools/autoconf it is possible to see output from `git diff`
# Flavor Builds support
# - CEPH_EXTRA_RPMBUILD_ARGS is consumed by build_rpms()
# - CEPH_EXTRA_CMAKE_ARGS is consumed by debian/rules and ceph.spec directly
+# - PROFILES is consumed by pbuilder
ceph_build_args_from_flavor() {
local flavor=$1
shift
CEPH_EXTRA_CMAKE_ARGS+=" -DCMAKE_BUILD_TYPE=Debug"
CEPH_EXTRA_CMAKE_ARGS+=" -DWITH_SEASTAR=ON"
;;
+ jaeger)
+ CEPH_EXTRA_RPMBUILD_ARGS="--with jaeger"
+ PROFILES="pkg.ceph.jaeger"
+ ;;
*)
echo "unknown FLAVOR: ${FLAVOR}" >&2
exit 1
CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS $(extra_cmake_args)"
DEB_BUILD_OPTIONS="parallel=$(get_nr_build_jobs)"
+ PROFILES="nocheck,$PROFILES"
# pass only those env vars specifically noted
sudo \
--distribution $DIST \
--basetgz $pbuilddir/$DIST.tgz \
--buildresult $releasedir/$cephver \
- --profiles nocheck \
+ --profiles $PROFILES \
--use-network yes \
$releasedir/$cephver/ceph_$bpvers.dsc
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
- if [ "$FLAVOR" = "crimson" ]; then
- # enable more build depends required by crimson
- sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $DIR/ceph.spec
- fi
+ # enable more build depends required by build flavor(jaeger, crimson)
+ case "${FLAVOR}" in
+ crimson)
+ sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $DIR/ceph.spec
+ ;;
+ jaeger)
+ sed -i -e 's/%bcond_with jaeger/%bcond_without jaeger/g' $DIR/ceph.spec
+ ;;
+ esac
# Make sure we have all the rpm macros installed and at the latest version
# before installing the dependencies, python3-devel requires the