Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2026 19:37:41 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9b65d0f6ca3c - main - devel/py-lxml5: Remove obsoleted port
Message-ID:  <698b8905.38bdb.32c7ea1f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

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

commit 9b65d0f6ca3c8bd4cd25894e69393ea9412d0488
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-02-10 19:31:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-02-10 19:31:48 +0000

    devel/py-lxml5: Remove obsoleted port
    
    Use devel/py-lxml instead.
---
 MOVED                                     |  1 +
 devel/Makefile                            |  1 -
 devel/py-lxml5/Makefile                   | 30 -------------------
 devel/py-lxml5/distinfo                   |  3 --
 devel/py-lxml5/files/patch-cython         | 49 -------------------------------
 devel/py-lxml5/files/patch-pyproject.toml |  9 ------
 devel/py-lxml5/pkg-descr                  |  3 --
 7 files changed, 1 insertion(+), 95 deletions(-)

diff --git a/MOVED b/MOVED
index adecbff80051..0bee8bc5546d 100644
--- a/MOVED
+++ b/MOVED
@@ -5113,3 +5113,4 @@ devel/py-Levenshtein|devel/py-levenshtein|2026-02-07|Rename to match upstream
 misc/py-natten|misc/py-NATTEN|2026-02-10|Rename to match name in PyPI
 net/tcpkali||2026-02-10|Upstream dead and compromised
 devel/py-hishel0|devel/py-hishel|2026-02-10|Remove obsoleted port. Use devel/py-hishel instead
+devel/py-lxml5|devel/py-lxml|2026-02-10|Remove obsoleted port. Use devel/py-lxml instead
diff --git a/devel/Makefile b/devel/Makefile
index fde1e252c690..587d780567d5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5268,7 +5268,6 @@
     SUBDIR += py-lxml
     SUBDIR += py-lxml-html-clean
     SUBDIR += py-lxml-stubs
-    SUBDIR += py-lxml5
     SUBDIR += py-mac-vendor-lookup
     SUBDIR += py-macholib
     SUBDIR += py-madoka
diff --git a/devel/py-lxml5/Makefile b/devel/py-lxml5/Makefile
deleted file mode 100644
index b7b58eb332cb..000000000000
--- a/devel/py-lxml5/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-PORTNAME=	lxml
-PORTVERSION=	5.4.0
-PORTREVISION=	2
-CATEGORIES=	devel python
-MASTER_SITES=	PYPI \
-		https://github.com/lxml/lxml/releases/download/lxml-${PORTVERSION}/
-PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-PKGNAMESUFFIX=	5
-
-MAINTAINER=	sunpoet@FreeBSD.org
-COMMENT=	Pythonic XML processing library combining libxml2/libxslt
-WWW=		https://lxml.de/ \
-		https://github.com/lxml/lxml
-
-LICENSE=	BSD3CLAUSE
-LICENSE_FILE=	${WRKSRC}/LICENSE.txt
-
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-
-USES=		cpe gnome python
-USE_GNOME=	libxml2 libxslt
-USE_PYTHON=	autoplist concurrent cython pep517
-
-CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}lxml ${PYTHON_PKGNAMEPREFIX}lxml5
-
-post-install:
-	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
-
-.include <bsd.port.mk>
diff --git a/devel/py-lxml5/distinfo b/devel/py-lxml5/distinfo
deleted file mode 100644
index be9fd931eac9..000000000000
--- a/devel/py-lxml5/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1745936150
-SHA256 (lxml-5.4.0.tar.gz) = d12832e1dbea4be280b22fd0ea7c9b87f0d8fc51ba06e92dc62d52f804f78ebd
-SIZE (lxml-5.4.0.tar.gz) = 3679479
diff --git a/devel/py-lxml5/files/patch-cython b/devel/py-lxml5/files/patch-cython
deleted file mode 100644
index 8e0de0845e51..000000000000
--- a/devel/py-lxml5/files/patch-cython
+++ /dev/null
@@ -1,49 +0,0 @@
-Obtained from:	https://github.com/lxml/lxml/commit/6a0f0f09e26d574e75848d0ca1ef00e97ee49658
-		https://github.com/lxml/lxml/commit/99c81a6694f92dd09626f861f313505ab667b948
-
---- setupinfo.py.orig	2025-04-22 12:23:54 UTC
-+++ setupinfo.py
-@@ -176,34 +176,6 @@ def ext_modules(static_include_dirs, static_library_di
-         from Cython.Build import cythonize
-         result = cythonize(result, compiler_directives=cythonize_directives)
- 
--        # Fix compiler warning due to missing pragma-push in Cython 3.0.9.
--        for ext in result:
--            for source_file in ext.sources:
--                if not source_file.endswith('.c'):
--                    continue
--                with open(source_file, 'rb') as f:
--                    lines = f.readlines()
--                if b'Generated by Cython 3.0.9' not in lines[0]:
--                    continue
--
--                modified = False
--                temp_file = source_file + ".tmp"
--                with open(temp_file, 'wb') as f:
--                    last_was_push = False
--                    for line in lines:
--                        if b'#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"' in line and not last_was_push:
--                            f.write(b"#pragma GCC diagnostic push\n")
--                            modified = True
--                        last_was_push = b'#pragma GCC diagnostic push' in line
--                        f.write(line)
--
--                if modified:
--                    print("Fixed Cython 3.0.9 generated source file " + source_file)
--                    os.unlink(source_file)
--                    os.rename(temp_file, source_file)
--                else:
--                    os.unlink(temp_file)
--
-     # for backwards compatibility reasons, provide "etree[_api].h" also as "lxml.etree[_api].h"
-     for header_filename in HEADER_FILES:
-         src_file = os.path.join(SOURCE_PATH, 'lxml', header_filename)
-@@ -367,6 +339,8 @@ def define_macros():
-         macros.append(('LXML_UNICODE_STRINGS', '1'))
-     if OPTION_WITH_COVERAGE:
-         macros.append(('CYTHON_TRACE_NOGIL', '1'))
-+        # coverage.py does not support Cython together with sys.monitoring.
-+        macros.append(('CYTHON_USE_SYS_MONITORING', '0'))
-     if OPTION_BUILD_LIBXML2XSLT:
-         macros.append(('LIBXML_STATIC', None))
-         macros.append(('LIBXSLT_STATIC', None))
diff --git a/devel/py-lxml5/files/patch-pyproject.toml b/devel/py-lxml5/files/patch-pyproject.toml
deleted file mode 100644
index acf2d2f5a6ab..000000000000
--- a/devel/py-lxml5/files/patch-pyproject.toml
+++ /dev/null
@@ -1,9 +0,0 @@
---- pyproject.toml.orig	2025-04-22 12:23:54 UTC
-+++ pyproject.toml
-@@ -1,5 +1,5 @@
- [build-system]
--requires = ["Cython>=3.0.11, < 3.1.0", "setuptools", "wheel"]
-+requires = ["Cython>=3.1.0", "setuptools", "wheel"]
- 
- [tool.cibuildwheel]
- build-verbosity = 1
diff --git a/devel/py-lxml5/pkg-descr b/devel/py-lxml5/pkg-descr
deleted file mode 100644
index 3f8964774fe1..000000000000
--- a/devel/py-lxml5/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-lxml is the most feature-rich and easy-to-use library for processing XML and
-HTML in the Python language. It's also very fast and memory friendly, just so
-you know.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698b8905.38bdb.32c7ea1f>