git: 34a03406f8c4 - main - science/cantera: Fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Jul 2023 02:50:23 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=34a03406f8c47c702d48d68928da1e240314227e
commit 34a03406f8c47c702d48d68928da1e240314227e
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-08 02:48:47 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-08 02:48:47 +0000
science/cantera: Fix build
It was broken because the project used the c++11 mode, but
googletest now requires at least c++14, and they look for
googletest in configure.
Reported by: fallout
---
science/cantera/files/patch-SConstruct | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/science/cantera/files/patch-SConstruct b/science/cantera/files/patch-SConstruct
index de5294d25f39..cbccdcef24f3 100644
--- a/science/cantera/files/patch-SConstruct
+++ b/science/cantera/files/patch-SConstruct
@@ -1,5 +1,16 @@
+- the first part is fixing the configure failure, see https://github.com/Cantera/cantera/issues/1536
+
--- SConstruct.orig 2022-05-01 15:31:54 UTC
+++ SConstruct
+@@ -191,7 +191,7 @@ config_options = [
+ {
+ "cl": "/EHsc",
+ "Cygwin": "-std=gnu++11", # See http://stackoverflow.com/questions/18784112
+- "default": "-std=c++11"
++ "default": "-std=c++14"
+ }),
+ Option(
+ "CC",
@@ -805,6 +805,9 @@ elif "icx" in env.subst("$CC"):
elif "clang" in env.subst("$CC"):
config.select("clang")