From: Dave Love <fx@gnu.org>
To: Paul Garlick <pgarlick@tourbillion-technology.com>
Cc: 28593@debbugs.gnu.org
Subject: [bug#28593] [PATCH] gnu: openfoam: Clean up to reduce closure.
Date: Sun, 22 Oct 2017 17:15:09 +0100 [thread overview]
Message-ID: <874lqrjh0y.fsf@albion.it.manchester.ac.uk> (raw)
In-Reply-To: <1507547167.17241.18.camel@tourbillion-technology.com> (Paul Garlick's message of "Mon, 9 Oct 2017 12:06:07 +0100")
[-- Attachment #1: Type: text/plain, Size: 898 bytes --]
Paul Garlick <pgarlick@tourbillion-technology.com> writes:
> ii) deleting object files, to save disk space, under
> 'platforms/linux64GccDPInt32Opt/src' should also be fine, with the
> proviso that the re-compilation process should be checked before
> committing. There is an example procedure, albeit for an earlier
> version, given at https://openfoamwiki.net/index.php/How_to_add_tempera
> ture_to_icoFoam . A slightly modified procedure should work for
> version 4.1.
>
> Dave, can you try this on your patched version? 'wmake' should re-
> generate the object files that are needed and produce a new executable.
> Check that there are no instances of errors such as 'file not found'
I successfully rebuilt pisoFoam following the example in the current
documentation. Is that good enough?
Here's a modified patch to change the comment and avoid an empty
directory.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-openfoam-Clean-up-to-reduce-closure.patch --]
[-- Type: text/x-diff, Size: 1747 bytes --]
From dc88db3e91c70da5e6e557ed5fdd528499cb1c65 Mon Sep 17 00:00:00 2001
From: Dave Love <fx@gnu.org>
Date: Sat, 21 Oct 2017 17:20:42 +0100
Subject: [PATCH] gnu: openfoam: Clean up to reduce closure.
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..3e65d1687 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 unncessary, voluminous object and dep files
+ (lambda _
+ (delete-file-recursively
+ "platforms/linux64GccDPInt32Opt/src")
+ (delete-file-recursively
+ "platforms/linux64GccDPInt32OptSYSTEMOPENMPI")
+ (zero?
+ (system* "find" "-name" "*.o" "-delete"))))
(replace 'install
(lambda _
;; use 'OpenFOAM-version' convention
--
2.11.0
next prev parent reply other threads:[~2017-10-22 16:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lqrjh0y.fsf@albion.it.manchester.ac.uk \
--to=fx@gnu.org \
--cc=28593@debbugs.gnu.org \
--cc=pgarlick@tourbillion-technology.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.