civodul pushed a commit to branch master
in repository guix.

commit 7c9fcc3e6ee55fdfd35860bd2186eeae90575e3f
Author: Lars Bilke <[email protected]>
AuthorDate: Thu Nov 14 15:49:31 2024 +0100

    gnu: hdf5: Remove machine info from libraries.
    
    * gnu/packages/maths.scm (hdf5-1.14)[arguments]: Add
    ‘patch-configure-build-settings’.
    
    Change-Id: I1435b866babeb95af48e0fd970d931f022c8bc67
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/maths.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index c5b87d8ff6..62b4f63ac9 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1726,7 +1726,14 @@ extremely large and complex data collections.")
                 ;; modifies the test reference.
                 (substitute* "test/test_check_version.sh.in"
                   (("TESTING\\(\\).*" all)
-                   (string-append all "\nSKIP; exit 0\n")))))))))))
+                   (string-append all "\nSKIP; exit 0\n")))))
+            (add-after 'patch-configure 'patch-configure-build-settings
+              (lambda _
+                (substitute* "src/H5build_settings.autotools.c.in"
+                  ;; Don't record the build-time kernel version to make the
+                  ;; library file reproducible.
+                  (("@UNAME_INFO@")
+                   "Linux"))))))))))
 
 (define-public hdf5
   ;; Default version of HDF5.

Reply via email to