dev-libs/jemalloc: Fix build failure on GCC 16

The library was calling libstdc++ internal functions.  They moved.

Closes: https://bugs.gentoo.org/967868
Thanks-to: Ted Rodgers <ted.d.rodgers@gmail.com>
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
This commit is contained in:
Arsen Arsenović
2026-02-05 15:30:53 +01:00
parent cd1d24dffb
commit 4b929d70d6
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
https://bugs.gentoo.org/967868
From 5428f5818645a1181a61e37fbe753bf68dbd07af Mon Sep 17 00:00:00 2001
From: Ted Rodgers <ted.d.rodgers@gmail.com>
Date: Mon, 22 Dec 2025 23:16:12 -0500
Subject: [PATCH] Bug 967868: jemalloc_cpp.cpp patch remove compiler internal
detail
---
src/jemalloc_cpp.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jemalloc_cpp.cpp b/src/jemalloc_cpp.cpp
index 451655f..d90a9f5 100644
--- a/src/jemalloc_cpp.cpp
+++ b/src/jemalloc_cpp.cpp
@@ -87,7 +87,7 @@ handleOOM(std::size_t size, bool nothrow) {
}
if (ptr == nullptr && !nothrow)
- std::__throw_bad_alloc();
+ throw std::bad_alloc();
return ptr;
}
--
2.52.0

View File

@@ -19,6 +19,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.3.0-backport-pr-2312.patch"
"${FILESDIR}/${PN}-5.3.0-backport-pr-2338.patch"
"${FILESDIR}/${PN}-5.3.0-aarch64-64kib-page-size.patch" # users can override by passing `--with-lg-pagesize=foo`
"${FILESDIR}/${PN}-5.3.0-dont-call-libstdcxx-internals.patch"
)
MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )