From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKiYC-00063Y-Dl for guix-patches@gnu.org; Fri, 01 Dec 2017 05:28:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKiY8-0008SW-E0 for guix-patches@gnu.org; Fri, 01 Dec 2017 05:28:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKiY8-0008SP-9W for guix-patches@gnu.org; Fri, 01 Dec 2017 05:28:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eKiY8-0000Ys-2L for guix-patches@gnu.org; Fri, 01 Dec 2017 05:28:04 -0500 Subject: bug#28593: [PATCH] gnu: openfoam: Clean up to reduce closure. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170925104459.17798-1-fx@gnu.org> <87fubbj5yr.fsf@gnu.org> <1506426036.2423.32.camel@tourbillion-technology.com> <873779hdci.fsf@gnu.org> <87o9piit59.fsf@gnu.org> <1507547167.17241.18.camel@tourbillion-technology.com> <874lqrjh0y.fsf@albion.it.manchester.ac.uk> Date: Fri, 01 Dec 2017 11:27:57 +0100 In-Reply-To: <874lqrjh0y.fsf@albion.it.manchester.ac.uk> (Dave Love's message of "Sun, 22 Oct 2017 17:15:09 +0100") Message-ID: <87374uivyq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Dave Love Cc: 28593-done@debbugs.gnu.org, Paul Garlick --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dave Love skribis: >>>From dc88db3e91c70da5e6e557ed5fdd528499cb1c65 Mon Sep 17 00:00:00 2001 > From: Dave Love > 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. I removed the FIXME as suggested by Paul, made the changes below, and committed. Thank you, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 3e65d1687..a5b661e34 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -84,8 +84,6 @@ `(("gzip" ,gzip) ("gnuplot" ,gnuplot) ("openmpi" ,openmpi))) - ;; FIXME: Also separate tutorials (80MB) and src (60MB); maybe also doc - ;; (8MB) (outputs '("debug" ;~60MB "out")) (arguments @@ -176,14 +174,14 @@ "lockDir=$HOME/.$WM_PROJECT/.wmake\n")) #t)) (add-after 'build 'cleanup - ;; Avoid unncessary, voluminous object and dep files + ;; 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")))) + (for-each delete-file (find-files "." "\\.o$")) + #t)) (replace 'install (lambda _ ;; use 'OpenFOAM-version' convention --=-=-=--