From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwQxi-0005K1-7Z for guix-patches@gnu.org; Mon, 25 Sep 2017 06:50:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwQxd-0007Z3-TJ for guix-patches@gnu.org; Mon, 25 Sep 2017 06:50:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwQxd-0007Yz-Pe for guix-patches@gnu.org; Mon, 25 Sep 2017 06:50:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwQxd-0006M3-J6 for guix-patches@gnu.org; Mon, 25 Sep 2017 06:50:01 -0400 Subject: [bug#28593] [PATCH] gnu: openfoam: Clean up to reduce closure. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwQwf-0004ym-SH for guix-patches@gnu.org; Mon, 25 Sep 2017 06:49:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwQwf-00076e-6O for guix-patches@gnu.org; Mon, 25 Sep 2017 06:49:01 -0400 From: Dave Love Date: Mon, 25 Sep 2017 11:44:59 +0100 Message-Id: <20170925104459.17798-1-fx@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28593@debbugs.gnu.org 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