From: Deepika Date: Mon, 5 Jul 2021 12:10:05 +0000 (+0000) Subject: debian, install-deps.sh: use Build-Profiles to optionally build debian libjaeger X-Git-Tag: v17.1.0~1325^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=52fc62520f03b97aef7e0d7c22904634d9fcec3d;p=ceph.git debian, install-deps.sh: use Build-Profiles to optionally build debian libjaeger library * use pkg.ceph.jaeger for debian optional pkgs remove mangling needing install-deps, instead use, buildProfileSpec feature introduced for debian. https://wiki.debian.org/BuildProfileSpec * check and * set extraopts in debian/rules using pkg.ceph.jaeger see: https://github.com/ceph/ceph/pull/38783#discussion_r662995612 * cleanup libjaeger.install mangling from CMakeLists Signed-off-by: Deepika Upadhyay --- diff --git a/debian/control b/debian/control index 898f72e972cd..e89f578833e7 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Maintainer: Ceph Maintainers Uploaders: Ken Dreyer , Alfredo Deza , Build-Depends: automake, -# Jaeger bison, + bison , cmake (>= 3.10.2), cpio, cryptsetup-bin | cryptsetup, @@ -18,7 +18,7 @@ Build-Depends: automake, dh-exec, dh-python, dh-systemd, -# Jaeger flex, + flex , git, gperf, g++ (>= 7), @@ -35,7 +35,7 @@ Build-Depends: automake, libcap-ng-dev, libcunit1-dev, libcurl4-openssl-dev, -# Jaeger libevent-dev, + libevent-dev , libexpat1-dev, libffi-dev [!amd64] , libfmt-dev (>= 6.1.2), @@ -78,7 +78,7 @@ Build-Depends: automake, libyaml-cpp-dev , lsb-release, ninja-build , -# Jaeger nlohmann-json-dev | nlohmann-json3-dev, + nlohmann-json3-dev , parted, patch, pkg-config, @@ -991,6 +991,7 @@ Architecture: linux-any Section: libs Depends: ${misc:Depends}, ${shlibs:Depends}, +Build-Profiles: Description: This package provides libraries needed for distributed tracing for Ceph. Package: ceph-test diff --git a/debian/libjaeger.install b/debian/libjaeger.install index 71d8caaf6df1..c3badab315a0 100644 --- a/debian/libjaeger.install +++ b/debian/libjaeger.install @@ -1,3 +1,4 @@ -#usr/lib/libopentracing.so.* -#usr/lib/libjaegertracing.so.* -#usr/lib/libthrift.so.* +usr/lib/libopentracing.so.* +usr/lib/libjaegertracing.so.* +usr/lib/libthrift.so.* +usr/lib/libyaml-cpp.so* diff --git a/debian/rules b/debian/rules index 8cb3949fb566..b186bc1c9ba2 100755 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,11 @@ ifeq (,$(findstring WITH_SEASTAR,$(CEPH_EXTRA_CMAKE_ARGS))) else export CEPH_OSD_BASENAME = crimson-osd endif +ifeq ($(filter pkg.ceph.jaeger,$(DEB_BUILD_PROFILES)),) + extraopts += -DWITH_JAEGER=OFF +else + extraopts += -DWITH_JAEGER=ON +endif extraopts += -DWITH_OCF=ON -DWITH_LTTNG=ON extraopts += -DWITH_MGR_DASHBOARD_FRONTEND=OFF diff --git a/install-deps.sh b/install-deps.sh index b2b40fbd8e9f..c79e8f3162fd 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -353,6 +353,9 @@ else if $with_seastar; then build_profiles+=",pkg.ceph.crimson" fi + if $with_jaeger; then + build_profiles+=",pkg.ceph.jaeger" + fi $SUDO env DEBIAN_FRONTEND=noninteractive mk-build-deps \ --build-profiles "${build_profiles#,}" \ --install --remove \