1 |
commit: 3be10d9efadf209bd58dc917671b4584c49824a6 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 16:33:29 2022 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 16:36:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3be10d9e |
7 |
|
8 |
sci-chemistry/gromacs: Fix build for musl |
9 |
|
10 |
Closes: https://bugs.gentoo.org/828673 |
11 |
|
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
14 |
|
15 |
.../gromacs/files/gromacs-2021-musl-stdint.patch | 25 ++++++++++++++++++++++ |
16 |
sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild | 2 ++ |
17 |
sci-chemistry/gromacs/gromacs-2021.5.ebuild | 2 ++ |
18 |
3 files changed, 29 insertions(+) |
19 |
|
20 |
diff --git a/sci-chemistry/gromacs/files/gromacs-2021-musl-stdint.patch b/sci-chemistry/gromacs/files/gromacs-2021-musl-stdint.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..c94fc5598f91 |
23 |
--- /dev/null |
24 |
+++ b/sci-chemistry/gromacs/files/gromacs-2021-musl-stdint.patch |
25 |
@@ -0,0 +1,25 @@ |
26 |
+From 8a38303c52fbca07c850e0c4cd03a783aabf9e49 Mon Sep 17 00:00:00 2001 |
27 |
+From: Paul Bauer <paul.bauer.q@×××××.com> |
28 |
+Date: Mon, 21 Feb 2022 09:53:46 +0100 |
29 |
+Subject: [PATCH] Fix missing includes for musl libc |
30 |
+ |
31 |
+Fixes #4404 |
32 |
+--- |
33 |
+ src/gromacs/math/vectypes.h | 1 + |
34 |
+ 1 file changed, 1 insertion(+) |
35 |
+ |
36 |
+diff --git a/src/gromacs/math/vectypes.h b/src/gromacs/math/vectypes.h |
37 |
+index d4d5211d11..bd9d31de20 100644 |
38 |
+--- a/src/gromacs/math/vectypes.h |
39 |
++++ b/src/gromacs/math/vectypes.h |
40 |
+@@ -40,6 +40,7 @@ |
41 |
+ |
42 |
+ #include <cassert> |
43 |
+ #include <cmath> |
44 |
++#include <cstdint> |
45 |
+ |
46 |
+ #include <algorithm> |
47 |
+ #include <type_traits> |
48 |
+-- |
49 |
+2.35.1 |
50 |
+ |
51 |
|
52 |
diff --git a/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild b/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild |
53 |
index 304523f0caed..9ebdeb01146c 100644 |
54 |
--- a/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild |
55 |
+++ b/sci-chemistry/gromacs/gromacs-2021.3-r1.ebuild |
56 |
@@ -83,6 +83,8 @@ DOCS=( AUTHORS README ) |
57 |
|
58 |
RESTRICT="!test? ( test )" |
59 |
|
60 |
+PATCHES=( "${FILESDIR}/${PN}-2021-musl-stdint.patch" ) |
61 |
+ |
62 |
if [[ ${PV} != *9999 ]]; then |
63 |
S="${WORKDIR}/${PN}-${PV/_/-}" |
64 |
fi |
65 |
|
66 |
diff --git a/sci-chemistry/gromacs/gromacs-2021.5.ebuild b/sci-chemistry/gromacs/gromacs-2021.5.ebuild |
67 |
index d9c7e8a5269e..abf5ed8ec5ef 100644 |
68 |
--- a/sci-chemistry/gromacs/gromacs-2021.5.ebuild |
69 |
+++ b/sci-chemistry/gromacs/gromacs-2021.5.ebuild |
70 |
@@ -83,6 +83,8 @@ DOCS=( AUTHORS README ) |
71 |
|
72 |
RESTRICT="!test? ( test )" |
73 |
|
74 |
+PATCHES=( "${FILESDIR}/${PN}-2021-musl-stdint.patch" ) |
75 |
+ |
76 |
if [[ ${PV} != *9999 ]]; then |
77 |
S="${WORKDIR}/${PN}-${PV/_/-}" |
78 |
fi |