1 |
commit: 225b7ee7e532e58f541e30fbb95d4b193b50236f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 12 06:51:57 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 12 06:52:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=225b7ee7 |
7 |
|
8 |
sci-libs/hdf5: workaround build failure with older hdf5 installed |
9 |
|
10 |
Thanks to upstream for the helpful suggestion! |
11 |
|
12 |
Bug: https://github.com/HDFGroup/hdf5/issues/1027 |
13 |
Closes: https://bugs.gentoo.org/808633 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
sci-libs/hdf5/hdf5-1.12.1-r1.ebuild | 4 ++++ |
17 |
1 file changed, 4 insertions(+) |
18 |
|
19 |
diff --git a/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild b/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild |
20 |
index 9a0d092cd1f..a445755a129 100644 |
21 |
--- a/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild |
22 |
+++ b/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild |
23 |
@@ -67,6 +67,10 @@ pkg_setup() { |
24 |
|
25 |
src_configure() { |
26 |
local mycmakeargs=( |
27 |
+ # Workaround needed to allow build with USE=fortran when an older |
28 |
+ # version is installed. See bug #808633 and |
29 |
+ # https://github.com/HDFGroup/hdf5/issues/1027 upstream. |
30 |
+ -DCMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE=ON |
31 |
-DBUILD_STATIC_LIBS=OFF |
32 |
-DFETCHCONTENT_FULLY_DISCONNECTED=ON |
33 |
-DHDF5_BUILD_EXAMPLES=OFF |