From 645fb83fed31a231e1c1648df09f11438d708644 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sat, 10 May 2025 22:23:16 +0200 Subject: [PATCH] python-lxml: backport build fix for cython 3.1.0 --- python-lxml/PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/python-lxml/PKGBUILD b/python-lxml/PKGBUILD index 8b2023b3..532e5142 100644 --- a/python-lxml/PKGBUILD +++ b/python-lxml/PKGBUILD @@ -4,7 +4,7 @@ _realname=lxml pkgbase="python-${_realname}" pkgname=("python-${_realname}") pkgver=5.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Python binding for the libxml2 and libxslt libraries" arch=('i686' 'x86_64') url="https://lxml.de/" @@ -25,12 +25,17 @@ makedepends=( "python-build" "python-installer" ) -source=("https://github.com/lxml/lxml/archive/${_realname}-${pkgver}.tar.gz") -sha256sums=('12ed971a99bd07977e236bf59314cfd53fbf5d59f39d4a13caad901c7fceb0a2') +source=("https://github.com/lxml/lxml/archive/${_realname}-${pkgver}.tar.gz" + "https://github.com/lxml/lxml/commit/6d5d6aed2e38e1abc625f29c0b3e97fc8c60ae3b.patch") +sha256sums=('12ed971a99bd07977e236bf59314cfd53fbf5d59f39d4a13caad901c7fceb0a2' + 'd7899ff7ba0df318824859dbf474d2bfe44c07ddfaa81a132223450737a756a9') prepare() { mv "lxml-lxml-${pkgver}" "lxml-${pkgver}" + cd "${_realname}-${pkgver}" + # Fix build with Cython 3.1.0 + patch -p1 -i "${srcdir}/6d5d6aed2e38e1abc625f29c0b3e97fc8c60ae3b.patch" } build() {