From 53b23512ee32b92ae6376ea80e9e1f56aeaf0ce0 Mon Sep 17 00:00:00 2001 From: Jake Forster Date: Thu, 26 Jun 2025 19:47:20 +0930 Subject: [PATCH] gnu: hdf5: Fix paths in hdf5-config.cmake. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: guix/guix#683 Passing an absolute path to -DHDF5_INSTALL_CMAKE_DIR causes the variable @PACKAGE_SHARE_INSTALL_DIR@ in config/install/hdf5-config.cmake.in to expand to a path that includes ${PACKAGE_PREFIX_DIR} twice in the generated hdf5-config.cmake. * gnu/packages/maths.scm (hdf5) [arguments] <#:configure-flags>: Change -DHDF5_INSTALL_CMAKE_DIR from absolute path to relative path. Change-Id: I0c793ad63a4a3d930a560a5094e08f2384f43b38 Signed-off-by: Ludovic Courtès --- gnu/packages/maths.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 4c19bcfded..dbfe662ba5 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1956,7 +1956,7 @@ extremely large and complex data collections.") ;; Some of the users, notably Flann, need the C++ interface. #:configure-flags #~(list - (string-append "-DHDF5_INSTALL_CMAKE_DIR=" #$output "/lib/cmake") + "-DHDF5_INSTALL_CMAKE_DIR=lib/cmake" "-DHDF5_BUILD_CPP_LIB=ON" "-DHDF5_BUILD_FORTRAN=ON" ;; Build a thread-safe library. Unfortunately, CMakeLists.txt