git: f4c3c373d989 - 2026Q2 - lang/python3: use textproc/expat2 for pyexpat instead of bundled
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Jun 2026 14:02:56 UTC
The branch 2026Q2 has been updated by vishwin:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f4c3c373d989fe8ae7485d62aac79de0c80eb03c
commit f4c3c373d989fe8ae7485d62aac79de0c80eb03c
Author: Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-06-13 04:06:37 +0000
Commit: Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-06-13 14:02:28 +0000
lang/python3: use textproc/expat2 for pyexpat instead of bundled
...to match lang/python314
Event: Works Must Run
(cherry picked from commit b75df1fb4d9e2471f2ce0a6d8bc1f9be8626fbcb)
---
lang/python310/Makefile | 7 ++++---
lang/python311/Makefile | 7 ++++---
lang/python312/Makefile | 7 ++++---
lang/python313/Makefile | 6 ++++--
4 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/lang/python310/Makefile b/lang/python310/Makefile
index 265bdd0748dd..839d63e5f316 100644
--- a/lang/python310/Makefile
+++ b/lang/python310/Makefile
@@ -1,6 +1,6 @@
PORTNAME= python
DISTVERSION= ${PYTHON_DISTVERSION}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang python
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
PKGNAMESUFFIX= ${PYTHON_SUFFIX}
@@ -20,7 +20,8 @@ EXPIRATION_DATE=2026-09-30
LICENSE= PSFL
-LIB_DEPENDS= libffi.so:devel/libffi
+LIB_DEPENDS= libexpat.so:textproc/expat2 \
+ libffi.so:devel/libffi
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
python:${PYTHON_DISTVERSION:R},env readline shebangfix ssl tar:xz
@@ -34,7 +35,7 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
Lib/test/ziptestdata/header.sh
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
-CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
+CONFIGURE_ARGS+= --enable-shared --without-ensurepip --with-system-expat \
--with-system-ffi
CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations
diff --git a/lang/python311/Makefile b/lang/python311/Makefile
index e47da1b40ee2..c5b0536b6109 100644
--- a/lang/python311/Makefile
+++ b/lang/python311/Makefile
@@ -1,6 +1,6 @@
PORTNAME= python
DISTVERSION= ${PYTHON_DISTVERSION}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang python
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
PKGNAMESUFFIX= ${PYTHON_SUFFIX}
@@ -17,7 +17,8 @@ WWW= https://www.python.org/
LICENSE= PSFL
-LIB_DEPENDS= libffi.so:devel/libffi
+LIB_DEPENDS= libexpat.so:textproc/expat2 \
+ libffi.so:devel/libffi
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
python:${PYTHON_DISTVERSION:R},env readline shebangfix ssl tar:xz
@@ -31,7 +32,7 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
Lib/test/ziptestdata/header.sh
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
-CONFIGURE_ARGS+= --enable-shared --without-ensurepip \
+CONFIGURE_ARGS+= --enable-shared --without-ensurepip --with-system-expat \
--with-system-ffi
CONFIGURE_ENV+= OPT="" ac_cv_prog_cc_g=false # Null out OPT to respect user CFLAGS and remove optimizations
diff --git a/lang/python312/Makefile b/lang/python312/Makefile
index 35c37d2779b8..a40aeadf8914 100644
--- a/lang/python312/Makefile
+++ b/lang/python312/Makefile
@@ -1,6 +1,6 @@
PORTNAME= python
DISTVERSION= ${PYTHON_DISTVERSION}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang python
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
PKGNAMESUFFIX= ${PYTHON_SUFFIX}
@@ -17,7 +17,8 @@ WWW= https://www.python.org/
LICENSE= PSFL
-LIB_DEPENDS= libffi.so:devel/libffi
+LIB_DEPENDS= libexpat.so:textproc/expat2 \
+ libffi.so:devel/libffi
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
python:${PYTHON_DISTVERSION:R},env readline shebangfix ssl tar:xz
@@ -31,7 +32,7 @@ SHEBANG_FILES+= Lib/test/ziptestdata/exe_with_z64 \
Lib/test/ziptestdata/header.sh
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
-CONFIGURE_ARGS+= --enable-shared --without-ensurepip
+CONFIGURE_ARGS+= --enable-shared --without-ensurepip --with-system-expat
CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations
INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files
diff --git a/lang/python313/Makefile b/lang/python313/Makefile
index 7562e21ea2a0..9fd6fa19ffc4 100644
--- a/lang/python313/Makefile
+++ b/lang/python313/Makefile
@@ -1,5 +1,6 @@
PORTNAME= python
DISTVERSION= ${PYTHON_DISTVERSION}
+PORTREVISION= 1
CATEGORIES= lang python
MASTER_SITES= PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
PKGNAMESUFFIX= ${PYTHON_BASESUFFIX}${THREADFLAG}
@@ -14,7 +15,8 @@ WWW= https://www.python.org/
LICENSE= PSFL
-LIB_DEPENDS= libffi.so:devel/libffi
+LIB_DEPENDS= libexpat.so:textproc/expat2 \
+ libffi.so:devel/libffi
TEST_DEPENDS= gdb:devel/gdb
USES= compiler:c11 cpe ncurses pathfix pkgconfig \
@@ -29,7 +31,7 @@ SHEBANG_FILES= Lib/test/archivetestdata/exe_with_z64 \
Lib/test/archivetestdata/header.sh
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
-CONFIGURE_ARGS+= --enable-shared --without-ensurepip
+CONFIGURE_ARGS+= --enable-shared --without-ensurepip --with-system-expat
CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations
INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files