From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C947E138334 for ; Wed, 20 Mar 2019 21:54:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA731E089B; Wed, 20 Mar 2019 21:54:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7913DE089B for ; Wed, 20 Mar 2019 21:54:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DB7E0335D1A for ; Wed, 20 Mar 2019 21:54:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB09D4E3 for ; Wed, 20 Mar 2019 21:54:30 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1553118860.12252b6abcce03e3154157193bc59c6653cbbb89.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/, sys-cluster/ceph/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/ceph/ceph-13.2.5-r1.ebuild sys-cluster/ceph/ceph-13.2.5.ebuild sys-cluster/ceph/ceph-14.2.0-r1.ebuild sys-cluster/ceph/ceph-14.2.0.ebuild sys-cluster/ceph/files/ceph-13.2.5-no-automagic-deps.patch sys-cluster/ceph/files/ceph-14.2.0-no-automagic-tbb.patch sys-cluster/ceph/metadata.xml X-VCS-Directories: sys-cluster/ceph/files/ sys-cluster/ceph/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 12252b6abcce03e3154157193bc59c6653cbbb89 X-VCS-Branch: master Date: Wed, 20 Mar 2019 21:54:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a58c559c-50b0-4e24-ad9a-54c1bdc598eb X-Archives-Hash: caa5942c32f6d6d2e88ed0f494372db3 commit: 12252b6abcce03e3154157193bc59c6653cbbb89 Author: Patrick McLean sony com> AuthorDate: Wed Mar 20 21:53:46 2019 +0000 Commit: Patrick McLean gentoo org> CommitDate: Wed Mar 20 21:54:20 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12252b6a sys-cluster/ceph: Remove automagic dependency on dev-cpp/tbb This removes an automagic dep on tbb in 13.2.5. Also remove unneeded patch from 14.2.0 Closes: https://bugs.gentoo.org/667024 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Patrick McLean gentoo.org> .../{ceph-13.2.5.ebuild => ceph-13.2.5-r1.ebuild} | 6 +++- .../{ceph-14.2.0.ebuild => ceph-14.2.0-r1.ebuild} | 10 +++--- .../ceph/files/ceph-13.2.5-no-automagic-deps.patch | 37 ++++++++++++++++++++++ .../ceph/files/ceph-14.2.0-no-automagic-tbb.patch | 12 ------- sys-cluster/ceph/metadata.xml | 1 + 5 files changed, 47 insertions(+), 19 deletions(-) diff --git a/sys-cluster/ceph/ceph-13.2.5.ebuild b/sys-cluster/ceph/ceph-13.2.5-r1.ebuild similarity index 97% rename from sys-cluster/ceph/ceph-13.2.5.ebuild rename to sys-cluster/ceph/ceph-13.2.5-r1.ebuild index cca90b166f0..f83f6158171 100644 --- a/sys-cluster/ceph/ceph-13.2.5.ebuild +++ b/sys-cluster/ceph/ceph-13.2.5-r1.ebuild @@ -26,7 +26,7 @@ SLOT="0" CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3) -IUSE="babeltrace cephfs dpdk fuse jemalloc ldap lttng +mgr" +IUSE="babeltrace cephfs dpdk fuse jemalloc ldap lttng +mgr numa" IUSE+=" +radosgw +ssl static-libs +system-boost systemd +tcmalloc test" IUSE+=" xfs zfs" IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})" @@ -54,6 +54,7 @@ COMMON_DEPEND=" ldap? ( net-nds/openldap:=[static-libs?] ) lttng? ( dev-util/lttng-ust:= ) fuse? ( sys-fs/fuse:0=[static-libs?] ) + numa? ( sys-process/numactl:=[static-libs?] ) ssl? ( dev-libs/openssl:=[static-libs?] ) xfs? ( sys-fs/xfsprogs:=[static-libs?] ) zfs? ( sys-fs/zfs:=[static-libs?] ) @@ -136,6 +137,7 @@ PATCHES=( "${FILESDIR}/ceph-13.2.0-mgr-python-version.patch" "${FILESDIR}/ceph-13.2.0-no-virtualenvs.patch" "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch" + "${FILESDIR}/ceph-13.2.5-no-automagic-deps.patch" ) check-reqs_export_vars() { @@ -193,6 +195,7 @@ ceph_src_configure() { -DWITH_LTTNG=$(usex lttng) -DWITH_MGR=$(usex mgr) -DWITH_MGR_DASHBOARD_FRONTEND=NO + -DWITH_NUMA=$(usex numa) -DWITH_OPENLDAP=$(usex ldap) -DWITH_RADOSGW=$(usex radosgw) -DWITH_SSL=$(usex ssl) @@ -205,6 +208,7 @@ ceph_src_configure() { -DWITH_SYSTEM_BOOST=$(usex system-boost) -DBOOST_J=$(makeopts_jobs) -DWITH_RDMA=no + -DWITH_TBB=no -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir) -DEPYTHON_VERSION="${EPYTHON#python}" -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${P}" diff --git a/sys-cluster/ceph/ceph-14.2.0.ebuild b/sys-cluster/ceph/ceph-14.2.0-r1.ebuild similarity index 96% rename from sys-cluster/ceph/ceph-14.2.0.ebuild rename to sys-cluster/ceph/ceph-14.2.0-r1.ebuild index d754478c6d0..8a6796f810f 100644 --- a/sys-cluster/ceph/ceph-14.2.0.ebuild +++ b/sys-cluster/ceph/ceph-14.2.0-r1.ebuild @@ -27,13 +27,10 @@ SLOT="0" CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3) IUSE="babeltrace cephfs dpdk fuse grafana jemalloc kerberos ldap lttng +mgr" -IUSE+=" rabbitmq +radosgw +ssl static-libs +system-boost systemd +tcmalloc" -IUSE+=" test xfs zfs" +IUSE+=" numa rabbitmq +radosgw +ssl static-libs +system-boost systemd" +IUSE+=" +tcmalloc test xfs zfs" IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})" -# unbundling code commented out pending bugs 584056 and 584058 -#>=dev-libs/jerasure-2.0.0-r1 -#>=dev-libs/gf-complete-2.0.0 COMMON_DEPEND=" virtual/libudev:= app-arch/bzip2:=[static-libs?] @@ -143,7 +140,6 @@ PATCHES=( "${FILESDIR}/ceph-14.2.0-no-virtualenvs.patch" "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch" "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch" - "${FILESDIR}/ceph-14.2.0-no-automagic-tbb.patch" ) # dpdk and ninja don't get along @@ -206,6 +202,7 @@ ceph_src_configure() { -DWITH_GRAFANA=$(usex grafana) -DWITH_MGR=$(usex mgr) -DWITH_MGR_DASHBOARD_FRONTEND=NO + -DWITH_NUMA=$(usex numa) -DWITH_OPENLDAP=$(usex ldap) -DWITH_RADOSGW=$(usex radosgw) -DWITH_RADOSGW_AMQP_ENDPOINT=$(usex rabbitmq) @@ -219,6 +216,7 @@ ceph_src_configure() { -DWITH_SYSTEM_BOOST=$(usex system-boost) -DBOOST_J=$(makeopts_jobs) -DWITH_RDMA=no + -DWITH_TBB=no -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir) -DEPYTHON_VERSION="${EPYTHON#python}" -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${P}" diff --git a/sys-cluster/ceph/files/ceph-13.2.5-no-automagic-deps.patch b/sys-cluster/ceph/files/ceph-13.2.5-no-automagic-deps.patch new file mode 100644 index 00000000000..1eb42b3e5ad --- /dev/null +++ b/sys-cluster/ceph/files/ceph-13.2.5-no-automagic-deps.patch @@ -0,0 +1,37 @@ +--- ceph-13.2.5.orig/src/rocksdb/CMakeLists.txt 2019-03-20 11:39:25.065954652 -0700 ++++ ceph-13.2.5/src/rocksdb/CMakeLists.txt 2019-03-20 13:18:01.548085828 -0700 +@@ -286,18 +286,24 @@ + endif() + endif() + +-find_package(NUMA) +-if(NUMA_FOUND) +- add_definitions(-DNUMA) +- include_directories(${NUMA_INCLUDE_DIR}) +- list(APPEND THIRDPARTY_LIBS ${NUMA_LIBRARIES}) ++option(WITH_NUMA "build with UBSAN" OFF) ++if(WITH_NUMA) ++ find_package(NUMA) ++ if(NUMA_FOUND) ++ add_definitions(-DNUMA) ++ include_directories(${NUMA_INCLUDE_DIR}) ++ list(APPEND THIRDPARTY_LIBS ${NUMA_LIBRARIES}) ++ endif() + endif() + +-find_package(TBB) +-if(TBB_FOUND) +- add_definitions(-DTBB) +- include_directories(${TBB_INCLUDE_DIR}) +- list(APPEND THIRDPARTY_LIBS ${TBB_LIBRARIES}) ++option(WITH_TBB "build with UBSAN" OFF) ++if(WITH_TBB) ++ find_package(TBB) ++ if(TBB_FOUND) ++ add_definitions(-DTBB) ++ include_directories(${TBB_INCLUDE_DIR}) ++ list(APPEND THIRDPARTY_LIBS ${TBB_LIBRARIES}) ++ endif() + endif() + + # Used to run CI build and tests so we can run faster diff --git a/sys-cluster/ceph/files/ceph-14.2.0-no-automagic-tbb.patch b/sys-cluster/ceph/files/ceph-14.2.0-no-automagic-tbb.patch deleted file mode 100644 index 3e671a49098..00000000000 --- a/sys-cluster/ceph/files/ceph-14.2.0-no-automagic-tbb.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/cmake/modules/BuildRocksDB.cmake b/cmake/modules/BuildRocksDB.cmake -index 69741f4601..8e7a9e30c3 100644 ---- a/cmake/modules/BuildRocksDB.cmake -+++ b/cmake/modules/BuildRocksDB.cmake -@@ -39,6 +39,7 @@ function(build_rocksdb) - list(APPEND rocksdb_CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) - list(APPEND rocksdb_CMAKE_ARGS -DFAIL_ON_WARNINGS=OFF) - list(APPEND rocksdb_CMAKE_ARGS -DUSE_RTTI=1) -+ list(APPEND rocksdb_CMAKE_ARGS -DWITH_TBB=NO) - CHECK_C_COMPILER_FLAG("-Wno-stringop-truncation" HAS_WARNING_STRINGOP_TRUNCATION) - if(HAS_WARNING_STRINGOP_TRUNCATION) - list(APPEND rocksdb_CMAKE_ARGS -DCMAKE_C_FLAGS="-Wno-stringop-truncation") diff --git a/sys-cluster/ceph/metadata.xml b/sys-cluster/ceph/metadata.xml index f1a3c5f5209..03215bde3fd 100644 --- a/sys-cluster/ceph/metadata.xml +++ b/sys-cluster/ceph/metadata.xml @@ -28,6 +28,7 @@ Add support for LTTng Build the ceph-mgr daemon Use dev-libs/nss for cryptography + Use sys-process/numactl for numa support in rocksdb Use rabbitmq-c to build rgw amqp push endpoint Add radosgw support Use system dev-libs/boost instead of the bundled one