Last active
June 3, 2022 17:24
-
-
Save carlosal1015/a8ae10176bd7c9b5df740036679d0787 to your computer and use it in GitHub Desktop.
0001-GCC-12-compatibility.patch
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 7c6bf5008441ac308e4ff53fbbe6715a11dfc253 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Carlos=20Aznar=C3=A1n=20Laos?= <[email protected]> | |
Date: Fri, 3 Jun 2022 12:23:04 -0500 | |
Subject: [PATCH] GCC-12 compatibility | |
--- | |
PKGBUILD | 9 ++++++--- | |
1 file changed, 6 insertions(+), 3 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 4e49e7f..b1616f1 100755 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -15,14 +15,14 @@ _dist=$_distname-$pkgver | |
pkgrel=2 | |
pkgdesc="The open source CFD toolbox (www.openfoam.com)" | |
arch=('i686' 'x86_64') | |
-url="http://www.openfoam.com" | |
+url="https://www.openfoam.com" | |
license=('GPL3') | |
install="${pkgname}.install" | |
depends=('gcc' 'cgal' 'fftw' 'boost' 'openmpi' 'paraview' 'utf8cpp' 'scotch' 'parmetis' 'kahip') | |
-source=('https://sourceforge.net/projects/openfoam/files/v2112/OpenFOAM-v2112.tgz') | |
+source=('https://sourceforge.net/projects/openfoam/files/v2112/OpenFOAM-v2112.tgz' 'gcc12-compatibility.patch::https://develop.openfoam.com/Development/openfoam/-/commit/91198eaf6a0c11b57446374d97a079ca95cf1412.patch') | |
-md5sums=('b6553cfbb6c398e8fe50c96e9e456968') | |
+md5sums=('b6553cfbb6c398e8fe50c96e9e456968' '06b884da906a7dfe48115f92ad54760d') | |
prepare() { | |
if [ -n "$WM_PROJECT_DIR" ] | |
@@ -35,6 +35,9 @@ prepare() { | |
projectDir="${srcdir}/${_dist}" | |
+ cd ${projectDir} | |
+ patch -p1 -i ../gcc12-compatibility.patch | |
+ | |
# Generate and install the system preferences file | |
echo "# Preferences for arch-linux | |
export WM_COMPILER_TYPE=system | |
-- | |
2.36.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment