summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-10-20 14:11:55 +0200
committerPacho Ramos <pacho@gentoo.org>2023-10-20 15:14:37 +0200
commit05f1ec32b757a08781ce81f883ec0873b7ee6d99 (patch)
treec2203f9510f7e2dd87fb17d2f6281713bf35eed8 /sci-chemistry/gromacs
parentx11-themes/QGnomePlatform: Set variable only on GNOME (diff)
downloadgentoo-05f1ec32b757a08781ce81f883ec0873b7ee6d99.tar.gz
gentoo-05f1ec32b757a08781ce81f883ec0873b7ee6d99.tar.bz2
gentoo-05f1ec32b757a08781ce81f883ec0873b7ee6d99.zip
sci-chemistry/gromacs: Fix compilation with gcc-13
Closes: https://bugs.gentoo.org/915694 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sci-chemistry/gromacs')
-rw-r--r--sci-chemistry/gromacs/files/gromacs-2021-cstdint-include.patch12
-rw-r--r--sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild1
2 files changed, 13 insertions, 0 deletions
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