Skip to content

Commit 83e55bf

Browse files
committed
Add patch for lxml 5.3.0
1 parent d5251a7 commit 83e55bf

File tree

3 files changed

+29
-15
lines changed

3 files changed

+29
-15
lines changed

graalpython/lib-graalpython/patches/lxml/lxml-4.9.1.patch

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,3 @@ index 6758914..288d09e 100644
2020
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
2121
OPTION_WITH_REFNANNY = has_option('with-refnanny')
2222
OPTION_WITH_COVERAGE = has_option('with-coverage')
23-
diff --git a/src/lxml/etree.c b/src/lxml/etree.c
24-
index 28ad548..cb066dc 100644
25-
--- a/src/lxml/etree.c
26-
+++ b/src/lxml/etree.c
27-
@@ -49931,6 +49931,10 @@ static void __pyx_f_4lxml_5etree__receiveGenericError(void *__pyx_v_c_log_handle
28-
* c_text = c_str # msg == "%s..."
29-
*/
30-
__pyx_v_c_str = va_charptr(__pyx_v_args);
31-
+ /* XXX GraalVM change: Sulong doesn't support varargs in a native callback */
32-
+ if (__pyx_v_c_str == NULL) {
33-
+ __pyx_v_c_str = "<unknown>";
34-
+ }
35-
36-
/* "src/lxml/xmlerror.pxi":724
37-
* format_count += 1
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index 2c463d7..31010c2 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -1,5 +1,6 @@
6+
[build-system]
7+
requires = ["Cython>=3.0.11", "setuptools", "wheel"]
8+
+build-backend = "setuptools.build_meta:__legacy__"
9+
10+
[tool.cibuildwheel]
11+
build-verbosity = 2
12+
diff --git a/setupinfo.py b/setupinfo.py
13+
index 97e3399..9079171 100644
14+
--- a/setupinfo.py
15+
+++ b/setupinfo.py
16+
@@ -563,7 +563,7 @@ OPTION_WITH_UNICODE_STRINGS = has_option('with-unicode-strings')
17+
OPTION_WITHOUT_ASSERT = has_option('without-assert')
18+
OPTION_WITHOUT_THREADING = has_option('without-threading')
19+
OPTION_WITHOUT_CYTHON = has_option('without-cython')
20+
-OPTION_WITH_CYTHON = has_option('with-cython')
21+
+OPTION_WITH_CYTHON = True
22+
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
23+
OPTION_WITH_REFNANNY = has_option('with-refnanny')
24+
OPTION_WITH_COVERAGE = has_option('with-coverage')

graalpython/lib-graalpython/patches/lxml/metadata.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[[rules]]
2+
version = '== 5.3.0'
3+
patch = 'lxml-5.3.0.patch'
4+
license = 'BSD-3-Clause'
5+
16
[[rules]]
27
version = '== 4.9.1'
38
patch = 'lxml-4.9.1.patch'

0 commit comments

Comments
 (0)