Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2026 04:08:29 +0000
From:      Charlie Li <vishwin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b75df1fb4d9e - main - lang/python3: use textproc/expat2 for pyexpat instead of bundled
Message-ID:  <6a2cd7bd.3c193.2dd764e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b75df1fb4d9e2471f2ce0a6d8bc1f9be8626fbcb

commit b75df1fb4d9e2471f2ce0a6d8bc1f9be8626fbcb
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-06-13 04:06:37 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-06-13 04:06:37 +0000

    lang/python3: use textproc/expat2 for pyexpat instead of bundled
    
    ...to match lang/python314
    
    Event: Works Must Run
---
 lang/python310/Makefile | 7 ++++---
 lang/python311/Makefile | 7 ++++---
 lang/python312/Makefile | 7 ++++---
 lang/python313/Makefile | 7 ++++---
 4 files changed, 16 insertions(+), 12 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 8c34bfd1f786..e05237250d4c 100644
--- a/lang/python313/Makefile
+++ b/lang/python313/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	python
 DISTVERSION=	${PYTHON_DISTVERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang python
 MASTER_SITES=	PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
 PKGNAMESUFFIX=	${PYTHON_BASESUFFIX}${THREADFLAG}
@@ -15,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 \
@@ -30,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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a2cd7bd.3c193.2dd764e>