Skip to content

Commit

Permalink
python-lxml: fix crash on import after libxml2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jun 23, 2023
1 parent b99471a commit c0880e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mingw-w64-python-lxml/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _realname=lxml
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=4.9.2
pkgrel=1
pkgrel=2
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}=${pkgver}"
"${MINGW_PACKAGE_PREFIX}-python-${_realname}-docs")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}"
Expand Down Expand Up @@ -33,15 +33,18 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cython"
"${MINGW_PACKAGE_PREFIX}-cc")
source=("https://github.com/lxml/lxml/archive/${_realname}-${pkgver}.tar.gz"
"use-distutils-get_platform.patch"
"0001-setupinfo-fix-library-name.patch")
"0001-setupinfo-fix-library-name.patch"
"https://github.com/lxml/lxml/commit/53eb0f82641cbfc968f0fb8ca6d81767fcfe1a5b.patch")
sha256sums=('c057e334efc357fc88eb71b888d2df3a44cf3c7aaac56a8753e92090c5217050'
'6e58bd3072a6a77bf50c4c203beef589c97873e9902d4c8c6151abe71035f186'
'7d9e5380a8461e3c2bb4b8e0ece52011b26e3112b94b97e548c927524cfc93de')
'7d9e5380a8461e3c2bb4b8e0ece52011b26e3112b94b97e548c927524cfc93de'
'27b1051219a7036938065d67cc54a8bcc838e0de79d748ddff03fced83ea03ef')

prepare() {
pushd "${_realname}-${_realname}-${pkgver}"
patch -p1 -i "${srcdir}/use-distutils-get_platform.patch"
patch -p1 -i "${srcdir}/0001-setupinfo-fix-library-name.patch"
patch -p1 -i "${srcdir}/53eb0f82641cbfc968f0fb8ca6d81767fcfe1a5b.patch"
popd

rm -rf python-build-${MSYSTEM} | true
Expand Down

0 comments on commit c0880e6

Please sign in to comment.