gnu: petsc: Remove arch version from uname output.

Enables reproducible building on machines with have a different
arch-suffix in uname output, e.g.:

Machine·characteristics:·Linux-x.x.x-arch1-1-x86_64-with-glibc2.39

vs.

Machine·characteristics:·Linux-x.x.x-arch2-1-x86_64-with-glibc2.39

Will become

Machine·characteristics:·Linux-x.x.x-archx-x-x86_64-with-glibc2.39

* gnu/packages/maths.scm (petsc)[arguments]: Adjust machine regexp in
‘clean-local-references’.

Change-Id: Icc37a298c0c2d16e96f2c8eaf5aa4781cc4e5ac4
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Lars Bilke 2024-11-19 15:18:05 +01:00 committed by Ludovic Courtès
parent 0ed38f3d9f
commit 7ec33a1cc3
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3421,8 +3421,8 @@ (define-public petsc
(substitute* (find-files "." "^petsc(conf|machineinfo).h$")
;; Prevent build directory from leaking into compiled code
(((getcwd)) out)
(("Machine characteristics: Linux-[0-9]+\\.[0-9]+\\.[0-9]+")
"Machine characteristics: Linux-x.x.x"))
(("Machine characteristics: Linux-[0-9]+\\.[0-9]+\\.[0-9]+-arch[0-9]+-[0-9]+")
"Machine characteristics: Linux-x.x.x-archx-x"))
(substitute* (find-files "." "petscvariables")
;; Do not expose build machine characteristics, set to defaults.
(("MAKE_NP = [[:digit:]]+") "MAKE_NP = 2")