From: Deepika Upadhyay Date: Thu, 1 Jul 2021 17:32:34 +0000 (+0530) Subject: build_utils: export jaeger build args if FLAVOR == jaeger X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db7d2609a576cb2d72f75e19077082b7f409b6b4;p=ceph-build.git build_utils: export jaeger build args if FLAVOR == jaeger Signed-off-by: Deepika Upadhyay --- diff --git a/ceph-dev-new/config/definitions/ceph-dev-new.yml b/ceph-dev-new/config/definitions/ceph-dev-new.yml index 35ca8698..f1ddaad6 100644 --- a/ceph-dev-new/config/definitions/ceph-dev-new.yml +++ b/ceph-dev-new/config/definitions/ceph-dev-new.yml @@ -56,8 +56,9 @@ If this is checked, then the binaries will be built and pushed to chacra even if choices: - default - crimson + - jaeger default: "default" - description: "Type of Ceph build, choices are: crimson, default. Defaults to: 'default'" + description: "Type of Ceph build, choices are: crimson, jaeger, default. Defaults to: 'default'" - string: name: CI_CONTAINER diff --git a/ceph-dev-setup/build/build b/ceph-dev-setup/build/build index ed60f796..d3ac7ad4 100644 --- a/ceph-dev-setup/build/build +++ b/ceph-dev-setup/build/build @@ -36,6 +36,7 @@ rm -rf release 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` diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 0c1372fc..173bd9bf 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -840,6 +840,7 @@ gen_debian_version() { # 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 @@ -855,6 +856,10 @@ ceph_build_args_from_flavor() { 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 @@ -909,6 +914,7 @@ build_debs() { 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 \ @@ -918,7 +924,7 @@ build_debs() { --distribution $DIST \ --basetgz $pbuilddir/$DIST.tgz \ --buildresult $releasedir/$cephver \ - --profiles nocheck \ + --profiles $PROFILES \ --use-network yes \ $releasedir/$cephver/ceph_$bpvers.dsc @@ -1392,10 +1398,15 @@ setup_rpm_build_deps() { 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