From d843cfd1f814d62920de1644d578480936a4e88e Mon Sep 17 00:00:00 2001 From: psykose Date: Fri, 28 Apr 2023 21:36:14 +0000 Subject: [PATCH] main/py3-lxml: fix check with new libxml --- main/py3-lxml/APKBUILD | 2 ++ main/py3-lxml/libxml-2.11.0.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 main/py3-lxml/libxml-2.11.0.patch diff --git a/main/py3-lxml/APKBUILD b/main/py3-lxml/APKBUILD index 140fe8994bc..daadb8d7214 100644 --- a/main/py3-lxml/APKBUILD +++ b/main/py3-lxml/APKBUILD @@ -19,6 +19,7 @@ makedepends=" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz libxml-2.10.4.patch + libxml-2.11.0.patch tests-fix-encoding-name.patch " builddir="$srcdir/$_pkgname-$pkgver" @@ -49,5 +50,6 @@ package() { sha512sums=" 4597784c96219145fef30607f257097ad312264a6796e65b3dc74463853cd29f55379b6a903b401c1120750126b57f58dd9fc459dd453e57030883fc76b87ea3 lxml-4.9.2.tar.gz 9602b2d704dfa85bc76a84c905531ae418c326b93b601da83ad4e14460551f4eb2ddde406e67de181337028f3d591b9d537c6637ec2bbc7dd576cfbd1a50552c libxml-2.10.4.patch +6436f87042563bb3a08bd7d0216fdb284d639b1a72fde77dce75d7c3e63f4f18ba115df9540fe4298f558df53f9dbfbd781374138544e8e5d9cb5ca5928f343c libxml-2.11.0.patch ef5ba4064166443e07040db315173a4d0cb0d83eb3cd49623f210253a25433ec1c408d6d8e538f93498a211bc1695fdaa3e39f8ac75f36a3319c38bd96ba73eb tests-fix-encoding-name.patch " diff --git a/main/py3-lxml/libxml-2.11.0.patch b/main/py3-lxml/libxml-2.11.0.patch new file mode 100644 index 00000000000..fc039a2c485 --- /dev/null +++ b/main/py3-lxml/libxml-2.11.0.patch @@ -0,0 +1,12 @@ +diff --git a/src/lxml/tests/test_io.py b/src/lxml/tests/test_io.py +index cbdbcef..efbd3fd 100644 +--- a/src/lxml/tests/test_io.py ++++ b/src/lxml/tests/test_io.py +@@ -312,6 +312,7 @@ class _IOTestCaseBase(HelperTestCase): + self.assertEqual(5, len(boms)) + xml = uxml.encode("utf-16") + self.assertTrue(xml[:2] in boms, repr(xml[:2])) ++ return True + + f = tempfile.NamedTemporaryFile(delete=False) + try: