commit:     a74848a0bc3eeb4dad1ccfcbb3c299a2ca815e09
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Thu May 15 07:12:03 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Thu May 15 07:12:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a74848a0

dev-db/duckdb: Fix build with gcc15

Closes: https://bugs.gentoo.org/949694
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-db/duckdb/{duckdb-1.2.2.ebuild => duckdb-1.2.2-r1.ebuild} |  8 ++++++++
 dev-db/duckdb/files/thrift-cstdint.patch                      | 10 ++++++++++
 2 files changed, 18 insertions(+)

diff --git a/dev-db/duckdb/duckdb-1.2.2.ebuild 
b/dev-db/duckdb/duckdb-1.2.2-r1.ebuild
similarity index 81%
rename from dev-db/duckdb/duckdb-1.2.2.ebuild
rename to dev-db/duckdb/duckdb-1.2.2-r1.ebuild
index d1cdf950958f..e98b466b9339 100644
--- a/dev-db/duckdb/duckdb-1.2.2.ebuild
+++ b/dev-db/duckdb/duckdb-1.2.2-r1.ebuild
@@ -17,6 +17,14 @@ KEYWORDS="~amd64"
 
 RESTRICT="test"
 
+src_prepare() {
+       cd third_party/thrift/thrift/transport/
+       eapply "${FILESDIR}/thrift-cstdint.patch"
+       cd ${S}
+       eapply_user
+       cmake_src_prepare
+}
+
 src_configure() {
        mycmakeargs=( "-DINSTALL_LIB_DIR=/usr/$(get_libdir)/"
                "-DOVERRIDE_GIT_DESCRIBE=v${PV}"

diff --git a/dev-db/duckdb/files/thrift-cstdint.patch 
b/dev-db/duckdb/files/thrift-cstdint.patch
new file mode 100644
index 000000000000..af47df814445
--- /dev/null
+++ b/dev-db/duckdb/files/thrift-cstdint.patch
@@ -0,0 +1,10 @@
+--- a/TTransport.h     2025-04-07 09:28:46.000000000 -0000
++++ b/TTransport.h     2025-05-15 07:01:41.119463408 -0000
+@@ -24,6 +24,7 @@
+ #include "thrift/transport/TTransportException.h"
+ #include <memory>
+ #include <string>
++#include <cstdint>
+ 
+ namespace duckdb_apache {
+ namespace thrift {

Reply via email to