Created attachment 584972 [details, diff] Fix HDF5 includes by forcing HDF5_INCLUDE_DIRS. Caution: also sets DETECT_HDF5, which is not strictly necessary for the problem at hand. When emerging with hdf5 support, use of armadillo will result in failed compiler calls with: fatal error: NOTFOUND/hdf5.h: No such file or directory It looks like HDF5 detection is broken. (Especially for the C-only component?) The armadillo ebuild is overwriting the corresponding HDF5 variables, i.e., -DHDF5_FOUND=ON and-DHDF5_LIBRARIES="-lhdf5". But HDF5_INCLUDE_DIRS is not set. Setting HDF5_INCLUDE_DIRS=/usr/include fixes this. Caution: The attached patch is also setting DETECT_HDF5, which is probably not necessary, but it seems a possibility to turn detection off completely, when not using HDF5.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2dab37206f6a0b4f10c4386694166441831b784 commit b2dab37206f6a0b4f10c4386694166441831b784 Author: Andreas K. Huettel <dilfridge@gentoo.org> AuthorDate: 2020-02-22 20:12:34 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-02-22 20:12:34 +0000 sci-libs/armadillo: Version bump; fix HDF5 detection Patch by Jan-Matthias Braun Closes: https://bugs.gentoo.org/690986 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org> sci-libs/armadillo/Manifest | 1 + sci-libs/armadillo/armadillo-9.850.1.ebuild | 148 ++++++++++++++++++++++++++++ 2 files changed, 149 insertions(+)
Thanks a lot!