python-overrides/lxml: fix build w/ libxml-2.15

Closes #76
This commit is contained in:
Maximilian Bosch 2025-10-27 11:45:15 +01:00
parent 6ae9b507c8
commit be208eac08
No known key found for this signature in database
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff --git a/src/lxml/etree.c b/src/lxml/etree.c
index 9fbfe5a..74c83c7 100644
--- a/src/lxml/etree.c
+++ b/src/lxml/etree.c
@@ -35183,7 +35183,6 @@ static void __pyx_f_4lxml_5etree_fixThreadDictNamesForDtd(xmlDtd *__pyx_v_c_dtd,
* _fixThreadDictPtr(&c_attribute.name, c_src_dict, c_dict)
* _fixThreadDictPtr(&c_attribute.prefix, c_src_dict, c_dict)
*/
- __pyx_f_4lxml_5etree__fixThreadDictPtr((&__pyx_v_c_attribute->defaultValue), __pyx_v_c_src_dict, __pyx_v_c_dict);
/* "src/lxml/proxy.pxi":578
* while c_attribute:

View file

@ -77,6 +77,7 @@ let
lxml = prev.lxml.overrideAttrs ( lxml = prev.lxml.overrideAttrs (
{ {
buildInputs ? [ ], buildInputs ? [ ],
patches ? [ ],
... ...
}: }:
{ {
@ -85,6 +86,13 @@ let
libxml2 libxml2
zlib zlib
]; ];
patches = patches ++ [
# The upstream fix for this is
# https://github.com/lxml/lxml/commit/f7a813483c4482dd114e7ee8b42b54337e285503,
# however, this doesn't help us here because the `etree.c` file is already generated
# (we're using the wheel), so we have to patch the C file directly.
./fix-lxml-libxml-2.15-build.patch
];
} }
); );
xmlsec = prev.xmlsec.overrideAttrs ( xmlsec = prev.xmlsec.overrideAttrs (