From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sPb9D7ZAamWbXQEA9RJhRA:P1 (envelope-from ) for ; Fri, 01 Dec 2023 21:23:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sPb9D7ZAamWbXQEA9RJhRA (envelope-from ) for ; Fri, 01 Dec 2023 21:23:18 +0100 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 E4AF25BB83 for ; Fri, 1 Dec 2023 21:23:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=housseini.me header.s=solmzk3ljecfoypi3q6x2mqs3bucnhjw header.b=DPU5DbvO; dkim=fail ("headers rsa verify failed") header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=dlhaw6BG; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701462198; 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=1budg2LdXgoekk3ozNZqROcaLmsqDPAOGHDej+wpOG0=; b=LESPYREFu4Fry+G3MuQcZzv07Nfbu2YAV5UpToR0zGreOradDemno58yuadL/QcGY5rCXX gPdzu5RiNzykydv3Jp4nRNnVTC3Jcu/uDzhbO6OWzHZhokqluKpKq+IYd0PF73qGiIvnTn uStZ2vDyPNlekOXWg5QJiS/211+ywyIxqgRjPcFurM3PIi3SNnHXRL+UbPP4S0j5Crh2If qrlFBa9Eso9ZRWkArI8j9o7oZez1VWo6PvNOPlMpB+yUgSVruytpAPIgxLwxqay0y7L16w FxyTG0rr4FI0OBC6sbUa9Eq0URQXsFFzzJyWliNUFemFCrCtItpoESiW2UFkEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=housseini.me header.s=solmzk3ljecfoypi3q6x2mqs3bucnhjw header.b=DPU5DbvO; dkim=fail ("headers rsa verify failed") header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=dlhaw6BG; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701462198; a=rsa-sha256; cv=none; b=gAMnuAa+eAd5Fh/KD7zjVS63cFujeYGAI/k7yPSQL1XkShJ1iWXlEa2bxM13G05FntAkdV lwjnbYTjhtbEF5Dz2eJTik4jJOSIscuQyOEF99Wj4TKuYYqQP4SMtbKRlPD7tEjI6sF3Hr /7fzO/kec+bL2KcDLqZFVVz/slUGSojGqAUTfJKm7eSKGUDEfwNLoDTtVV/Yzqqrd0uKUB di+TU/rq+07+oGGZOVl6hoqdYN61ViIpXO0mcyosTEkMGAEZEGmhLitpaL/00B601SMR2z B16OY6hLKE8odJMZMJe3H34NwpPIUJBBqlOJLtslyYxnFpwYtluLCSC0hu6L9w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9A2M-00051G-5D; Fri, 01 Dec 2023 15:22:58 -0500 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 1r9A2H-0004zM-Pw for guix-patches@gnu.org; Fri, 01 Dec 2023 15:22:53 -0500 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 1r9A2H-0005JW-I6 for guix-patches@gnu.org; Fri, 01 Dec 2023 15:22:53 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r9A2Q-0000by-3m for guix-patches@gnu.org; Fri, 01 Dec 2023 15:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66262] [PATCH v7 7/7] gnu: openfoam-org: Improve wrapping of binaries. Resent-From: reza Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Dec 2023 20:23: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.17014621282282 (code B ref 66262); Fri, 01 Dec 2023 20:23:02 +0000 Received: (at 66262) by debbugs.gnu.org; 1 Dec 2023 20:22:08 +0000 Received: from localhost ([127.0.0.1]:56162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9A1Y-0000aj-4B for submit@debbugs.gnu.org; Fri, 01 Dec 2023 15:22:08 -0500 Received: from a2-134.smtp-out.eu-west-1.amazonses.com ([54.240.2.134]:59169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0102018c270b602e-42d16a77-013b-4cca-ac8d-cc731d174e67-000000@mail.housseini.me>) id 1r9A1W-0000ZN-DO for 66262@debbugs.gnu.org; Fri, 01 Dec 2023 15:22:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=solmzk3ljecfoypi3q6x2mqs3bucnhjw; d=housseini.me; t=1701462106; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id; bh=H6TF7FPnOeAZJssF5z+ScDO97VXouVgNqBPGjMS+Hcw=; b=DPU5DbvOEG7yBK9nRqIyoGYRJznZ0aqN+Y9XZZ6EtCIxOm1H3iIPvS5a7gQUztzl rvl9sDDa9HSwchzXbYWsS73RNOWHJW87bkndxaVNFqX9CDtYtNrf9Tb2U21JM57K2+t 5+6Hmc0/nu+PNQAy8HdbfmLHsmYqNe6YLvfEZgZo= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1701462106; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id:Feedback-ID; bh=H6TF7FPnOeAZJssF5z+ScDO97VXouVgNqBPGjMS+Hcw=; b=dlhaw6BGWkDmn8LX1sdk4ac7chfOFNzD4CUv3EaX3Dpjp2ptvUmmUVbai4KNX9uO a0LH6KMliPnXTlAv+QFmNZqgHaeJwGy7n2FYoa2iNyh/dD7ifAp3csnep2bD/zE/8Iq xL9mp/0jOW4oBPlA1ykVH1tA64UPG+QMY8cd61Ys= Date: Fri, 1 Dec 2023 20:21:46 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In-Reply-To: <5a90ca452eac7f8947a241bf0900ca928acc311f.1701462064.git.reza@housseini.me> References: <5a90ca452eac7f8947a241bf0900ca928acc311f.1701462064.git.reza@housseini.me> X-Mailer: Amazon WorkMail Thread-Index: AQHaJJPzxeoHSzDjRfGKH1PaN4MhNQAAA3Xp Thread-Topic: [PATCH v7 7/7] gnu: openfoam-org: Improve wrapping of binaries. X-Wm-Sent-Timestamp: 1701462105 X-Original-Mailer: git-send-email 2.41.0 Message-ID: <0102018c270b602e-42d16a77-013b-4cca-ac8d-cc731d174e67-000000@eu-west-1.amazonses.com> Feedback-ID: 1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2023.12.01-54.240.2.134 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.13 X-Spam-Score: -6.13 X-Migadu-Queue-Id: E4AF25BB83 X-Migadu-Scanner: mx12.migadu.com X-TUID: oD0XZnbIU6Zu * gnu/packages/simulation.scm (openfoam-org): Add all variables from=0D=0A= etc/bashrc to the wrapping of binaries.=0D=0A=0D=0AChange-Id: Idf0d4d9a04= 3dfff806b6fb1871c1931794c1935b=0D=0A---=0D=0A gnu/packages/simulation.scm= | 159 +++++++++++++++++++++++++++++++++++-=0D=0A 1 file changed, 155 ins= ertions(+), 4 deletions(-)=0D=0A=0D=0Adiff --git a/gnu/packages/simulatio= n.scm b/gnu/packages/simulation.scm=0D=0Aindex f01044e76a..6b61783c2c 100= 644=0D=0A--- a/gnu/packages/simulation.scm=0D=0A+++ b/gnu/packages/simula= tion.scm=0D=0A@@ -401,15 +401,166 @@ (define-public openfoam-org=0D=0A = (add-after 'add-symbolic-link 'wrap=0D=0A (lambda* (#= :key python inputs outputs #:allow-other-keys)=0D=0A (let* = ((bin (string-append #$output "/bin"))=0D=0A- (openfo= am (string-append #$output=0D=0A- = "/share/OpenFOAM-"=0D=0A- = #$(package-version this-package))))=0D=0A+ (openf= oam-version #$(package-version this-package))=0D=0A+ = (openfoam-root (string-append #$output=0D=0A+ = "/share/OpenFOAM-"=0D=0A+ = openfoam-version))=0D=0A+ (= openmpi-version #$(package-version openmpi))=0D=0A+ (= paraview-version #$(package-version paraview))=0D=0A+ = (paraview-version-major+minor=0D=0A+ #$(version-maj= or+minor (package-version paraview))))=0D=0A (for-each=0D= =0A (lambda (program)=0D=0A (unless (= member program=0D=0A '("." ".."))=0D=0A= + ;; wrap the programs with all the variables created= by sourcing=0D=0A+ ;; etc/bashrc=0D=0A = (wrap-program (string-append bin "/" program)=0D=0A- = `("WM_PROJECT_DIR" ":" prefix (,openfoam)))))=0D=0A+ = `("WM_PROJECT_INST_DIR" =3D (,openfoam-root))=0D=0A+ = `("WM_PROJECT_DIR" =3D (,openfoam-root))=0D=0A+ = '("WM_PROJECT" =3D ("OpenFOAM"))=0D=0A+ = `("WM_PROJECT_VERSION" =3D (,openfoam-version))=0D=0A+ = '("WM_COMPILER_TYPE" =3D ("system"))=0D=0A+ '("= WM_COMPILER" =3D ("Gcc"))=0D=0A+ '("WM_ARCH_OPTION"= =3D ("64"))=0D=0A+ '("WM_PRECISION_OPTION" =3D ("D= P"))=0D=0A+ '("WM_LABEL_SIZE" =3D ("32"))=0D=0A+ = '("WM_COMPILE_OPTION" =3D ("Opt"))=0D=0A+ = '("WM_MPLIB" =3D ("OPENMPI"))=0D=0A+ '("= WM_OSTYPE" =3D ("POSIX"))=0D=0A+ '("WM_OPTIONS" =3D= ("linux64GccDPInt32Opt"))=0D=0A+ `("WM_PROJECT_USE= R_DIR" =3D (,(string-append=0D=0A+ = "$HOME/OpenFOAM/$USER-"=0D=0A+ = openfoam-version)))=0D=0A+ `(= "WM_THIRD_PARTY_DIR" =3D (,(string-append=0D=0A+ = openfoam-root=0D=0A+ = "/ThirdParty-"=0D=0A+ = openfoam-version)))=0D=0A+ '= ("WM_LABEL_OPTION" =3D ("Int32"))=0D=0A+ '("WM_LINK= _LANGUAGE" =3D ("c++"))=0D=0A+ '("WM_COMPILER_LIB_A= RCH" =3D ("64"))=0D=0A+ `("WM_DIR" =3D (,(string-ap= pend openfoam-root "/wmake")))=0D=0A+ '("WM_LDFLAGS= " =3D ("-m64"))=0D=0A+ '("WM_CC" =3D ("gcc"))=0D=0A= + '("WM_CFLAGS" =3D ("-m64 -fPIC"))=0D=0A+ = '("WM_CXX" =3D ("g++"))=0D=0A+ '("WM_= CXXFLAGS" =3D ("-m64 -fPIC -std=3Dc++0x"))=0D=0A+ =20= =0D=0A+ `("FOAM_INST_DIR" =3D (,openfoam-root))=0D=0A= + `("FOAM_APP" =3D (,(string-append openfoam-root=0D= =0A+ "/applications= ")))=0D=0A+ `("FOAM_SRC" =3D (,(string-append openf= oam-root "/src")))=0D=0A+ `("FOAM_ETC" =3D (,(strin= g-append openfoam-root "/etc")))=0D=0A+ `("FOAM_TUT= ORIALS" =3D (,(string-append openfoam-root=0D=0A+ = "/tutorials")))=0D=0A+ = `("FOAM_UTILITIES" =3D (,(string-append=0D=0A+ = openfoam-root=0D=0A+ = "/applications/utilities")))=0D=0A+ = `("FOAM_SOLVERS" =3D (,(string-append=0D=0A+ = openfoam-root=0D=0A+ = "/applications/solvers")))=0D=0A+ `= ("FOAM_MPI" =3D (,(string-append "openmpi-"=0D=0A+ = openmpi-version)))=0D=0A+ = `("FOAM_RUN" =3D (,(string-append "$HOME/OpenFOAM/$USER-"=0D=0A+ = openfoam-version "/r= un")))=0D=0A+ `("FOAM_EXT_LIBBIN" =3D (,(string-app= end=0D=0A+ openfoam-root=0D= =0A+ "/ThirdParty-"=0D=0A+= openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt= 32/lib")))=0D=0A+ `("FOAM_APPBIN" =3D (,(string-app= end=0D=0A+ openfoam-root=0D=0A= + "/platforms/linux64GccDPInt3= 2Opt/bin")))=0D=0A+ `("FOAM_JOB_DIR" =3D (,(string-= append openfoam-root=0D=0A+ = "/jobControl")))=0D=0A+ `("FOAM_LIBBIN= " =3D (,(string-append=0D=0A+ = openfoam-root=0D=0A+ "/platfor= ms/linux64GccDPInt32Opt/lib")))=0D=0A+ `("FOAM_SITE= _LIBBIN" =3D (,(string-append=0D=0A+ = openfoam-root=0D=0A+ = "/site/"=0D=0A+ o= penfoam-version=0D=0A+ "/= platforms/linux64GccDPInt32Opt/lib")))=0D=0A+ `("FO= AM_SITE_APPBIN" =3D (,(string-append=0D=0A+ = openfoam-root=0D=0A+ = "/site/"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32Opt/bin")))=0D=0A+ = `("FOAM_USER_LIBBIN" =3D (,(string-append=0D=0A+ = "$HOME/OpenFOAM/$USER-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32Opt/lib")))=0D= =0A+ `("FOAM_USER_APPBIN" =3D (,(string-append=0D=0A= + "$HOME/OpenFOAM/$USER-"= =0D=0A+ openfoam-version=0D= =0A+ "/platforms/linux64G= ccDPInt32Opt/bin")))=0D=0A+ `("FOAM_MODULES" =3D (,= (string-append openfoam-root=0D=0A+ = "/applications/modules")))=0D=0A+ = '("FOAM_SIGFPE" =3D (""))=0D=0A+ '("FOAM_SETTIN= GS" =3D (""))=0D=0A+=0D=0A+ `("ParaView_INCLUDE_DIR= " =3D (,(string-append #$paraview=0D=0A+ = "/include/paraview-"=0D=0A+ = paraview-version-m= ajor+minor)))=0D=0A+ '("ParaView_GL" =3D ("mesa"))=0D= =0A+ `("ParaView_VERSION" =3D (,paraview-version))=0D= =0A+ `("ParaView_MAJOR" =3D (,paraview-version-majo= r+minor))=0D=0A+ `("ParaView_DIR" =3D (,#$paraview)= )=0D=0A+ `("PV_PLUGIN_PATH" =3D (,(string-append=0D= =0A+ openfoam-root=0D=0A+ = "/platforms/linux64GccDPInt3= 2Opt/lib/paraview-"=0D=0A+ = paraview-version-major+minor)))=0D=0A+=0D=0A+ `("MP= I_ARCH_PATH" =3D (,#$openmpi))=0D=0A+ `("OPAL_PREFI= X" =3D (,#$openmpi))=0D=0A+ '("MPI_BUFFER_SIZE" =3D= ("20000000"))=0D=0A+ =20=0D=0A+ = `("LD_LIBRARY_PATH" prefix=0D=0A+ (,(string-ap= pend openfoam-root "/ThirdParty-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64Gcc/gperftools-svn/lib")=0D=0A+ = ,(string-append #$paraview "/lib")=0D=0A+ ,(= string-append openfoam-root=0D=0A+ = "/platforms/linux64GccDPInt32Opt/lib/openmpi-"=0D=0A+ = openmpi-version)=0D=0A+ = ,(string-append openfoam-root "/ThirdParty-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32/lib/openmpi-"=0D=0A+ = openmpi-version)=0D=0A+ = ,(string-append #$openmpi "/lib")=0D=0A+ = ,(string-append #$openmpi "/lib64")=0D=0A+ ,(st= ring-append "$HOME/OpenFOAM/$USER-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32Opt/lib")=0D=0A+ = ,(string-append openfoam-root "/site/"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32Opt/lib")=0D=0A+ = ,(string-append openfoam-root=0D=0A+ = "/platforms/linux64GccDPInt32Opt/lib")=0D=0A+ = ,(string-append openfoam-root "/ThirdParty-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32/lib")=0D=0A+ = ,(string-append openfoam-root=0D=0A+ = "/platforms/linux64GccDPInt32Opt/lib/dummy")))=0D=0A+= `("PATH" prefix=0D=0A+ (,(= string-append openfoam-root "/ThirdParty-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64Gcc/gperftools-svn/bin")=0D=0A+ = ,(string-append #$paraview "/bin")=0D=0A+ = ,(string-append openfoam-root "/ThirdParty-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64Gcc/cmake-*/bin")=0D=0A+ = ,(string-append #$openmpi "/bin")=0D=0A+ = ,(string-append openfoam-root "/bin")=0D=0A+ = ,(string-append openfoam-root "/wmake")=0D=0A+ = ,(string-append "$HOME/OpenFOAM/$USER-"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32Opt/bin")=0D=0A+ = ,(string-append openfoam-root "/site/"=0D=0A+ = openfoam-version=0D=0A+ = "/platforms/linux64GccDPInt32Opt/bin")=0D=0A+ = ,(string-append openfoam-root=0D=0A+ = "/platforms/linux64GccDPInt32Opt/bin"))))))=0D=0A = (scandir bin))))))))=0D=0A ;; Note:=0D=0A ;; Tutorial= files are installed read-only in /gnu/store.=0D=0A--=20=0D=0A2.41.0=0D=0A= =0D=0A