summaryrefslogtreecommitdiff
path: root/dev-libs/rocksdb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-27 07:57:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-27 07:57:53 +0000
commitf2299aed04cae8310f7fce0be5396370e346d966 (patch)
treef553199fdc256388ed59b3d74a0b3b100765e24c /dev-libs/rocksdb
parent2db43213e5c343995f4b9fb977726fe42ebdac67 (diff)
gentoo auto-resync : 27:01:2023 - 07:57:53
Diffstat (limited to 'dev-libs/rocksdb')
-rw-r--r--dev-libs/rocksdb/Manifest5
-rw-r--r--dev-libs/rocksdb/files/rocksdb-7.9.2-gcc-13.patch42
-rw-r--r--dev-libs/rocksdb/metadata.xml3
-rw-r--r--dev-libs/rocksdb/rocksdb-7.9.2.ebuild55
4 files changed, 104 insertions, 1 deletions
diff --git a/dev-libs/rocksdb/Manifest b/dev-libs/rocksdb/Manifest
index 389122da2b0c..6f640e719281 100644
--- a/dev-libs/rocksdb/Manifest
+++ b/dev-libs/rocksdb/Manifest
@@ -1,9 +1,12 @@
AUX rocksdb-6.17.3-add_timer_for_riscv.patch 1647 BLAKE2B d1e78c98149f534ce8d02754f5e15b5aeccadb99cf82586bd24c44c68aef5134bdd5d00f5f81699bae59f27ae9f565f40069afedba081f7a76ec54d90a37462b SHA512 ebcf6c5df091860bf53edf54af47678e90da251f28d0ed46be7ac1cf32f50528f8185e94d82ec770c97aa23d24dfcbba634ffcf2671a5dad5fcfd6104115bb69
AUX rocksdb-6.17.3-libatomic.patch 2131 BLAKE2B 2f12fee9b062cf4bf633d784bd4234a1076d0b763f85b9ab0332c828661674944251098e7784b07118e95aa2f4729360cfe3b7b0c95afe58772ea0d3579afd96 SHA512 4717fb67b322f34a2fa351eac1d8fdcbf239acedefd8bcb69c07f11f472f0adc8579e7ddf01be6ba9239009f81d8df4b1cbfb1b88e996ad63fc1d3ff8b801526
+AUX rocksdb-7.9.2-gcc-13.patch 1117 BLAKE2B 675802fdeee88304b37e0a7a50685f5103d52b017fe8551ef562f7336421cc28501774a5c7e0ec83e18ddff2be8258a67e3e6abe8131158207963a385de4deb2 SHA512 c55e33fcca683248bd49a342e923736f27b3fbf98443f09bb6a2df7dfe571b93d99997aa8cf308879d77d63beed12e3b50dd30aa0b745b4488304055decf5c29
DIST rocksdb-6.14.6.tar.gz 6397194 BLAKE2B 43ad8e7e9fdf0c6c75ff03370f2107899bbcef9fd34630c85408abcf208a8213f5e24ea50407bd6a719220b6c29b9ba29c121e94a5a2701f637b17ccf50b90a4 SHA512 609f407b0b2810954541ad8ebad5c754ebfde5021f24ee4b3f1544a5335252c06cbe2b282562e3d084bb9cbe8de239668fdedb2d2d726056c31cf9463db08fe7
DIST rocksdb-6.15.5.tar.gz 6501252 BLAKE2B f85c6b54043019692a7174e41b69625650d072ee4de1f2850628854af4b5672ff7072ab5c41de84bca9ad0713a1eea7ad7c5cca5ba9b3b96c4bd492a01b5e859 SHA512 c0918fd48bc1e57be9e30452c5cd0c2ba627a15012ab6922404d6cddffdf80799e4442b14d03cbe13a9a9acbdf1736c505cc6f5406efefbf68aba71ec05cf5f0
DIST rocksdb-6.17.3.tar.gz 6651009 BLAKE2B c032bdf61d93a35e84c65146ad6d1f8639e9f36a323c142fe4131b501051bfb9c4c4edb13b69c86e35740117029996bb4c94887ea690d1957926bdfd347c744a SHA512 085adab94b7eb22859b4119b0356f148231800413571e932a7248967b1866d40a0be4b8265f2a9c6c21c600d3b2254c36e64ce7851171ff7c439a17306a84981
+DIST rocksdb-7.9.2.tar.gz 12058713 BLAKE2B 76a840565fccdc800eaad055da7698f7a5fc6e217187e078d60420c61cde1236c427cc4ae7d557c69ee5c358cd1ebc7fc4ed52063c04965fcc2c3c35774e9f59 SHA512 9cf2a359cedb21ca70fc921e54f19c406fd9aa2a739ad1627842fad2dec0e7dedbfe52aa8e85fbfbe7005c00ca1e7e7013f728d4d9938f3cebdf794504b431cb
EBUILD rocksdb-6.14.6-r1.ebuild 1173 BLAKE2B c620620fbd584890c23fb80984b0fcabb04da9c202b6ce1f48b27e00f7b441b775c97682d6a729e384c619a4ad55813d79fb33835c64a7cf030aa9ca66262d8e SHA512 1715fcf299acf7e5cf95d8d9287b2ee3902c75da131a15777656dd8f8fffb565b4c6843c386a80d5f194dd99f2a1a2c419f82411334b81126fb81fcea3361891
EBUILD rocksdb-6.15.5.ebuild 1165 BLAKE2B 84e438b8cd56f29ba7d6b4d47117ec0931c8da2c412a1ed3536b3345972f74fe6e6d6827adb2216040f9df6c8b00541058f3aedd755eedf8a384d2f2121e4a05 SHA512 8c2da7ef9a842834d92eb870e4473aba73867e216cd532abfd96b1c17eb078d1152fbb07a04d18b3ec5c9e8e2c5b5c8e21ff240ef9dd3c25cecb82247433b0a2
EBUILD rocksdb-6.17.3.ebuild 1226 BLAKE2B a4a7dba717e80d47482f6bbd3a5721b63b300effc061edb58ef9991f81c3d6c90ad06ecc1f8a3343a27c342525cc7ee8aac613388509be9af461c795cac573ea SHA512 bd741ba0fc0b4978d455b658409e297d07317fb16aa4b6406e107f189331f097d28ca3300d2a20990993be0741b376563b0eb604f23ecac75bc6019938a599f6
-MISC metadata.xml 250 BLAKE2B 0b272f56e53b7d76c6d5c253fbe5d7c4c9a1d7b58c21e2f59b8323a5f5cd2791c64651fdfa243a8f560ac9c0a0ff38fcffdc24290fa6d18100da0cadffc19845 SHA512 076f0dbffbab6987cfab48a5ff3631789190c570c35515cc77de5757760f19a8ad615f642e7d61b12344ffc77c599e6ff8b79b67329e69929fdd19a7c80723ff
+EBUILD rocksdb-7.9.2.ebuild 1281 BLAKE2B 9a20ffd08e4d3f913e6a7fad9e52ab99335823bf41495d8af1dd2e96bc2f790c10c40265d80a36fd48ac07891cf6913f3d65a5981985d0a59cae1a94a44c5f0b SHA512 2923cf5b5350ff5af1e651370b65611f6d4e0f7bbce9aaf64faa921a0cafe6b2bca88cadb49acd0d414354f9a9d7a92b2e596a92cca8e663ee81943ba305bd79
+MISC metadata.xml 331 BLAKE2B 87d08d645ae5c6ba7c56a6539e4aad829b270c0b0399eb7742ee9939601f36701577f876a1e42437a5142391c474e19d9601034c8d660dc3b6b886b67196da1a SHA512 871ec4229514f866d483a6ca78c8d101b154a18b2e779f13626c676260a6852013a72587961e6c89cea7a85ce3c0f151a61051974c59bd4cdd60fbf1e08c1384
diff --git a/dev-libs/rocksdb/files/rocksdb-7.9.2-gcc-13.patch b/dev-libs/rocksdb/files/rocksdb-7.9.2-gcc-13.patch
new file mode 100644
index 000000000000..513d0da01c29
--- /dev/null
+++ b/dev-libs/rocksdb/files/rocksdb-7.9.2-gcc-13.patch
@@ -0,0 +1,42 @@
+https://github.com/facebook/rocksdb/commit/88edfbfb5e1cac228f7cc31fbec24bb637fe54b1
+
+From 88edfbfb5e1cac228f7cc31fbec24bb637fe54b1 Mon Sep 17 00:00:00 2001
+From: Heiko Becker <heirecka@exherbo.org>
+Date: Wed, 25 Jan 2023 14:30:32 -0800
+Subject: [PATCH] Fix build with gcc 13 by including <cstdint> (#11118)
+
+Summary:
+Like other versions before, gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Pull Request resolved: https://github.com/facebook/rocksdb/pull/11118
+
+Reviewed By: cbi42
+
+Differential Revision: D42711356
+
+Pulled By: ajkr
+
+fbshipit-source-id: 5ea257b85b7017f40fd8fdbce965336da95c55b2
+--- a/table/block_based/data_block_hash_index.h
++++ b/table/block_based/data_block_hash_index.h
+@@ -5,6 +5,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+ #include <vector>
+
+--- a/util/string_util.h
++++ b/util/string_util.h
+@@ -6,6 +6,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <sstream>
+ #include <string>
+ #include <unordered_map>
+
diff --git a/dev-libs/rocksdb/metadata.xml b/dev-libs/rocksdb/metadata.xml
index bd6443d4a375..fba961702518 100644
--- a/dev-libs/rocksdb/metadata.xml
+++ b/dev-libs/rocksdb/metadata.xml
@@ -5,4 +5,7 @@
<email>chutzpah@gentoo.org</email>
<name>Patrick McLean</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">facebook/rocksdb</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-libs/rocksdb/rocksdb-7.9.2.ebuild b/dev-libs/rocksdb/rocksdb-7.9.2.ebuild
new file mode 100644
index 000000000000..f28536667a0f
--- /dev/null
+++ b/dev-libs/rocksdb/rocksdb-7.9.2.ebuild
@@ -0,0 +1,55 @@
+# 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 static-libs"
+
+DEPEND="
+ app-arch/bzip2:=
+ app-arch/lz4:=
+ app-arch/snappy:=
+ app-arch/zstd:=
+ dev-cpp/gflags:=
+ sys-libs/liburing:=
+ sys-libs/zlib:=
+ jemalloc? ( dev-libs/jemalloc:= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc-13.patch
+)
+
+src_configure() {
+ sed -i -e '/find_program(CCACHE_FOUND ccache)/d' CMakeLists.txt || die
+
+ 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_JEMALLOC=$(usex jemalloc ON OFF)
+ # They're just examples/benchmarks.
+ -DWITH_TESTS=OFF
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ if ! use static-libs; then
+ rm "${ED}"/usr/$(get_libdir)/*.a || die
+ fi
+}