Noticed while testing (a new) hdf5 CMake port: CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:441 (message): The package name passed to `find_package_handle_standard_args` (PkgConfig) does not match the name of the calling package (HDF5). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/share/cmake/Modules/FindPkgConfig.cmake:114 (find_package_handle_standard_args) cmake/modules/FindHDF5.cmake:20 (include) CMakeLists.txt:160 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Not found: HDF5. -- If HDF5 is installed outside the CMake search path, -- set the environmental variable HDF5_DIR to the -- HDF5 install prefix. If I remove cmake/modules/FindHDF5.cmake, it successfully builds using upstream HDF5 CMake files (but I suspect it won't work with autotools, haven't tested).
That said, in both cases it definitely passes `-lhdf5` at build time, but it gets stripped by as-needed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d3a60bd4f4bd03d8c8d123e9dbf01e12cb9480a commit 1d3a60bd4f4bd03d8c8d123e9dbf01e12cb9480a Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2025-04-23 17:43:27 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2025-04-23 17:50:19 +0000 sci-visualization/kst: Use upstream FindHDF5.cmake module And make some minor adjustments so it actually gets picked up. Closes: https://bugs.gentoo.org/954233 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/kst-2.1.0_p20250415-cmake-findgsl.patch | 92 +++------------------- .../files/kst-2.1.0_p20250415-cmake-findhdf5.patch | 43 ++++++++++ .../kst/kst-2.1.0_p20250415-r1.ebuild | 84 ++++++++++++++++++++ 3 files changed, 137 insertions(+), 82 deletions(-)