From 3c7325b0264997fd7d8123f308b2fd2bc0c7dfc3 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Mon, 28 Apr 2025 16:34:29 +0300 Subject: [PATCH] sci-libs/libint: gcc-15 implicit include Bug: https://bugs.gentoo.org/939020 Signed-off-by: Alfred Wingate Part-of: https://github.com/gentoo/gentoo/pull/41836 Signed-off-by: Sam James --- .../files/libint-2.9.0-gcc15-include.patch | 28 +++++++++++++++++++ sci-libs/libint/libint-2.9.0.ebuild | 6 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 sci-libs/libint/files/libint-2.9.0-gcc15-include.patch diff --git a/sci-libs/libint/files/libint-2.9.0-gcc15-include.patch b/sci-libs/libint/files/libint-2.9.0-gcc15-include.patch new file mode 100644 index 0000000000000..5c84991fc9d05 --- /dev/null +++ b/sci-libs/libint/files/libint-2.9.0-gcc15-include.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/939020 +https://github.com/evaleev/libint/pull/366 + +From 485aaae9e18e9ad3d0d43f20caf8f054ded9b80b Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Mon, 28 Apr 2025 16:28:23 +0300 +Subject: [PATCH] Include implicit cstdint + +Gcc-15 and unreleased clang-21 don't implicitly include it anymore for +intptr_t. + +https://gcc.gnu.org/gcc-15/porting_to.html#header-dep-changes + +Bug: https://bugs.gentoo.org/939020 +Signed-off-by: Alfred Wingate +--- a/src/bin/libint/memory.h ++++ b/src/bin/libint/memory.h +@@ -21,6 +21,7 @@ + #include + #include + ++#include + #include + + #ifndef _libint2_src_bin_libint_memory_h_ +-- +2.49.0 + diff --git a/sci-libs/libint/libint-2.9.0.ebuild b/sci-libs/libint/libint-2.9.0.ebuild index 47937a070ce83..6e8b1bb03ecd2 100644 --- a/sci-libs/libint/libint-2.9.0.ebuild +++ b/sci-libs/libint/libint-2.9.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -23,6 +23,10 @@ DEPEND=" ) " +PATCHES=( + "${FILESDIR}"/libint-2.9.0-gcc15-include.patch +) + src_prepare() { default eautoreconf