From: "Guilherme Amadio" <amadio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocksdb/
Date: Tue, 14 Nov 2023 15:13:51 +0000 (UTC) [thread overview]
Message-ID: <1699974815.3d5d0e06dbabb3007ddf333526f6da1b6cc01a64.amadio@gentoo> (raw)
commit: 3d5d0e06dbabb3007ddf333526f6da1b6cc01a64
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 13 11:30:40 2023 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 15:13:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d5d0e06
dev-libs/rocksdb: add 6.14.6-r3 with more features
- Update EAPI 7 -> 8
- Specify values for build options that may change defaults to
ensure that at least zlib, bz2, lz4, zstd, are actually enabled
- Add support for NUMA and TBB
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
dev-libs/rocksdb/metadata.xml | 4 ++
dev-libs/rocksdb/rocksdb-6.14.6-r3.ebuild | 79 +++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+)
diff --git a/dev-libs/rocksdb/metadata.xml b/dev-libs/rocksdb/metadata.xml
index 17deb850e431..e8708dfa4d7c 100644
--- a/dev-libs/rocksdb/metadata.xml
+++ b/dev-libs/rocksdb/metadata.xml
@@ -12,4 +12,8 @@
<upstream>
<remote-id type="github">facebook/rocksdb</remote-id>
</upstream>
+ <use>
+ <flag name="numa">Enable NUMA support</flag>
+ <flag name="tbb">Enable support for <pkg>dev-cpp/tbb</pkg></flag>
+ </use>
</pkgmetadata>
diff --git a/dev-libs/rocksdb/rocksdb-6.14.6-r3.ebuild b/dev-libs/rocksdb/rocksdb-6.14.6-r3.ebuild
new file mode 100644
index 000000000000..c146861ca057
--- /dev/null
+++ b/dev-libs/rocksdb/rocksdb-6.14.6-r3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Embeddable, persistent key-value store for fast storage"
+HOMEPAGE="http://rocksdb.org https://github.com/facebook/rocksdb/"
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_sse4_2 jemalloc numa static-libs tbb test"
+
+# tests fail in this version
+RESTRICT="test"
+
+DEPEND="
+ app-arch/bzip2:=
+ app-arch/lz4:=
+ app-arch/snappy:=
+ app-arch/zstd:=
+ dev-cpp/gflags:=
+ sys-libs/zlib:=
+ sys-process/numactl
+ jemalloc? ( dev-libs/jemalloc:= )
+ tbb? ( dev-cpp/tbb:= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.17.3-libatomic.patch
+ "${FILESDIR}"/${PN}-6.14.6-gcc13.patch
+)
+
+src_prepare() {
+ sed -i -e '/find_program(CCACHE_FOUND ccache)/d' CMakeLists.txt || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DFAIL_ON_WARNINGS=OFF
+ -DFORCE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
+ -DFORCE_AVX=$(usex cpu_flags_x86_avx ON OFF)
+ -DFORCE_SSE42=$(usex cpu_flags_x86_sse4_2 ON OFF)
+ -DPORTABLE=ON
+ -DWITH_BZ2=ON
+ -DWITH_CORE_TOOLS=ON
+ -DWITH_DYNAMIC_EXTENSION=ON
+ -DWITH_GFLAGS=ON
+ -DWITH_JEMALLOC=$(usex jemalloc ON OFF)
+ -DWITH_JNI=OFF
+ -DWITH_LIBRADOS=OFF
+ -DWITH_LZ4=ON
+ -DWITH_MD_LIBRARY=ON
+ -DWITH_NUMA=$(usex numa)
+ -DWITH_SNAPPY=ON
+ -DWITH_TBB=$(usex tbb)
+ -DWITH_ALL_TESTS=$(usex test)
+ -DWITH_TESTS=$(usex test)
+ -DWITH_TOOLS=ON
+ -DWITH_ZLIB=ON
+ -DWITH_ZSTD=ON
+ )
+ # -DWITH_TESTS option works only with debug build, needs to be set here
+ # to not be overriden by cmake.eclass
+ CMAKE_BUILD_TYPE=$(usex test Debug RelWithDebInfo) cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ if ! use static-libs; then
+ rm "${ED}"/usr/$(get_libdir)/*.a || die
+ fi
+}
next reply other threads:[~2023-11-14 15:13 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 15:13 Guilherme Amadio [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-07 18:13 [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocksdb/ Guilherme Amadio
2025-09-07 18:13 Guilherme Amadio
2025-09-07 18:13 Guilherme Amadio
2025-05-11 4:41 Patrick Lauer
2025-04-15 13:42 Guilherme Amadio
2025-04-05 12:26 Guilherme Amadio
2025-04-04 16:28 Guilherme Amadio
2025-02-02 12:58 Guilherme Amadio
2025-02-02 12:53 Guilherme Amadio
2025-02-02 12:53 Guilherme Amadio
2025-02-02 12:53 Guilherme Amadio
2024-12-28 14:04 Arthur Zamarin
2024-12-18 14:33 Guilherme Amadio
2024-12-06 9:27 Guilherme Amadio
2024-11-24 11:02 Sam James
2024-11-24 11:02 Sam James
2024-11-11 16:15 Guilherme Amadio
2024-11-11 16:15 Guilherme Amadio
2024-11-11 16:15 Guilherme Amadio
2024-10-25 21:42 Sam James
2024-08-12 9:51 Guilherme Amadio
2024-07-03 12:55 Guilherme Amadio
2024-03-10 22:04 Guilherme Amadio
2024-03-10 22:04 Guilherme Amadio
2024-01-29 10:38 Guilherme Amadio
2024-01-03 18:52 Arthur Zamarin
2023-12-13 14:39 Guilherme Amadio
2023-11-14 15:23 Guilherme Amadio
2023-11-14 15:13 Guilherme Amadio
2023-11-14 15:13 Guilherme Amadio
2023-11-14 15:13 Guilherme Amadio
2023-11-14 15:13 Guilherme Amadio
2023-04-30 6:38 Sam James
2023-03-13 21:56 Sam James
2023-02-12 3:47 Sam James
2023-01-27 5:26 Sam James
2022-03-19 4:15 Yixun Lan
2021-08-23 17:01 Marek Szuba
2021-03-21 3:07 Patrick McLean
2021-02-26 0:44 Patrick McLean
2021-01-21 23:03 Patrick McLean
2021-01-04 22:15 Patrick McLean
2021-01-04 21:43 Patrick McLean
2021-01-01 23:00 Sam James
2020-12-02 0:17 Patrick McLean
2020-11-26 17:25 Sam James
2020-11-20 22:26 Sam James
2020-11-19 7:29 Patrick McLean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1699974815.3d5d0e06dbabb3007ddf333526f6da1b6cc01a64.amadio@gentoo \
--to=amadio@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox