Subject: bug#78279: closed (Re: [bug#78279] [PATCH] gnu: hdf5-parallel-openmpi: Add Fortran support.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 08 May 2025 09:57:02 +0000

Your bug report

#78279: [PATCH] gnu: hdf5-parallel-openmpi: Add Fortran support.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78279: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78279
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#78279] [PATCH] gnu: hdf5-parallel-openmpi: Add Fortran support.
From: Andreas Enge <[email-masked]>
To: Romain GARBAGE <[email-masked]>
Cc: Sharlatan Hellseher <[email-masked]>, [email-masked], Eric Bavier <[email-masked]>
Date: Thu, 8 May 2025 11:56:34 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks for the patch!

I am seeing problems with the depending package dealii-openmpi, but
this seems to be due to an unrelated build failure in scalapack, which
also fails in master. Maybe something you would like to look at next :)

Pushed to master.

Andreas

Subject: [PATCH] gnu: hdf5-parallel-openmpi: Add Fortran support.
From: Romain GARBAGE <[email-masked]>
To: [email-masked]
Cc: [email-masked], Romain GARBAGE <[email-masked]>
Date: Tue, 6 May 2025 14:42:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Fortran support was removed by commit 8eeb04e205a, but was present before.

* gnu/packages/maths.scm (hdf5-parallel-openmpi) [arguments]: Add Fortran
support. Switch to G-exps. Fix path for CMake files as done by parent hdf5
package.

Change-Id: I1d7c8adea6e8cadc4d8a16d8313f65388ead009d
---
 gnu/packages/maths.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index eb23a375b4..b873cf2c5d 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2193,8 +2193,11 @@ (define-public hdf5-parallel-openmpi
     (arguments
      (substitute-keyword-arguments (package-arguments hdf5)
        ((#:configure-flags _ #f)
-        ''("-DHDF5_ENABLE_THREADSAFE=OFF"
+        #~(list
+           (string-append "-DHDF5_INSTALL_CMAKE_DIR=" #$output "/lib/cmake")
+           "-DHDF5_ENABLE_THREADSAFE=OFF"
            "-DHDF5_ENABLE_PARALLEL=ON"
+           "-DHDF5_BUILD_FORTRAN=ON"
            "-DHDF5_BUILD_CPP_LIB=OFF"
            "-DHDF5_BUILD_DOC=ON"))
        ((#:phases phases)

base-commit: a824edd45e8dca9377ff38284d4df5dbcd3be6c3
-- 
2.49.0