From 225b7ee7e532e58f541e30fbb95d4b193b50236f Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 12 Oct 2021 07:51:57 +0100 Subject: [PATCH] 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 --- 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 9a0d092cd1fa7..a445755a12912 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