office-gobmx/external/libxml2/libxml2-config.patch.1
Michael Stahl bf0c6a98ae libxml2: upgrade to release 2.9.12
Fixes:
CVE-2021-3516 CVE-2021-3517 CVE-2021-3518 CVE-2021-3537 CVE-2021-3541

* external/libxml2/ubsan.patch.0: remove, fixed upstream

Change-Id: I347dc854b862e78bde87d3e57cf5fdb584ca5673
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115913
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-05-21 15:31:22 +02:00

43 lines
1,013 B
Groff

Hack the xml2-config to return paths into WORKDIR.
--- a/xml2-config.in 2009-12-17 11:45:20.000000000 +0000
+++ b/xml2-config.in 2009-12-17 11:45:36.000000000 +0000
@@ -1,9 +1,14 @@
#! /bin/sh
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-includedir=@includedir@
-libdir=@libdir@
+#prefix=@prefix@
+#exec_prefix=@exec_prefix@
+#includedir=@includedir@
+#libdir=@libdir@
+
+prefix=${WORKDIR}/UnpackedTarball/libxml2
+exec_prefix=${WORKDIR}/UnpackedTarball/libxml2
+includedir=${WORKDIR}/UnpackedTarball/libxml2/include
+libdir=${WORKDIR}/UnpackedTarball/libxml2/.libs
cflags=
libs=
@@ -67,7 +72,8 @@
;;
--cflags)
- cflags="@XML_INCLUDEDIR@ @XML_CFLAGS@"
+ #cflags="@XML_INCLUDEDIR@ @XML_CFLAGS@"
+ cflags="-I${includedir}"
;;
--libtool-libs)
@@ -91,7 +96,8 @@
libs="@XML_LIBDIR@ $libs"
fi
- libs="$libs @WIN32_EXTRA_LIBADD@"
+ #libs="$libs @WIN32_EXTRA_LIBADD@"
+ libs="-L${libdir} -lxml2 -lm"
;;
*)