unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28593] [PATCH] gnu: openfoam: Clean up to reduce closure.
@ 2017-09-25 10:44 Dave Love
  2017-09-25 12:52 ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Dave Love @ 2017-09-25 10:44 UTC (permalink / raw)
  To: 28593; +Cc: Dave Love

This saves ~1GB.

* gnu/packages/simulation.scm (openfoam)[outputs]: Add debug.
[arguments]: Clean up .o and src after build.
---
 gnu/packages/simulation.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index de07b6844..fef80a1ac 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -84,6 +84,10 @@
      `(("gzip" ,gzip)
        ("gnuplot" ,gnuplot)
        ("openmpi" ,openmpi)))
+    ;; FIXME: Also separate tutorials (80MB) and src (60MB); maybe also doc
+    ;; (8MB)
+    (outputs '("debug"                  ;~60MB
+               "out"))
     (arguments
      `( ;; Executable files and shared libraries are located in the 'platforms'
        ;; subdirectory.
@@ -171,6 +175,15 @@
                         (("lockDir=.*$")
                          "lockDir=$HOME/.$WM_PROJECT/.wmake\n"))
                       #t))
+                  (add-after 'build 'cleanup
+                    ;; Avoid lots of junk installed
+                    (lambda _
+                      (delete-file-recursively
+                       "platforms/linux64GccDPInt32Opt/src")
+                      (delete-file-recursively
+                       "platforms/linux64GccDPInt32OptSYSTEMOPENMPI/src")
+                      (zero?
+                       (system* "find" "-name" "*.o" "-delete"))))
                   (replace 'install
                     (lambda _
                       ;; use 'OpenFOAM-version' convention
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-12-01 10:28 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-25 10:44 [bug#28593] [PATCH] gnu: openfoam: Clean up to reduce closure Dave Love
2017-09-25 12:52 ` Ludovic Courtès
2017-09-26 11:40   ` Paul Garlick
2017-09-26 12:08     ` Ludovic Courtès
2017-09-27 21:30       ` Dave Love
2017-09-28  8:36         ` Ludovic Courtès
2017-10-02 20:41           ` Dave Love
2017-10-03 12:33             ` Ludovic Courtès
2017-10-07 20:45       ` Ludovic Courtès
2017-10-09 11:06         ` Paul Garlick
2017-10-19 11:06           ` Dave Love
2017-10-19 12:15             ` Ludovic Courtès
2017-10-20 10:32               ` Paul Garlick
2017-10-20 11:28                 ` Ludovic Courtès
2017-10-20 15:28                   ` Dave Love
2017-10-20 15:26                 ` Dave Love
2017-10-22 16:15           ` Dave Love
2017-10-23 15:00             ` Paul Garlick
2017-12-01 10:27             ` bug#28593: " Ludovic Courtès
2017-09-27 21:25     ` [bug#28593] " Dave Love

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).