GNU bug report logs -
#67822
[PATCH] gnu: maths: petsc: Reduce closure size.
Previous Next
Reported by: Lars Bilke <lars.bilke <at> ufz.de>
Date: Thu, 14 Dec 2023 12:57:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Lars,
Lars Bilke <lars.bilke <at> ufz.de> skribis:
> Reduces closure size by around 350 MB by removing refernces to build dependencies (e.g. gcc).
Woow, nice!
> + (add-after 'clean-install 'clear-reference-to-compiler
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + ;; Do not retain a reference to GCC and other build only inputs.
> + (let ((out (assoc-ref outputs "out")))
> + (substitute* (string-append out "/lib/petsc/conf/petscvariables")
> + (("/gnu/store/.*/bin/gcc") "gcc")
> + (("/gnu/store/.*/bin/g\\+\\+") "g++")
> + (("/gnu/store/.*/bin/make") "make")
> + (("/gnu/store/.*/bin/diff") "diff")
> + (("/gnu/store/.*/bin/sed") "sed")
Can we instead patch the thing that creates ‘petscvariables’ in the
first place?
The reason I’m suggesting it is because in general we avoid hardcoding
/gnu/store in substitution patterns because it’s possible to configure
Guix with a different store directory.
Thanks, and apologies for the delay!
Ludo’.
This bug report was last modified 1 year and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.