commit: 3be10d9efadf209bd58dc917671b4584c49824a6 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> AuthorDate: Mon Feb 21 16:33:29 2022 +0000 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> CommitDate: Mon Feb 21 16:36:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3be10d9e
sci-chemistry/gromacs: Fix build for musl Closes: https://bugs.gentoo.org/828673 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> .../gromacs/files/gromacs-2021-musl-stdint.patch | 25 ++++++++++++++++++++++ sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild | 2 ++ sci-chemistry/gromacs/gromacs-2021.5.ebuild | 2 ++ 3 files changed, 29 insertions(+) diff --git a/sci-chemistry/gromacs/files/gromacs-2021-musl-stdint.patch b/sci-chemistry/gromacs/files/gromacs-2021-musl-stdint.patch new file mode 100644 index 000000000000..c94fc5598f91 --- /dev/null +++ b/sci-chemistry/gromacs/files/gromacs-2021-musl-stdint.patch @@ -0,0 +1,25 @@ +From 8a38303c52fbca07c850e0c4cd03a783aabf9e49 Mon Sep 17 00:00:00 2001 +From: Paul Bauer <[email protected]> +Date: Mon, 21 Feb 2022 09:53:46 +0100 +Subject: [PATCH] Fix missing includes for musl libc + +Fixes #4404 +--- + src/gromacs/math/vectypes.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/gromacs/math/vectypes.h b/src/gromacs/math/vectypes.h +index d4d5211d11..bd9d31de20 100644 +--- a/src/gromacs/math/vectypes.h ++++ b/src/gromacs/math/vectypes.h +@@ -40,6 +40,7 @@ + + #include <cassert> + #include <cmath> ++#include <cstdint> + + #include <algorithm> + #include <type_traits> +-- +2.35.1 + diff --git a/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild b/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild index 304523f0caed..9ebdeb01146c 100644 --- a/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild +++ b/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild @@ -83,6 +83,8 @@ DOCS=( AUTHORS README ) RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-2021-musl-stdint.patch" ) + if [[ ${PV} != *9999 ]]; then S="${WORKDIR}/${PN}-${PV/_/-}" fi diff --git a/sci-chemistry/gromacs/gromacs-2021.5.ebuild b/sci-chemistry/gromacs/gromacs-2021.5.ebuild index d9c7e8a5269e..abf5ed8ec5ef 100644 --- a/sci-chemistry/gromacs/gromacs-2021.5.ebuild +++ b/sci-chemistry/gromacs/gromacs-2021.5.ebuild @@ -83,6 +83,8 @@ DOCS=( AUTHORS README ) RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-2021-musl-stdint.patch" ) + if [[ ${PV} != *9999 ]]; then S="${WORKDIR}/${PN}-${PV/_/-}" fi
