commit:     05f1ec32b757a08781ce81f883ec0873b7ee6d99
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 20 12:11:55 2023 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 13:14:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f1ec32

sci-chemistry/gromacs: Fix compilation with gcc-13

Closes: https://bugs.gentoo.org/915694
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 .../gromacs/files/gromacs-2021-cstdint-include.patch         | 12 ++++++++++++
 sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild               |  1 +
 2 files changed, 13 insertions(+)

diff --git a/sci-chemistry/gromacs/files/gromacs-2021-cstdint-include.patch 
b/sci-chemistry/gromacs/files/gromacs-2021-cstdint-include.patch
new file mode 100644
index 000000000000..5952aa3dd8e8
--- /dev/null
+++ b/sci-chemistry/gromacs/files/gromacs-2021-cstdint-include.patch
@@ -0,0 +1,12 @@
+# https://bugs.gentoo.org/915694
+# Not needed for newer branches, that greatly refactored the code
+--- a/src/gromacs/utility/flags.h~     2023-01-31 12:45:46.000000000 +0100
++++ b/src/gromacs/utility/flags.h      2023-10-16 10:15:24.087340444 +0200
+@@ -42,7 +42,7 @@
+  */
+ #ifndef GMX_UTILITY_FLAGS_H
+ #define GMX_UTILITY_FLAGS_H
+-
++#include <cstdint>
+ namespace gmx
+ {

diff --git a/sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild 
b/sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild
index f209fdeadb3e..ba32eebe7d85 100644
--- a/sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild
+++ b/sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild
@@ -88,6 +88,7 @@ RESTRICT="!test? ( test )"
 PATCHES=(
        "${FILESDIR}/${PN}-2021-musl-stdint.patch"
        "${FILESDIR}/${PN}-2021-cuda-detection.patch"
+       "${FILESDIR}/${PN}-2021-cstdint-include.patch"
 )
 
 if [[ ${PV} != *9999 ]]; then

Reply via email to