gnu: petsc: Make ‘petscvariables’ reproducible.

This is a followup to 31fe177a97.

* gnu/packages/maths.scm (petsc)[arguments]: In
‘clean-local-references’, fix typo in ‘MAKE_NP’ and ‘NPMAX’ regexps.
Substitute ‘MAKE_TEST_NP’ and ‘MAKE_LOAD’ as well.

Change-Id: I41b4279a3cdc4b077fab21f0f99273d0d50ed8e1
This commit is contained in:
Ludovic Courtès 2024-08-29 15:45:30 +02:00
parent 0b6586a223
commit 8d5d66887e
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3589,8 +3589,10 @@ (define-public petsc
"Machine characteristics: Linux-x.x.x"))
(substitute* (find-files "." "petscvariables")
;; Do not expose build machine characteristics, set to defaults.
(("MAKE_NP = [:digit:]+") "MAKE_NP = 2")
(("NPMAX = [:digit:]+") "NPMAX = 2")))))
(("MAKE_NP = [[:digit:]]+") "MAKE_NP = 2")
(("MAKE_TEST_NP = [[:digit:]]+") "MAKE_TEST_NP = 2")
(("MAKE_LOAD = .*") "MAKE_LOAD = 256.0\n")
(("NPMAX = [[:digit:]]+") "NPMAX = 2")))))
(add-after 'install 'clean-install
;; Try to keep installed files from leaking build directory names.
(lambda* (#:key inputs outputs #:allow-other-keys)