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 0000000000000..5952aa3dd8e87 --- /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 + namespace gmx + { diff --git a/sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild b/sci-chemistry/gromacs/gromacs-2021.7-r1.ebuild index f209fdeadb3ea..ba32eebe7d85f 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