lxml: upgrade to release 4.9.2
* external/lxml/Wincompatible-function-pointer-types.patch: fixed upstream. * backport external/lxml/0001-Make-regexp-string-raw-to-correct-its-escape-sequenc.patch.1 from <https://github.com/lxml/lxml/pull/371>. Changelog: https://lxml.de/4.9/changes-4.9.2.html Change-Id: I8ea947b3b1fb30b9427d066bd41a5d4693ceedbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153863 Tested-by: Jenkins Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
This commit is contained in:
parent
fb68f0761c
commit
a4b4a90557
6 changed files with 49 additions and 28 deletions
|
@ -431,8 +431,8 @@ LPSOLVE_TARBALL := 26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
|
|||
# three static lines
|
||||
# so that git cherry-pick
|
||||
# will not run into conflicts
|
||||
LXML_SHA256SUM := 940caef1ec7c78e0c34b0f6b94fe42d0f2022915ffc78643d28538a5cfd0f40e
|
||||
LXML_TARBALL := lxml-4.1.1.tgz
|
||||
LXML_SHA256SUM := 2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67
|
||||
LXML_TARBALL := lxml-4.9.2.tgz
|
||||
# three static lines
|
||||
# so that git cherry-pick
|
||||
# will not run into conflicts
|
||||
|
|
31
external/lxml/0001-Make-regexp-string-raw-to-correct-its-escape-sequenc.patch.1
vendored
Normal file
31
external/lxml/0001-Make-regexp-string-raw-to-correct-its-escape-sequenc.patch.1
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
From 9686dd9c7670d18acff6360c8444520273d5f1b2 Mon Sep 17 00:00:00 2001
|
||||
From: Jakub Wilk <jwilk@jwilk.net>
|
||||
Date: Fri, 16 Jun 2023 09:24:21 +0200
|
||||
Subject: [PATCH] Make regexp string raw to correct its escape sequence usage
|
||||
(GH-371)
|
||||
|
||||
Fixes:
|
||||
|
||||
$ python3 -Wd setup.py
|
||||
setup.py:117: DeprecationWarning: invalid escape sequence \.
|
||||
...
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 709cbc68..7a3f46e5 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -114,7 +114,7 @@ extra_options['packages'] = [
|
||||
|
||||
def setup_extra_options():
|
||||
is_interesting_package = re.compile('^(libxml|libxslt|libexslt)$').match
|
||||
- is_interesting_header = re.compile('^(zconf|zlib|.*charset)\.h$').match
|
||||
+ is_interesting_header = re.compile(r'^(zconf|zlib|.*charset)\.h$').match
|
||||
|
||||
def extract_files(directories, pattern='*'):
|
||||
def get_files(root, dir_path, files):
|
||||
--
|
||||
2.39.2
|
||||
|
6
external/lxml/README
vendored
6
external/lxml/README
vendored
|
@ -1,7 +1,7 @@
|
|||
LXML XML processing python Library from [http://lxml.de/].
|
||||
LXML XML processing python Library from [https://lxml.de/].
|
||||
|
||||
This library is used for the .ui accessibility checker bin/gla11y
|
||||
|
||||
The archive was downloaded from:
|
||||
[http://lxml.de/files/lxml-4.1.1.tgz]
|
||||
on 2018-02-22.
|
||||
[https://lxml.de/files/lxml-4.9.2.tgz]
|
||||
on 2023-07-17.
|
||||
|
|
5
external/lxml/UnpackedTarball_lxml.mk
vendored
5
external/lxml/UnpackedTarball_lxml.mk
vendored
|
@ -11,10 +11,9 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,lxml))
|
|||
|
||||
$(eval $(call gb_UnpackedTarball_set_tarball,lxml,$(LXML_TARBALL)))
|
||||
|
||||
$(eval $(call gb_UnpackedTarball_set_patchlevel,lxml,0))
|
||||
|
||||
$(eval $(call gb_UnpackedTarball_add_patches,lxml, \
|
||||
external/lxml/Wincompatible-function-pointer-types.patch \
|
||||
external/lxml/0001-Make-regexp-string-raw-to-correct-its-escape-sequenc.patch.1 \
|
||||
external/lxml/replace-setuptools-with-distutils.patch.0 \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
--- src/lxml/etree.c
|
||||
+++ src/lxml/etree.c
|
||||
@@ -6810,7 +6810,7 @@
|
||||
static void __pyx_f_4lxml_5etree__xpath_function_call(xmlXPathParserContext *, int); /*proto*/
|
||||
static int __pyx_f_4lxml_5etree__register_xpath_function(void *, PyObject *, PyObject *); /*proto*/
|
||||
static int __pyx_f_4lxml_5etree__unregister_xpath_function(void *, PyObject *, PyObject *); /*proto*/
|
||||
-static void __pyx_f_4lxml_5etree__registerExsltFunctionsForNamespaces(void *, void *, xmlChar *); /*proto*/
|
||||
+static void __pyx_f_4lxml_5etree__registerExsltFunctionsForNamespaces(void *, void *, xmlChar const *); /*proto*/
|
||||
static PyObject *__pyx_f_4lxml_5etree__initXSLTResolverContext(struct __pyx_obj_4lxml_5etree__XSLTResolverContext *, struct __pyx_obj_4lxml_5etree__BaseParser *); /*proto*/
|
||||
static xmlDoc *__pyx_f_4lxml_5etree__xslt_resolve_from_python(const xmlChar *, void *, int, int *); /*proto*/
|
||||
static void __pyx_f_4lxml_5etree__xslt_store_resolver_exception(const xmlChar *, void *, xsltLoadType); /*proto*/
|
||||
@@ -175892,7 +175892,7 @@
|
||||
* c_href = <const_xmlChar*> _c_href
|
||||
*/
|
||||
|
||||
-static void __pyx_f_4lxml_5etree__registerExsltFunctionsForNamespaces(void *__pyx_v__c_href, void *__pyx_v__ctxt, xmlChar *__pyx_v_c_prefix) {
|
||||
+static void __pyx_f_4lxml_5etree__registerExsltFunctionsForNamespaces(void *__pyx_v__c_href, void *__pyx_v__ctxt, xmlChar const *__pyx_v_c_prefix) {
|
||||
const xmlChar *__pyx_v_c_href;
|
||||
xmlXPathContext *__pyx_v_ctxt;
|
||||
__Pyx_RefNannyDeclarations
|
11
external/lxml/replace-setuptools-with-distutils.patch.0
vendored
Normal file
11
external/lxml/replace-setuptools-with-distutils.patch.0
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- setupinfo.py
|
||||
+++ setupinfo.py
|
||||
@@ -4,7 +4,7 @@
|
||||
import os.path
|
||||
import subprocess
|
||||
|
||||
-from setuptools.command.build_ext import build_ext as _build_ext
|
||||
+from distutils.command.build_ext import build_ext as _build_ext
|
||||
from distutils.core import Extension
|
||||
from distutils.errors import CompileError, DistutilsOptionError
|
||||
from versioninfo import get_base_dir
|
Loading…
Reference in a new issue