mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: petsc: Remove store references on make and gcc.
Reduces closure size from 970 MB to around 700 MB for petsc-openmpi package and also makes `guix pack` packages containing petsc bit-reproducible (by removing make it removes implicit guile dependency). * gnu/packages/maths.scm (petsc)[arguments]: Add patterns in ’clean-local-references’ and ‘clear-reference-to-compiler’. Change-Id: I465c325b152b09befdb746e5bc47fbeaf9a061dc Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
7ec33a1cc3
commit
f129a6cc59
@@ -3422,7 +3422,8 @@ September 2004}")
|
||||
;; Prevent build directory from leaking into compiled code
|
||||
(((getcwd)) out)
|
||||
(("Machine characteristics: Linux-[0-9]+\\.[0-9]+\\.[0-9]+-arch[0-9]+-[0-9]+")
|
||||
"Machine characteristics: Linux-x.x.x-archx-x"))
|
||||
"Machine characteristics: Linux-x.x.x-archx-x")
|
||||
(("([[:graph:]]+)/bin/make") "\"make"))
|
||||
(substitute* (find-files "." "petscvariables")
|
||||
;; Do not expose build machine characteristics, set to defaults.
|
||||
(("MAKE_NP = [[:digit:]]+") "MAKE_NP = 2")
|
||||
@@ -3462,7 +3463,8 @@ September 2004}")
|
||||
(("([[:graph:]]+)/bin/make") "make")
|
||||
(("([[:graph:]]+)/bin/diff") "diff")
|
||||
(("([[:graph:]]+)/bin/sed") "sed")
|
||||
(("([[:graph:]]+)/bin/gfortran") "gfortran")))))
|
||||
(("([[:graph:]]+)/bin/gfortran") "gfortran")
|
||||
(("([[:graph:]]+)/bin/gcov") "gcov")))))
|
||||
|
||||
;; Some of the tests get linked with '-L$prefix/lib -lpetsc' (even
|
||||
;; though that's unnecessary because they also explicitly link
|
||||
|
||||
Reference in New Issue
Block a user