commit:     350a29229a4f46312a027e90b35f0a023432ad30
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 18 06:14:36 2023 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Jun 18 06:15:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=350a2922

sci-libs/trilinos: fix compilation with gcc 13

Closes: https://bugs.gentoo.org/900677
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 .../trilinos-14.0.0-missing_includes_gcc_13.patch  | 24 ++++++++++++++++++++++
 sci-libs/trilinos/trilinos-14.0.0.ebuild           |  1 +
 2 files changed, 25 insertions(+)

diff --git 
a/sci-libs/trilinos/files/trilinos-14.0.0-missing_includes_gcc_13.patch 
b/sci-libs/trilinos/files/trilinos-14.0.0-missing_includes_gcc_13.patch
new file mode 100644
index 000000000000..ee9836d84249
--- /dev/null
+++ b/sci-libs/trilinos/files/trilinos-14.0.0-missing_includes_gcc_13.patch
@@ -0,0 +1,24 @@
+diff --git a/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp 
b/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp
+index e82e8be9..b41b0d03 100644
+--- a/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp
++++ b/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp
+@@ -43,6 +43,7 @@
+ #define TEUCHOS_BIG_UINT_DECL_HPP
+ 
+ #include <iosfwd>
++#include <cstdint>
+ 
+ /*! \file Teuchos_BigUIntDecl.hpp
+     \brief Arbitrary-precision unsigned integer declaration.
+diff --git a/packages/teuchos/core/src/Teuchos_PrintDouble.hpp 
b/packages/teuchos/core/src/Teuchos_PrintDouble.hpp
+index cf2fe0f3..7c95b1b5 100644
+--- a/packages/teuchos/core/src/Teuchos_PrintDouble.hpp
++++ b/packages/teuchos/core/src/Teuchos_PrintDouble.hpp
+@@ -43,6 +43,7 @@
+ #define TEUCHOS_PRINT_DOUBLE_HPP
+ 
+ #include <iosfwd>
++#include <cstdint>
+ 
+ /*! \file Teuchos_PrintDouble.hpp
+     \brief Declares Teuchos::print_double

diff --git a/sci-libs/trilinos/trilinos-14.0.0.ebuild 
b/sci-libs/trilinos/trilinos-14.0.0.ebuild
index 4ba10c76e0d2..9c6599250eda 100644
--- a/sci-libs/trilinos/trilinos-14.0.0.ebuild
+++ b/sci-libs/trilinos/trilinos-14.0.0.ebuild
@@ -65,6 +65,7 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/Trilinos-${PN}-release-${MY_PV}"
 
 PATCHES=(
+       "${FILESDIR}"/${P}-missing_includes_gcc_13.patch
 )
 
 pkg_pretend() {

Reply via email to