summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-18 11:24:18 +0100
committerSam James <sam@gentoo.org>2023-04-18 11:24:45 +0100
commitf389a74eff56c8d514be52b0e4346d2c0decc44f (patch)
tree827272fac4b938c08a39b1cff87d375883d017eb /dev-libs
parentx11-misc/j4-dmenu-desktop: fix build w/ gcc 13 (diff)
downloadgentoo-f389a74eff56c8d514be52b0e4346d2c0decc44f.tar.gz
gentoo-f389a74eff56c8d514be52b0e4346d2c0decc44f.tar.bz2
gentoo-f389a74eff56c8d514be52b0e4346d2c0decc44f.zip
dev-libs/rocksdb: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/895358 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/rocksdb/files/rocksdb-6.14.6-gcc13.patch51
-rw-r--r--dev-libs/rocksdb/rocksdb-6.15.5-r1.ebuild1
-rw-r--r--dev-libs/rocksdb/rocksdb-6.17.3-r1.ebuild1
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/rocksdb/files/rocksdb-6.14.6-gcc13.patch b/dev-libs/rocksdb/files/rocksdb-6.14.6-gcc13.patch
new file mode 100644
index 000000000000..384c241bc2b8
--- /dev/null
+++ b/dev-libs/rocksdb/files/rocksdb-6.14.6-gcc13.patch
@@ -0,0 +1,51 @@
+https://bugs.gentoo.org/895358
+--- a/db/compaction/compaction_iteration_stats.h
++++ b/db/compaction/compaction_iteration_stats.h
+@@ -5,6 +5,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include "rocksdb/rocksdb_namespace.h"
+
+ struct CompactionIterationStats {
+--- a/include/rocksdb/utilities/checkpoint.h
++++ b/include/rocksdb/utilities/checkpoint.h
+@@ -8,6 +8,7 @@
+ #pragma once
+ #ifndef ROCKSDB_LITE
+
++#include <cstdint>
+ #include <string>
+ #include <vector>
+ #include "rocksdb/status.h"
+--- 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/third-party/folly/folly/synchronization/detail/ProxyLockable-inl.h
++++ b/third-party/folly/folly/synchronization/detail/ProxyLockable-inl.h
+@@ -13,6 +13,7 @@
+ #include <memory>
+ #include <mutex>
+ #include <stdexcept>
++#include <system_error>
+ #include <utility>
+
+ namespace folly {
+--- 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/rocksdb-6.15.5-r1.ebuild b/dev-libs/rocksdb/rocksdb-6.15.5-r1.ebuild
index e5d045110946..65bcab9dd9d0 100644
--- a/dev-libs/rocksdb/rocksdb-6.15.5-r1.ebuild
+++ b/dev-libs/rocksdb/rocksdb-6.15.5-r1.ebuild
@@ -26,6 +26,7 @@ DEPEND="
RDEPEND="${DEPEND}"
PATCHES=(
+ "${FILESDIR}"/${PN}-6.14.6-gcc13.patch
"${FILESDIR}"/${PN}-6.17.3-libatomic.patch
)
diff --git a/dev-libs/rocksdb/rocksdb-6.17.3-r1.ebuild b/dev-libs/rocksdb/rocksdb-6.17.3-r1.ebuild
index 06b33de81b92..86a2c6f594ad 100644
--- a/dev-libs/rocksdb/rocksdb-6.17.3-r1.ebuild
+++ b/dev-libs/rocksdb/rocksdb-6.17.3-r1.ebuild
@@ -26,6 +26,7 @@ DEPEND="
RDEPEND="${DEPEND}"
PATCHES=(
+ "${FILESDIR}"/${PN}-6.14.6-gcc13.patch
"${FILESDIR}"/${PN}-6.17.3-add_timer_for_riscv.patch
"${FILESDIR}"/${PN}-6.17.3-libatomic.patch
)