From a74848a0bc3eeb4dad1ccfcbb3c299a2ca815e09 Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Thu, 15 May 2025 07:12:03 +0000 Subject: [PATCH] dev-db/duckdb: Fix build with gcc15 Closes: https://bugs.gentoo.org/949694 Signed-off-by: Patrick Lauer --- .../{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(+) rename dev-db/duckdb/{duckdb-1.2.2.ebuild => duckdb-1.2.2-r1.ebuild} (81%) create mode 100644 dev-db/duckdb/files/thrift-cstdint.patch 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 d1cdf950958fa..e98b466b9339d 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 0000000000000..af47df814445a --- /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 + #include ++#include + + namespace duckdb_apache { + namespace thrift {