From: Kefu Chai Date: Tue, 16 Jun 2020 12:49:29 +0000 (+0800) Subject: rpm,install-dep.sh,cmake: build cephfs java binding X-Git-Tag: v18.0.0~809^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3146c6160daaccc84612c99af3eebfd7f0c62183;p=ceph.git rpm,install-dep.sh,cmake: build cephfs java binding java packaging tools are now offered by "javapackages-tools" module in el8. so let's re-enable it. this change partially reverts dd133840b9d35ca7d8b1788836f6076b06c33087 Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index f9516fc2de765..308cf40aa2545 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -31,11 +31,7 @@ %endif %if 0%{?fedora} || 0%{?rhel} %bcond_without selinux -%if 0%{?rhel} >= 8 -%bcond_with cephfs_java -%else %bcond_without cephfs_java -%endif %bcond_without amqp_endpoint %bcond_without kafka_endpoint %bcond_without lttng @@ -161,6 +157,7 @@ Requires: ceph-mon = %{_epoch_prefix}%{version}-%{release} Requires(post): binutils %if 0%{with cephfs_java} BuildRequires: java-devel +BuildRequires: jpackage-utils BuildRequires: sharutils %endif %if 0%{with selinux} @@ -1230,6 +1227,8 @@ cd build -DWITH_TESTS:BOOL=OFF \ %endif %if 0%{with cephfs_java} + -DJAVA_HOME=%{java_home} \ + -DJAVA_LIB_INSTALL_DIR=%{_jnidir} \ -DWITH_CEPHFS_JAVA:BOOL=ON \ %endif %if 0%{with selinux} diff --git a/install-deps.sh b/install-deps.sh index 07259e84dc4e3..5345e73a20b20 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -350,10 +350,12 @@ else # before EPEL8 and PowerTools provide all dependencies, we use sepia for the dependencies $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save + $SUDO dnf -y module enable javapackages-tools elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then $SUDO subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms" $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save + $SUDO dnf -y module enable javapackages-tools fi ;; esac