Created
June 2, 2023 16:23
-
-
Save carlosal1015/1660dcc183acef4bcf84de10d07ad99e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0bf5e073be39658d9e75c65e1af3ec0579b76c51 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Carlos=20Aznar=C3=A1n=20Laos?= <[email protected]> | |
Date: Fri, 2 Jun 2023 11:22:32 -0500 | |
Subject: [PATCH] Add gcc 13 compatibility patch | |
--- | |
.SRCINFO | 2 ++ | |
PKGBUILD | 12 ++++++++++-- | |
2 files changed, 12 insertions(+), 2 deletions(-) | |
diff --git a/.SRCINFO b/.SRCINFO | |
index 109ed69..a387b90 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -17,6 +17,8 @@ pkgbase = openfoam-com | |
depends = scotch | |
depends = parmetis | |
source = https://sourceforge.net/projects/openfoam/files/v2212/OpenFOAM-v2212.tgz | |
+ source = gcc-13-compatibility.patch::https://develop.openfoam.com/Development/openfoam/-/commit/70451e680cd0987c8220a0276bba4ce6bba58e9e.patch | |
md5sums = 889c9a2169c0b6911050de149a5b459b | |
+ md5sums = 686c135b63e923de449763cf5f1ea6e9 | |
pkgname = openfoam-com | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 03afd82..999ef1f 100755 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -4,6 +4,7 @@ | |
# Contributor: George Eleftheriou <eleftg> | |
# Contributor: Andrew Fischer <andrew_at_apastron.co> | |
# Contributor: <[email protected]> | |
+# Contributor: Carlos Aznarán <[email protected]> | |
# Installs as (for example) | |
# /opt/OpenFOAM/OpenFOAM-v2212 | |
@@ -20,9 +21,11 @@ license=('GPL3') | |
install="${pkgname}.install" | |
depends=('gcc' 'cgal' 'fftw' 'boost' 'openmpi' 'paraview' 'utf8cpp' 'scotch' 'parmetis') | |
-source=('https://sourceforge.net/projects/openfoam/files/v2212/OpenFOAM-v2212.tgz') | |
+source=('https://sourceforge.net/projects/openfoam/files/v2212/OpenFOAM-v2212.tgz' | |
+ gcc-13-compatibility.patch::https://develop.openfoam.com/Development/openfoam/-/commit/70451e680cd0987c8220a0276bba4ce6bba58e9e.patch) | |
-md5sums=('889c9a2169c0b6911050de149a5b459b') | |
+md5sums=('889c9a2169c0b6911050de149a5b459b' | |
+ '686c135b63e923de449763cf5f1ea6e9') | |
prepare() { | |
if [ -n "$WM_PROJECT_DIR" ] | |
@@ -54,6 +57,11 @@ export WM_MPLIB=SYSTEMOPENMPI | |
-scotch scotch-system \ | |
-paraview paraview-system \ | |
; | |
+ | |
+ # https://develop.openfoam.com/Development/openfoam/-/issues/2714 | |
+ # gcc-13-compatibilty | |
+ cd "$projectDir" | |
+ patch -p1 -i ../gcc-13-compatibility.patch | |
} | |
build() { | |
-- | |
2.41.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment