aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2026-07-06 15:39:33 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2026-07-08 08:49:11 +0000
commitd587084a02595710a744afda290e36469bb0b4a0 (patch)
tree6d173cfccbaf7ff90590bdd13fc9ca28fae7cc9a
parenta359b138185ed85c15f255775cf24e04e0ef69c5 (diff)
net/openvswitch: fix build with Python 3.12
Instead of extending the list of Python versions even further, explicitly pass in the name of the Python interpreter as PYTHON3. Approved by: portmgr (build fix blanket)
-rw-r--r--net/openvswitch/Makefile1
-rw-r--r--net/openvswitch/files/patch-configure11
2 files changed, 1 insertions, 11 deletions
diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile
index d293ed47073b..8bd72c253942 100644
--- a/net/openvswitch/Makefile
+++ b/net/openvswitch/Makefile
@@ -33,6 +33,7 @@ SHEBANG_FILES= ipsec/ovs-monitor-ipsec.in \
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
+CONFIGURE_ENV= PYTHON3=${PYTHON_CMD}
CONFIGURE_ARGS= --enable-shared --disable-static --localstatedir=/var \
--with-dbdir=/var/db/${PORTNAME} \
--with-openssl=${OPENSSLBASE}
diff --git a/net/openvswitch/files/patch-configure b/net/openvswitch/files/patch-configure
deleted file mode 100644
index 8b999fe85ad5..000000000000
--- a/net/openvswitch/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2021-02-15 18:24:25 UTC
-+++ configure
-@@ -18326,7 +18326,7 @@ else
- ovs_cv_python3=$PYTHON3
- else
- ovs_cv_python3=no
-- for binary in python3 python3.4 python3.5 python3.6 python3.7; do
-+ for binary in python3 python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 python3.10 python3.11; do
- ovs_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for dir in $PATH; do
- IFS=$ovs_save_IFS