]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
d/control,install-deps: use d/control for installing seastar deps
authorKefu Chai <kchai@redhat.com>
Thu, 6 Jun 2019 02:57:53 +0000 (10:57 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 6 Jun 2019 10:06:43 +0000 (18:06 +0800)
prepare for building ceph-crimson-osd deb package

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/control
install-deps.sh

index 2bb5e6fbb90e726840cd6448222ebaac400d62a9..2a7a69aa36ff0999f19930fe430e9399e881fce3 100644 (file)
@@ -26,11 +26,15 @@ Build-Depends: cmake (>= 3.5),
                libbabeltrace-ctf-dev,
                libbabeltrace-dev,
                libblkid-dev (>= 2.17),
+# Crimson      libc-ares-dev,
+# Crimson      libcrypto++-dev,
                libcunit1-dev,
                libcurl4-openssl-dev,
                libexpat1-dev,
                libfuse-dev,
                libgoogle-perftools-dev [i386 amd64 arm64],
+# Crimson      libgnutls28-dev,
+# Crimson      libhwloc-dev,
                libibverbs-dev,
                librdmacm-dev,
                libkeyutils-dev,
@@ -41,15 +45,21 @@ Build-Depends: cmake (>= 3.5),
                libncurses-dev,
                libnss3-dev,
                liboath-dev,
+# Crimson      libnuma-dev,
+# Crimson      libpciaccess-dev,
+# Crimson      libprotobuf-dev,
+# Crimson      libsctp-dev,
                libsnappy-dev,
                libssl-dev,
                libtool,
                libudev-dev,
                libxml2-dev,
+# Crimson      libyaml-cpp-dev,
                librabbitmq-dev,
                lsb-release,
                parted,
                pkg-config,
+# Crimson      protobuf-compiler,
                python (>= 2.7),
                python-all-dev,
                python-cherrypy3,
@@ -68,7 +78,9 @@ Build-Depends: cmake (>= 3.5),
 # Make-Check   python-werkzeug,
                python3-all-dev,
                python3-setuptools,
+# Crimson      ragel,
 # Make-Check   socat,
+# Crimson      systemtap-sdt-dev,
                uuid-dev,
                uuid-runtime,
                valgrind,
index 291a33331e78b3d25c40b9d6daddcf57528c87cf..9e45920ebea091140836e5dfb2892e8a63c09ca5 100755 (executable)
@@ -23,15 +23,6 @@ export LC_ALL=C # the following is vulnerable to i18n
 
 ARCH=$(uname -m)
 
-function install_seastar_deps {
-    if [ $WITH_SEASTAR ]; then
-        $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y \
-              ragel libc-ares-dev libhwloc-dev libnuma-dev libpciaccess-dev \
-              libcrypto++-dev libgnutls28-dev libsctp-dev libprotobuf-dev \
-              protobuf-compiler systemtap-sdt-dev libyaml-cpp-dev
-    fi
-}
-
 function munge_ceph_spec_in {
     local for_make_check=$1
     shift
@@ -58,6 +49,9 @@ function munge_debian_control {
            grep -v babeltrace debian/control > $control
            ;;
     esac
+    if [ $with_seastar ]; then
+       sed -i -e 's/^# Crimson[[:space:]]//g' $control
+    fi
     if $for_make_check; then
         sed -i 's/^# Make-Check[[:space:]]/             /g' $control
     fi
@@ -307,7 +301,6 @@ else
        # work is done
        $SUDO env DEBIAN_FRONTEND=noninteractive mk-build-deps --install --remove --tool="apt-get -y --no-install-recommends $backports" $control || exit 1
        $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove ceph-build-deps
-       install_seastar_deps
        if [ "$control" != "debian/control" ] ; then rm $control; fi
        $SUDO apt-get install -y libxmlsec1 libxmlsec1-nss libxmlsec1-openssl libxmlsec1-dev
         ;;