git: 5740e7fe4ce2 - main - devel/py-google-re2: Fix build with abseil 20230125.0+ and re2 20230601+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Sep 2023 03:23:25 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5740e7fe4ce2c118c836aa09f65a37ffaaa41baa
commit 5740e7fe4ce2c118c836aa09f65a37ffaaa41baa
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-11 03:18:28 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-11 03:22:47 +0000
devel/py-google-re2: Fix build with abseil 20230125.0+ and re2 20230601+
---
devel/py-google-re2/Makefile | 2 +-
devel/py-google-re2/files/patch-setup.py | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/devel/py-google-re2/Makefile b/devel/py-google-re2/Makefile
index 38938a685a49..8cb0a36fae5d 100644
--- a/devel/py-google-re2/Makefile
+++ b/devel/py-google-re2/Makefile
@@ -14,7 +14,7 @@ LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR}
LIB_DEPENDS= libre2.so:devel/re2
-USES= compiler:c11 localbase python
+USES= compiler:c++17-lang localbase python
USE_PYTHON= autoplist concurrent distutils
post-install:
diff --git a/devel/py-google-re2/files/patch-setup.py b/devel/py-google-re2/files/patch-setup.py
new file mode 100644
index 000000000000..e27baf975d57
--- /dev/null
+++ b/devel/py-google-re2/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2023-07-31 16:01:19 UTC
++++ setup.py
+@@ -79,7 +79,7 @@ ext_module = setuptools.Extension(
+ sources=['_re2.cc'],
+ include_dirs=list(include_dirs()),
+ libraries=['re2'],
+- extra_compile_args=['-fvisibility=hidden'],
++ extra_compile_args=['--std=c++17', '-fvisibility=hidden'],
+ )
+
+ setuptools.setup(