From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqHX3-0004WG-OP for guix-patches@gnu.org; Fri, 08 Sep 2017 07:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqHWw-0006YK-7l for guix-patches@gnu.org; Fri, 08 Sep 2017 07:33:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqHWw-0006Y1-3W for guix-patches@gnu.org; Fri, 08 Sep 2017 07:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dqHWv-0007tV-Sp for guix-patches@gnu.org; Fri, 08 Sep 2017 07:33:01 -0400 Subject: [bug#28045] [PATCH] gnu: Add openfoam Resent-Message-ID: Message-ID: <1504870325.2630.39.camel@tourbillion-technology.com> From: Paul Garlick Date: Fri, 08 Sep 2017 12:32:05 +0100 In-Reply-To: <87y3ppk39y.fsf@gnu.org> References: <1504105724.3260.10.camel@tourbillion-technology.com> <20170906212801.4311-1-pgarlick@tourbillion-technology.com> <87r2viwwkp.fsf@gnu.org> <1504818378.3116.38.camel@tourbillion-technology.com> <87y3ppk39y.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 28045@debbugs.gnu.org Hi Ludo, > Does it address the use case you have in mind? Yes, I think that both the multiple-profile solution and the 'ad-hoc' environment will work for Guix/OpenFOAM.   The traditional method of installing multiple OpenFOAM versions is to install to a common $FOAM_INST_DIR directory.  However, as you point out, this is not strictly necessary and does not provide any advantage in the Guix system. So, continuing the 'middle road' line of thought, the 'install-dir' variable would be modified to add a '/lib' element: -                                %output "/OpenFOAM-" ,version))) +                                %output "/OpenFOAM-" ,version "/lib"))) You suggest adding a link between bin and lib/OpenFOAM- 4.1/platforms/linux64GccDPInt32Opt/bin.  What would be the best way to add this to the package definition?   There could also be a link between lib and lib/OpenFOAM- 4.1/platforms/linux64GccDPInt32Opt/lib. The links would allow the runpaths to be validated.  So;  -       #:validate-runpath? #f ; '#:elf-directories' is not recognised here The FOAM_INST_DIR variable would need to be updated: -            (files '(".")))))  +          (files '("./lib"))))) WDYT? Paul.