upgrade to libxml2-2.11.4
'checked' field removed with:ce76ebfd13
win32 'run_debug' removed with:59f2f60e3e
add libxml2-XMLCALL-redefine.patch.0 to avoid: UnpackedTarball\libxml2\include\libxml/xmlexports.h(41): error C2220: the following warning is treated as an error UnpackedTarball\libxml2\include\libxml/xmlexports.h(41): warning C4005: 'XMLCALL': macro redefinition UnpackedTarball\expat\lib\expat_external.h(69): note: see previous definition of 'XMLCALL' Change-Id: Ia9b1540dc1b4eccf91662c8d995c036f71de6fc6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152176 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
f128fc5dbb
commit
fd6cbd983a
9 changed files with 35 additions and 7 deletions
|
@ -339,9 +339,9 @@ XMLSEC_TARBALL := xmlsec1-1.2.37.tar.gz
|
|||
# three static lines
|
||||
# so that git cherry-pick
|
||||
# will not run into conflicts
|
||||
LIBXML_SHA256SUM := ed0c91c5845008f1936739e4eee2035531c1c94742c6541f44ee66d885948d45
|
||||
LIBXML_SHA256SUM := 737e1d7f8ab3f139729ca13a2494fd17bf30ddb4b7a427cf336252cab57f57f7
|
||||
LIBXML_VERSION_MICRO := 4
|
||||
LIBXML_TARBALL := libxml2-2.10.$(LIBXML_VERSION_MICRO).tar.xz
|
||||
LIBXML_TARBALL := libxml2-2.11.$(LIBXML_VERSION_MICRO).tar.xz
|
||||
# three static lines
|
||||
# so that git cherry-pick
|
||||
# will not run into conflicts
|
||||
|
|
2
external/libxml2/ExternalPackage_libxml2.mk
vendored
2
external/libxml2/ExternalPackage_libxml2.mk
vendored
|
@ -21,7 +21,7 @@ else # COM=MSC
|
|||
$(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,win32/bin.msvc/libxml2.dll))
|
||||
endif
|
||||
else # OS!=WNT
|
||||
$(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.so.2,.libs/libxml2.so.2.10.$(LIBXML_VERSION_MICRO)))
|
||||
$(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.so.2,.libs/libxml2.so.2.11.$(LIBXML_VERSION_MICRO)))
|
||||
endif
|
||||
endif # DISABLE_DYNLOADING
|
||||
|
||||
|
|
4
external/libxml2/ExternalProject_libxml2.mk
vendored
4
external/libxml2/ExternalProject_libxml2.mk
vendored
|
@ -26,7 +26,7 @@ $(call gb_ExternalProject_get_state_target,libxml2,build):
|
|||
$(call gb_Trace_StartRange,libxml2,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
cscript /e:javascript configure.js \
|
||||
iconv=no icu=yes sax1=yes $(if $(MSVC_USE_DEBUG_RUNTIME),run_debug=yes cruntime=/MDd) \
|
||||
iconv=no icu=yes sax1=yes $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \
|
||||
$(if $(filter TRUE,$(ENABLE_DBGUTIL)),debug=yes) \
|
||||
&& nmake \
|
||||
,win32)
|
||||
|
@ -46,7 +46,7 @@ $(call gb_ExternalProject_get_state_target,libxml2,build):
|
|||
$(if $(SYSBASE),-I$(SYSBASE)/usr/include) \
|
||||
$(call gb_ExternalProject_get_build_flags,libxml2)" \
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
|
||||
&& $(MAKE) \
|
||||
&& $(MAKE) libxml2.la \
|
||||
)
|
||||
$(call gb_Trace_EndRange,libxml2,EXTERNAL)
|
||||
endif
|
||||
|
|
1
external/libxml2/UnpackedTarball_libxml2.mk
vendored
1
external/libxml2/UnpackedTarball_libxml2.mk
vendored
|
@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_update_autoconf_configs,libxml2))
|
|||
$(eval $(call gb_UnpackedTarball_add_patches,libxml2,\
|
||||
external/libxml2/libxml2-global-symbols.patch \
|
||||
external/libxml2/libxml2-vc10.patch \
|
||||
external/libxml2/libxml2-XMLCALL-redefine.patch.0 \
|
||||
$(if $(filter ANDROID,$(OS)),external/libxml2/libxml2-android.patch) \
|
||||
$(if $(gb_Module_CURRENTMODULE_SYMBOLS_ENABLED), \
|
||||
external/libxml2/libxml2-icu-sym.patch.0, \
|
||||
|
|
11
external/libxml2/libxml2-XMLCALL-redefine.patch.0
vendored
Normal file
11
external/libxml2/libxml2-XMLCALL-redefine.patch.0
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- include/libxml/xmlexports.h 2023-05-24 12:48:46.179570708 +0100
|
||||
+++ include/libxml/xmlexports.h 2023-05-24 12:48:56.563577488 +0100
|
||||
@@ -38,8 +38,6 @@
|
||||
|
||||
/** DOC_DISABLE */
|
||||
/* Compatibility */
|
||||
-#define XMLCALL
|
||||
-#define XMLCDECL
|
||||
#if !defined(LIBXML_DLL_IMPORT)
|
||||
#define LIBXML_DLL_IMPORT XMLPUBVAR
|
||||
#endif
|
2
external/libxml2/libxml2-icu-sym.patch.0
vendored
2
external/libxml2/libxml2-icu-sym.patch.0
vendored
|
@ -25,7 +25,7 @@ diff -up win32/Makefile.msvc.dt win32/Makefile.msvc
|
|||
!if "$(STATIC)" == "1"
|
||||
LIBS = $(LIBS) advapi32.lib sicuuc.lib sicuin.lib sicudt.lib
|
||||
!else
|
||||
+!if "$(WITH_RUN_DEBUG)" == "1"
|
||||
+!if "$(DEBUG)" == "1"
|
||||
+LIBS = $(LIBS) icuind.lib icuucd.lib icudtd.lib
|
||||
+!else
|
||||
LIBS = $(LIBS) icuuc.lib icuin.lib icudt.lib
|
||||
|
|
2
external/libxml2/libxml2-icu.patch.0
vendored
2
external/libxml2/libxml2-icu.patch.0
vendored
|
@ -23,7 +23,7 @@ diff -up win32/Makefile.msvc.dt win32/Makefile.msvc
|
|||
!if "$(STATIC)" == "1"
|
||||
LIBS = $(LIBS) advapi32.lib sicuuc.lib sicuin.lib sicudt.lib
|
||||
!else
|
||||
+!if "$(WITH_RUN_DEBUG)" == "1"
|
||||
+!if "$(DEBUG)" == "1"
|
||||
+LIBS = $(LIBS) icuind.lib icuucd.lib icudtd.lib
|
||||
+!else
|
||||
LIBS = $(LIBS) icuuc.lib icuin.lib icudt.lib
|
||||
|
|
1
external/redland/UnpackedTarball_raptor.mk
vendored
1
external/redland/UnpackedTarball_raptor.mk
vendored
|
@ -32,6 +32,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,raptor,\
|
|||
external/redland/raptor/0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1 \
|
||||
external/redland/raptor/libtool.patch \
|
||||
external/redland/raptor/Wint-conversion.patch \
|
||||
external/redland/raptor/raptor-libxml2-11.patch.1 \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
15
external/redland/raptor/raptor-libxml2-11.patch.1
vendored
Normal file
15
external/redland/raptor/raptor-libxml2-11.patch.1
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- raptor/src/raptor_libxml.c 2023-05-24 09:55:21.589275008 +0100
|
||||
+++ raptor/src/raptor_libxml.c 2023-05-24 09:56:41.100324810 +0100
|
||||
@@ -246,9 +246,11 @@
|
||||
|
||||
ret->owner = 1;
|
||||
|
||||
-#if LIBXML_VERSION >= 20627
|
||||
+#if LIBXML_VERSION >= 20627 && LIBXML_VERSION < 21100
|
||||
/* Checked field was released in 2.6.27 on 2006-10-25
|
||||
* http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6
|
||||
+ * and removed with
|
||||
+ * https://gitlab.gnome.org/GNOME/libxml2/-/commit/ce76ebfd1312459951d555ad9d87fb9a89eede55
|
||||
*
|
||||
*/
|
||||
|
Loading…
Reference in a new issue