From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wEWkD7fuJGWWJQEAauVa8A:P1 (envelope-from ) for ; Tue, 10 Oct 2023 08:27:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wEWkD7fuJGWWJQEAauVa8A (envelope-from ) for ; Tue, 10 Oct 2023 08:27:03 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7A17638A2D for ; Tue, 10 Oct 2023 08:26:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=housseini.me header.s=solmzk3ljecfoypi3q6x2mqs3bucnhjw header.b=CIdQAcIf; dkim=fail ("headers rsa verify failed") header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=F6Ewccyl; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696919223; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tJWR9e0o3NwGg3ufwtiPoQFY/M+Ke4jkWVy6+kN3hKw=; b=AcaefgcIMH/t0AS2B/tvfgYAnRa/qu4xcLQeWZoT9q8o1ISWEaBtuHO/sikU+wLyXDwV2g QS3t+aboipQ+RGeBt9Ejb3Hp4nO+C4lYW34aEWZJaPd6NTuwMkgUvHoPHceN0yxFVtxS7d Xkql7WAksUn4EIVkOkROGoDnNw2h5apFCChHaZLIz0NBn2UAf1c40zBW4VEUzvJhL7kaoe p66gDNsP3+kg3gx95sTwlT48VVvaKKCLTlqW3ywUqDQZ0nqv7pmKBhE40JcT3kui1ZNmvq sJ7DYGTRTwqjn5CqnL/2N7UbsLroNDf28aUPUmshAO7gaNryzLNKERlYr7WlNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=housseini.me header.s=solmzk3ljecfoypi3q6x2mqs3bucnhjw header.b=CIdQAcIf; dkim=fail ("headers rsa verify failed") header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=F6Ewccyl; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696919223; a=rsa-sha256; cv=none; b=t01d21e1yP4UJTIItUI/T7qEklhgw4+ki9H34AGwPQPW+1w/AyKQaEPl0bTk9BL9fAbB84 nmBR2H5kC0w9lzIsulSVvBC/3//6x/1yggzVCwHJRhgnhGOTdn+5GlQpvMCyDcCnb1CUH8 HcUkwQEcxn2fgieZGw2yA+NIiivz479asvKTBWYH9N+kln2WIxOPPW6I56gASRhOE09Kzw jHX9I4VlrUC1/CFu0pOxOor7vNzxkahBSO1qqT+/xFmpSClMC/9N1SbLaEKhPNo1coieS6 5hiwAIMEX83sFNx5iEbqYjBneGr+0NyOuNh194NTWm/gjfJwID1i93PHjb/UWQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qq6CZ-00024U-DA; Tue, 10 Oct 2023 02:26:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qq6CX-00023i-CF for guix-patches@gnu.org; Tue, 10 Oct 2023 02:26:41 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qq6CX-0002hm-44 for guix-patches@gnu.org; Tue, 10 Oct 2023 02:26:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qq6Cs-00070a-4A for guix-patches@gnu.org; Tue, 10 Oct 2023 02:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66262] [PATCH v3 2/3] gnu: openfoam-org: Update to 11. Resent-From: reza Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Oct 2023 06:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66262 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66262@debbugs.gnu.org <66262@debbugs.gnu.org> Cc: reza Received: via spool by 66262-submit@debbugs.gnu.org id=B66262.169691916626840 (code B ref 66262); Tue, 10 Oct 2023 06:27:02 +0000 Received: (at 66262) by debbugs.gnu.org; 10 Oct 2023 06:26:06 +0000 Received: from localhost ([127.0.0.1]:33848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qq6Bx-0006yl-0h for submit@debbugs.gnu.org; Tue, 10 Oct 2023 02:26:06 -0400 Received: from a5-160.smtp-out.eu-west-1.amazonses.com ([54.240.5.160]:40305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0102018b18430da9-37594e16-03cb-4c0b-86dd-76aa61c88050-000000@mail.housseini.me>) id 1qq6Bt-0006xp-VI for 66262@debbugs.gnu.org; Tue, 10 Oct 2023 02:26:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=solmzk3ljecfoypi3q6x2mqs3bucnhjw; d=housseini.me; t=1696919129; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id; bh=a1Zfz3Hzrca9eNfIrwrDO/MEmRxXuPUBQKuPBjbgOhE=; b=CIdQAcIfI1e03Ml4pQdK3mWvgpCECG7Fy5/yJOwOwGox9FTJZTbjm/CBnENxY7F5 0ekFBiak09o4HIN4iBWDacD+jZjwAFIX0Sb0Uq86CSYTqozAX7IyPCGcHun6LhcHIv4 Mm18tNk0D6tGXDj+JhOw+0twV6tlwQM8+xkstD44= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1696919129; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id:Feedback-ID; bh=a1Zfz3Hzrca9eNfIrwrDO/MEmRxXuPUBQKuPBjbgOhE=; b=F6EwccylQihNTKkISk74UDFfgN09uoebkcjMCuH+Gl5keV4p76DPBoar2UGdzmaN m4FNZgIcJA27GEFnnTyFEl1gZ/aTW2yl+bDBEBKgJPo8h+IWehzppmW1y5p8/LAOdAD BKJpBFs4AExs8k3uLFEogsDqLRBoTWVaiPS59TiI= Date: Tue, 10 Oct 2023 06:25:29 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: X-Mailer: Amazon WorkMail Thread-Index: AQHZ+0KLumvKmCKhSmOZLKw0EepbNQAAAS/2 Thread-Topic: [PATCH v3 2/3] gnu: openfoam-org: Update to 11. X-Wm-Sent-Timestamp: 1696919128 X-Original-Mailer: git-send-email 2.41.0 Message-ID: <0102018b18430da9-37594e16-03cb-4c0b-86dd-76aa61c88050-000000@eu-west-1.amazonses.com> Feedback-ID: 1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2023.10.10-54.240.5.160 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: reza X-ACL-Warn: , reza via Guix-patches From: reza via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 7A17638A2D X-Spam-Score: -3.21 X-Migadu-Spam-Score: -3.21 X-Migadu-Scanner: mx1.migadu.com X-TUID: rTYH9H3UADlq * gnu/packages/simulation.scm (openfoam-org): Update to 11. Use=0D=0Aopen= foam-package factory function to create package.=0D=0A---=0D=0A gnu/packa= ges/simulation.scm | 372 +++++-------------------------------=0D=0A 1 fil= e changed, 49 insertions(+), 323 deletions(-)=0D=0A=0D=0Adiff --git a/gnu= /packages/simulation.scm b/gnu/packages/simulation.scm=0D=0Aindex 4b95688= e33..6ce15a2c2d 100644=0D=0A--- a/gnu/packages/simulation.scm=0D=0A+++ b/= gnu/packages/simulation.scm=0D=0A@@ -374,329 +374,55 @@ (define* (openfoa= m-package source version name home-page synopsis)=0D=0A (home-page = home-page))))=0D=0A=20=0D=0A (define-public openfoam-org=0D=0A- (package= =0D=0A- (name "openfoam-org")=0D=0A- (version "10.20230119")=0D=0A-= (source (origin=0D=0A- (method git-fetch)=0D=0A- = (uri (git-reference=0D=0A- (url (string-append "= https://github.com/OpenFOAM/OpenFOAM-"=0D=0A- = (version-major version)))=0D=0A- (commit (= second (string-split version #\.)))))=0D=0A- (sha256=0D=0A- = (base32=0D=0A- "0icvwg7s6vnkgmdiczivia9pbrgx= 8nanw9a4j080fzfvdv9vxhzp"))=0D=0A- (file-name (git-file-name= name version))=0D=0A- (modules '((guix build utils)))=0D=0A= - (snippet `(begin=0D=0A- ;; patch = shell paths=0D=0A- (substitute* (list "wmake/src= /Makefile"=0D=0A- "wmake/make= files/general")=0D=0A- (("/bin/sh")=0D=0A- = "sh"))=0D=0A- (substitu= te* "etc/bashrc"=0D=0A- ;; only go back one fo= lder level=0D=0A- (("\\$\\(dirname \\$\\{BASH_= SOURCE:-\\$0\\}\\)/../..")=0D=0A- "$(dirname = ${BASH_SOURCE:-$0})/..")=0D=0A- ;; do not use = openfoam folder convention=0D=0A- (("^export W= M_PROJECT_DIR=3D.*$")=0D=0A- (string-append=0D= =0A- "export WM_PROJECT_DIR=3D$WM_PROJECT_IN= ST_DIR\n"))=0D=0A- ;; do not source bash_compl= etion (gives error)=0D=0A- (("^.*bash_completi= on.*$" all)=0D=0A- (string-append "#" all))=0D= =0A- ;; set same version as guix package=0D=0A= - (("^export WM_PROJECT_VERSION=3D.*$")=0D=0A-= (string-append "export WM_PROJECT_VERSION=3D= "=0D=0A- ,version "\n")))=0D=0A= - ;; add expand flag to RunFunctions=0D=0A- = (substitute* "bin/tools/RunFunctions"=0D=0A- = (("foamDictionary (.*)" all args)=0D=0A- = (string-append "foamDictionary -expand " args)))=0D=0A- = ;; disable failing test=0D=0A- = (substitute* "test/postProcessing/channel/Allrun"=0D=0A- = (("^.*getApplication.*$" all)=0D=0A- = (string-append "#" all "\n")))))))=0D=0A- (build-system gnu-= build-system)=0D=0A- (inputs (list boost=0D=0A- cgal=0D= =0A- git=0D=0A- gmp=0D=0A- = libxt=0D=0A- metis=0D=0A- mpfr=0D=0A= - ncurses=0D=0A- openmpi=0D=0A- = openssh=0D=0A- paraview=0D=0A- = pt-scotch32=0D=0A- readline=0D=0A- zl= ib))=0D=0A- (native-inputs (list bison=0D=0A- = flex=0D=0A- ;; paraview plugin dependencies=0D=0A= - cli11=0D=0A- cmake-mini= mal=0D=0A- cgns=0D=0A- cu= rl=0D=0A- double-conversion=0D=0A- = eigen=0D=0A- expat=0D=0A- = ffmpeg=0D=0A- fmt=0D=0A- = freetype=0D=0A- gdal=0D=0A- = gl2ps=0D=0A- glew=0D=0A- = gmsh=0D=0A- hdf5=0D=0A- = jsoncpp=0D=0A- libjpeg-turbo=0D=0A- = libogg=0D=0A- libpng=0D=0A= - libharu=0D=0A- libtheor= a=0D=0A- libtiff=0D=0A- l= ibx11=0D=0A- libxml2=0D=0A- = lz4=0D=0A- netcdf=0D=0A- = nlohmann-json=0D=0A- proj=0D=0A- = protobuf=0D=0A- pugixml=0D=0A- = python=0D=0A- python-mpi4py=0D=0A= - qtbase-5=0D=0A- qtsvg-5= =0D=0A- qttools-5=0D=0A- = qtwebengine-5=0D=0A- qtxmlpatterns=0D=0A- = utfcpp=0D=0A- vtk=0D=0A- = xz))=0D=0A- (propagated-inputs (list gnuplot))=0D=0A-= (outputs '("debug" ;~60MB=0D=0A- "out"))=0D=0A- (arg= uments=0D=0A- (list=0D=0A- ;; Executable files and shared librar= ies are located in the 'platforms'=0D=0A- ;; subdirectory.=0D=0A- = #:strip-directories=0D=0A- #~(list "share/OpenFOAM/platforms/linu= x64GccDPInt32Opt/bin"=0D=0A- "share/OpenFOAM/platforms/linux= 64GccDPInt32Opt/lib")=0D=0A-=0D=0A- #:modules=0D=0A- '((ice-9 f= tw)=0D=0A- (ice-9 regex)=0D=0A- (ice-9 string-fun)=0D=0A- = (srfi srfi-1)=0D=0A- (guix build gnu-build-system)=0D=0A- = (guix build utils))=0D=0A-=0D=0A- #:phases=0D=0A- #~(modif= y-phases %standard-phases=0D=0A- (add-before 'build 'patch-HOME-= path=0D=0A- (lambda _=0D=0A- (setenv "HOME" "/tmp= ")))=0D=0A- (add-before 'build 'rename-self=0D=0A- (l= ambda _=0D=0A- ;; The script 'bin/foamEtcFile' derives the v= ersion name based=0D=0A- ;; on the current directory name (!= ), so make sure to follow the=0D=0A- ;; expected naming conv= ention.=0D=0A- (let ((here (canonicalize-path "."))=0D=0A- = (target #$(string-append=0D=0A- = "OpenFOAM-"=0D=0A- (string-map (matc= h-lambda=0D=0A- (#\. #\-)=0D=0A= - (chr chr))=0D=0A- = (package-version this-package)))))=0D=0A= - (chdir "..")=0D=0A- (format #t "renaming = '~a' to '~a'~%"=0D=0A- here target)=0D=0A- = (rename-file here target)=0D=0A- (chdir target))))= =0D=0A- (add-before 'build 'patch-scotch=0D=0A- (lamb= da _=0D=0A- (substitute* "etc/config.sh/scotch"=0D=0A- = (("^export SCOTCH_VERSION=3Dscotch_.*$")=0D=0A- = (string-append "export SCOTCH_VERSION=3Dscotch_"=0D=0A- = #$(package-version pt-scotch32) "\n"))=0D=0A- = (("^export SCOTCH_ARCH_PATH=3D.*$")=0D=0A- (string-app= end "export SCOTCH_ARCH_PATH=3D"=0D=0A- (a= ssoc-ref %build-inputs "pt-scotch32")=0D=0A- = "\n"))) #t))=0D=0A- (add-before 'build 'patch-mpi=0D=0A- = (lambda _=0D=0A- (let* ((mpi-path (assoc-ref %build-i= nputs "openmpi"))=0D=0A- (mpi-version #$(package-vers= ion openmpi)))=0D=0A- ;; specify openmpi type=0D=0A- = (substitute* "etc/bashrc"=0D=0A- (("WM_MPLIB=3D= SYSTEMOPENMPI")=0D=0A- "WM_MPLIB=3DOPENMPI"))=0D=0A- = (substitute* "etc/config.sh/mpi"=0D=0A- (("= export FOAM_MPI=3Dopenmpi-.*$")=0D=0A- (string-append "= export FOAM_MPI=3Dopenmpi-"=0D=0A- mpi-v= ersion "\n"))=0D=0A- (("export MPI_ARCH_PATH=3D.*\\$FOAM= _MPI.*$")=0D=0A- (string-append "export MPI_ARCH_PATH=3D= " mpi-path=0D=0A- "\n")))) #t))=0D=0A- = (add-before 'build 'patch-paraview=0D=0A- (lambda _=0D= =0A- (substitute* "etc/config.sh/paraview"=0D=0A- = (("^export ParaView_VERSION=3D.*$")=0D=0A- (string-a= ppend "export ParaView_VERSION=3D"=0D=0A- = #$(package-version paraview) "\n"))=0D=0A- (("^export Para= View_DIR=3D.*$")=0D=0A- (string-append "export ParaView_D= IR=3D"=0D=0A- (assoc-ref %build-inputs "pa= raview")=0D=0A- "\n"))) #t))=0D=0A- = (add-before 'build 'add-rpaths=0D=0A- (lambda _=0D=0A- = (letrec* ((libraries '("boost" "cgal"=0D=0A- = "gmp"=0D=0A- "metis"= =0D=0A- "mpfr"=0D=0A- = "pt-scotch32"=0D=0A- = "openmpi"=0D=0A- "zlib"=0D=0A- = "paraview"))=0D=0A- = (rpaths=0D=0A- (fold-right (lambda (library = rpaths)=0D=0A- (string-append rpath= s=0D=0A- "-rpath=3D"= =0D=0A- (assoc-ref=0D= =0A- %build-inputs = library)=0D=0A- "/li= b,")) "" libraries))=0D=0A- (openfoam-lib=0D=0A- = (string-append #$output=0D=0A- = "/share/OpenFOAM/platforms/linux64GccDPInt32Opt/lib")= )=0D=0A- (ldflags=0D=0A- (= string-append "-Wl,"=0D=0A- rpaths= =0D=0A- "-rpath=3D"=0D=0A- = openfoam-lib=0D=0A- = ","=0D=0A- "-rpa= th=3D"=0D=0A- openfoam-lib=0D=0A- = "/dummy,"=0D=0A- = "-rpath=3D"=0D=0A- = openfoam-lib=0D=0A- "/parav= iew-"=0D=0A- #$(version-major+mino= r (package-version=0D=0A- = paraview)))))=0D=0A- (substitute* "wmake/r= ules/linux64Gcc/c++"=0D=0A- (("\\$\\(LIB_HEADER_DIRS\\) = -fPIC" all)=0D=0A- (string-append all " " ldflags)))) #= t))=0D=0A- (add-before 'build 'add-vtk-include-path=0D=0A- = (lambda _=0D=0A- (let* ((vtk-version #$(version-major+= minor=0D=0A- (package-version vtk)))=0D= =0A- (vtk-root (assoc-ref %build-inputs "vtk"))=0D=0A= - (vtk-inc (string-append vtk-root "/include/vtk-" vt= k-version))=0D=0A- (vtk-inc-flag (string-append "-I" = vtk-inc)))=0D=0A- (substitute* "wmake/rules/linux64Gcc/c++= "=0D=0A- (("\\$\\(LIB_HEADER_DIRS\\)" all)=0D=0A- = (string-append all " " vtk-inc-flag " "))))=0D=0A- = #t))=0D=0A- (delete 'configure) ;no configure phase=0D=0A- = (replace 'build=0D=0A- (lambda _=0D=0A- ;;= compile OpenFOAM libraries and applications=0D=0A- (invoke = "bash" "-c"=0D=0A- (format #f=0D=0A- = "source ./etc/bashrc && ./Allwmake -j~a"=0D=0A- = (parallel-job-count)))))=0D=0A- (add-after 'bu= ild 'cleanup=0D=0A- ;; Avoid unnecessary, voluminous object an= d dep files.=0D=0A- (lambda _=0D=0A- (when (file-= exists=3F "platforms/linux64GccDPInt32Opt/src")=0D=0A- (de= lete-file-recursively=0D=0A- "platforms/linux64GccDPInt32= Opt/src"))=0D=0A- (when (file-exists=3F=0D=0A- = "platforms/linux64GccDPInt32OptOPENMPI")=0D=0A- (de= lete-file-recursively=0D=0A- "platforms/linux64GccDPInt32= OptOPENMPI"))=0D=0A- (for-each delete-file=0D=0A- = (find-files "." "\\.o$")) #t))=0D=0A- (replace 'che= ck=0D=0A- (lambda* (#:key tests=3F #:allow-other-keys)=0D=0A- = (when tests=3F=0D=0A- (when (file-exists=3F "= test")=0D=0A- (with-directory-excursion "test"=0D=0A- = (invoke "bash" "-c"=0D=0A- (f= ormat #f=0D=0A- "source ../etc/bashrc = && ./Allrun -j~a"=0D=0A- (parallel-job= -count)))))=0D=0A- ;; too many tutorials are failing=0D=0A= - ;; (with-directory-excursion "tutorials"=0D=0A- = ;; (invoke "bash" "-c" "source ../etc/bashrc && ./Alltest"))=0D=0A= - ) #t))=0D=0A- (replace 'install=0D=0A- = (lambda _=0D=0A- (let ((install-dir (string-append #$outp= ut=0D=0A- "/share/OpenFOAM= ")))=0D=0A- (mkdir-p install-dir) ;create install director= y=0D=0A- ;; move contents of build directory to install di= rectory=0D=0A- (copy-recursively "." install-dir))))=0D=0A= - (add-after 'install 'add-symbolic-link=0D=0A- (lamb= da _=0D=0A- (let* ((bin (string-append #$output "/bin"))=0D=0A= - (lib (string-append #$output "/lib"))=0D=0A- = (openfoam (string-append #$output=0D=0A- = "/share/OpenFOAM"))=0D=0A- = (build-bin (string-append openfoam=0D=0A- = "/platforms/linux64GccDPInt32Opt/bin"))=0D=0A- = (build-lib (string-append openfoam=0D=0A- = "/platforms/linux64GccDPInt32Opt/lib"))=0D=0A- = (foam-bin (string-append openfoam "/bin")))=0D=0A- = ;; add symbolic links in standard 'bin' directory=0D=0A- = (mkdir-p bin)=0D=0A- (for-each (lambda (file)=0D= =0A- (unless (member file=0D=0A- = '("." ".."))=0D=0A- = (symlink (string-append build-bin "/"=0D=0A- = file)=0D=0A- = (string-append bin "/" file))))=0D=0A- = (scandir build-bin))=0D=0A- (for-each (lambda (file)=0D=0A= - (unless (member file=0D=0A- = '("." ".."))=0D=0A- = (symlink (string-append foam-bin "/"=0D=0A- = file)=0D=0A- = (string-append bin "/" file))))=0D=0A- (sca= ndir foam-bin))=0D=0A- ;; add symbolic link for standard '= lib' directory=0D=0A- (symlink build-lib lib)) #t)))))=0D=0A= - (native-search-paths=0D=0A- (list (search-path-specification=0D=0A= - (variable "WM_PROJECT_DIR")=0D=0A- (separator #f)= =0D=0A- (files '("share/OpenFOAM")))))=0D=0A- ;; Note:=0D=0A= - ;; Tutorial files are installed read-only in /gnu/store.=0D=0A- ;= ; To allow write permissions on files copied from the store a=0D=0A- ;= ; 'chmod' step is needed before running the applications. For=0D=0A- = ;; example, from a user's login:=0D=0A- ;; $ source $(dirname $(which = blockMesh))/../../../etc/bashrc=0D=0A- ;; $ mkdir -p $FOAM_RUN=0D=0A- = ;; $ cd $FOAM_RUN=0D=0A- ;; $ cp -r $FOAM_TUTORIALS/incompressible/= simpleFoam/pitzDaily .=0D=0A- ;; $ cd pitzDaily=0D=0A- ;; $ chmod -= R u+w .=0D=0A- ;; $ blockMesh=0D=0A- (synopsis "Framework for numer= ical simulation of fluid flow")=0D=0A- (description=0D=0A- "OpenFO= AM provides a set of solvers and methods for tackling=0D=0A-problems in t= he field of Computational Fluid Dynamics (CFD). It is written in=0D=0A-C= ++. Governing equations such as the Navier-Stokes equations can be solve= d in=0D=0A-integral form. Physical processes such as phase change, dropl= et transport and=0D=0A-chemical reaction can be modelled. Numerical meth= ods are included to deal with=0D=0A-sharp gradients, such as those encoun= tered in flows with shock waves and flows=0D=0A-with gas/liquid interface= s. Large problems may be split into smaller, connected=0D=0A-problems fo= r efficient solution on parallel systems.")=0D=0A- (license license:gp= l3+)=0D=0A- (home-page "https://openfoam.org")))=0D=0A+ (let* ((versi= on "11")=0D=0A+ (name "openfoam-org")=0D=0A+ (source (ori= gin=0D=0A+ (method url-fetch)=0D=0A+ = (uri (string-append "https://github.com/OpenFOAM/OpenFOAM-"=0D=0A+ = (version-major version)=0D=0A+ = "/archive/"=0D=0A+ = "version-"=0D=0A+ (vers= ion-major version)=0D=0A+ ".tar.gz"= ))=0D=0A+ (sha256 (base32=0D=0A+ = "1h70a5ni2psx7bcx2xg6aqraj2kkbfn8mflh2akbp6k9mmpgih7b"))=0D=0A+ = (modules '((guix build utils)))=0D=0A+ (s= nippet `(begin=0D=0A+ ;; patch shell paths=0D= =0A+ (substitute* (list "wmake/src/Makefile= "=0D=0A+ "wmake/makefile= s/general")=0D=0A+ (("/bin/sh")=0D=0A+ = "sh"))=0D=0A+ = (substitute* "etc/bashrc"=0D=0A+ ;; onl= y go back one folder level=0D=0A+ (("\\$\= \(dirname \\$\\{BASH_SOURCE:-\\$0\\}\\)/../..")=0D=0A+ = "$(dirname ${BASH_SOURCE:-$0})/..")=0D=0A+ = ;; do not use openfoam folder convention=0D=0A+ = (("^export WM_PROJECT_DIR=3D.*$")=0D=0A+ = (string-append=0D=0A+ = "export WM_PROJECT_DIR=3D$WM_PROJECT_INST_DIR=0D=0A+"))=0D=0A+ = ;; do not source bash_completion (gives err= or)=0D=0A+ (("^.*bash_completion.*$" all)= =0D=0A+ (string-append "#" all))=0D=0A+ = ;; set same version as guix package=0D=0A= + (("^export WM_PROJECT_VERSION=3D.*$")=0D= =0A+ (string-append "export WM_PROJECT_V= ERSION=3D"=0D=0A+ ,versio= n "\n")))=0D=0A+ ;; add expand flag to RunF= unctions=0D=0A+ (substitute* "bin/tools/Run= Functions"=0D=0A+ (("foamDictionary (.*)"= all args)=0D=0A+ (string-append "foamDi= ctionary -expand "=0D=0A+ = args)))=0D=0A+ ;; disable failing test=0D=0A= + (substitute* "test/postProcessing/channel= /Allrun"=0D=0A+ (("^.*getApplication.*$" = all)=0D=0A+ (string-append "#" all "\n")= ))))))=0D=0A+ (home-page "https://openfoam.org")=0D=0A+ (= synopsis "Framework for numerical simulation of fluid flow")=0D=0A+ = (template (openfoam-package source version name home-page synopsis)))=0D= =0A+ (package=0D=0A+ (inherit template))))=0D=0A=20=0D=0A (define= -public openfoam=0D=0A (deprecated-package "openfoam" openfoam-org))=0D= =0A--=20=0D=0A2.41.0=0D=0A=0D=0A