From d26cd7d6784cffff5934855f116a52d89d6384f0 Mon Sep 17 00:00:00 2001 From: Torben Kahnert Date: Mon, 22 Jun 2026 10:44:02 +0200 Subject: [PATCH] dev-libs/hardened_malloc: add gcc16 support Closes: https://bugs.gentoo.org/974723 Signed-off-by: Torben Kahnert --- .../hardened_malloc/files/support-gcc16.patch | 22 +++++++++++++++++++ ...14.ebuild => hardened_malloc-14-r1.ebuild} | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 dev-libs/hardened_malloc/files/support-gcc16.patch rename dev-libs/hardened_malloc/{hardened_malloc-14.ebuild => hardened_malloc-14-r1.ebuild} (92%) diff --git a/dev-libs/hardened_malloc/files/support-gcc16.patch b/dev-libs/hardened_malloc/files/support-gcc16.patch new file mode 100644 index 0000000000..7fa4d54b6e --- /dev/null +++ b/dev-libs/hardened_malloc/files/support-gcc16.patch @@ -0,0 +1,22 @@ +From 04a25bd141efcd2c0d29ef7d868b205a844b3ad2 Mon Sep 17 00:00:00 2001 +From: underscorejoser <259754904+underscorejoser@users.noreply.github.com> +Date: Mon, 9 Mar 2026 03:07:29 -0300 +Subject: [PATCH] Support GCC16 + +--- + new.cc | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/new.cc b/new.cc +index 165e19ee..885ed942 100644 +--- a/new.cc ++++ b/new.cc +@@ -1,5 +1,7 @@ + // needed with libstdc++ but not libc++ +-#if __has_include() ++#if __has_include() ++#include ++#elif __has_include() + #include + #endif + diff --git a/dev-libs/hardened_malloc/hardened_malloc-14.ebuild b/dev-libs/hardened_malloc/hardened_malloc-14-r1.ebuild similarity index 92% rename from dev-libs/hardened_malloc/hardened_malloc-14.ebuild rename to dev-libs/hardened_malloc/hardened_malloc-14-r1.ebuild index 0af5fad95a..eb57bd1fae 100644 --- a/dev-libs/hardened_malloc/hardened_malloc-14.ebuild +++ b/dev-libs/hardened_malloc/hardened_malloc-14-r1.ebuild @@ -11,6 +11,8 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" +PATCHES=("${FILESDIR}/support-gcc16.patch") + src_test() { emake test }