commit:     225b7ee7e532e58f541e30fbb95d4b193b50236f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 12 06:51:57 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 12 06:52:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=225b7ee7

sci-libs/hdf5: workaround build failure with older hdf5 installed

Thanks to upstream for the helpful suggestion!

Bug: https://github.com/HDFGroup/hdf5/issues/1027
Closes: https://bugs.gentoo.org/808633
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hdf5/hdf5-1.12.1-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild 
b/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild
index 9a0d092cd1f..a445755a129 100644
--- a/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild
+++ b/sci-libs/hdf5/hdf5-1.12.1-r1.ebuild
@@ -67,6 +67,10 @@ pkg_setup() {
 
 src_configure() {
        local mycmakeargs=(
+               # Workaround needed to allow build with USE=fortran when an 
older
+               # version is installed. See bug #808633 and
+               # https://github.com/HDFGroup/hdf5/issues/1027 upstream.
+               -DCMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE=ON
                -DBUILD_STATIC_LIBS=OFF
                -DFETCHCONTENT_FULLY_DISCONNECTED=ON
                -DHDF5_BUILD_EXAMPLES=OFF

Reply via email to