1 |
commit: e62617ffb1b60e2a916b7a92659df2606374d62a |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 16:19:40 2022 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 16:20:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e62617ff |
7 |
|
8 |
sci-chemistry/gromacs: Fix musl build (missing int64_t) for 2022 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/833599 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
13 |
|
14 |
.../gromacs/files/gromacs-2022-musl-stdint.patch | 25 ++++++++++++++++++++++ |
15 |
...22_rc1-r1.ebuild => gromacs-2022_rc1-r2.ebuild} | 2 ++ |
16 |
2 files changed, 27 insertions(+) |
17 |
|
18 |
diff --git a/sci-chemistry/gromacs/files/gromacs-2022-musl-stdint.patch b/sci-chemistry/gromacs/files/gromacs-2022-musl-stdint.patch |
19 |
new file mode 100644 |
20 |
index 000000000000..cae6fff93ae3 |
21 |
--- /dev/null |
22 |
+++ b/sci-chemistry/gromacs/files/gromacs-2022-musl-stdint.patch |
23 |
@@ -0,0 +1,25 @@ |
24 |
+From 694994a9d8ad989e7c5d61b7759024a7b10ce3b7 Mon Sep 17 00:00:00 2001 |
25 |
+From: Paul Bauer <paul.bauer.q@×××××.com> |
26 |
+Date: Mon, 21 Feb 2022 09:53:46 +0100 |
27 |
+Subject: [PATCH 1/6] Fix missing includes for musl libc |
28 |
+ |
29 |
+Fixes #4404 |
30 |
+--- |
31 |
+ api/legacy/include/gromacs/math/vectypes.h | 1 + |
32 |
+ 1 file changed, 1 insertion(+) |
33 |
+ |
34 |
+diff --git a/api/legacy/include/gromacs/math/vectypes.h b/api/legacy/include/gromacs/math/vectypes.h |
35 |
+index b818f5f8f8..7c5457e05d 100644 |
36 |
+--- a/api/legacy/include/gromacs/math/vectypes.h |
37 |
++++ b/api/legacy/include/gromacs/math/vectypes.h |
38 |
+@@ -36,6 +36,7 @@ |
39 |
+ |
40 |
+ #include <cassert> |
41 |
+ #include <cmath> |
42 |
++#include <cstdint> |
43 |
+ |
44 |
+ #include <algorithm> |
45 |
+ #include <type_traits> |
46 |
+-- |
47 |
+2.35.1 |
48 |
+ |
49 |
|
50 |
diff --git a/sci-chemistry/gromacs/gromacs-2022_rc1-r1.ebuild b/sci-chemistry/gromacs/gromacs-2022_rc1-r2.ebuild |
51 |
similarity index 99% |
52 |
rename from sci-chemistry/gromacs/gromacs-2022_rc1-r1.ebuild |
53 |
rename to sci-chemistry/gromacs/gromacs-2022_rc1-r2.ebuild |
54 |
index f12ac52a719f..b0d42eda5cb0 100644 |
55 |
--- a/sci-chemistry/gromacs/gromacs-2022_rc1-r1.ebuild |
56 |
+++ b/sci-chemistry/gromacs/gromacs-2022_rc1-r2.ebuild |
57 |
@@ -82,6 +82,8 @@ DOCS=( AUTHORS README ) |
58 |
|
59 |
RESTRICT="!test? ( test )" |
60 |
|
61 |
+PATCHES=( "${FILESDIR}/${PN}-2022-musl-stdint.patch" ) |
62 |
+ |
63 |
if [[ ${PV} != *9999 ]]; then |
64 |
S="${WORKDIR}/${PN}-${PV/_/-}" |
65 |
fi |