summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch
diff options
context:
space:
mode:
authorTony Tascioglu <tony.tascioglu@windriver.com>2021-05-20 17:13:04 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-21 15:18:23 +0100
commit91ffc0a96c2b01442ba5009eb17ed14fb55831ed (patch)
treed75978dfbf816a68aa453b197b3d0f2166a0b785 /meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch
parentd2ddc7020f070640ac1f2b7639fff028b400052c (diff)
downloadpoky-91ffc0a96c2b01442ba5009eb17ed14fb55831ed.tar.gz
libxml2: Update to 2.9.12
Drop CVE patches which are fixed by the new upstream version. Modify conflicting patches to apply to the new versions: libxml2/libxml-m4-use-pkgconfig.patch libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch Drop fix-python39, which is merged upstream. Removed hunk for tstLastError.py from libxml2/0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch since it has been fixed upstream by: 8c3e52e: Updated python/tests/tstLastError.py libxml2.registerErrorHandler(None,None): None is not acceptable as first argument failUnlessEqual replaced by assertEqual The checksums for the licence file changed because a typo was fixed across the files. The licence remains the same. The obsolete MD5 checksums for the tar files have been dropped in favor of SHA256. The new release also adds fuzz tests, which are removed from the makefile to allow the ptests to run. Fuzz testing is done upstream and there is no need to run them as part of ptests which are intended for functionality testing. (From OE-Core rev: c7c429d05ca51b0404f09981f6c9bcad7dc33222) Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch')
-rw-r--r--meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch33
1 files changed, 21 insertions, 12 deletions
diff --git a/meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch b/meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch
index e6998f6e68..90fa193775 100644
--- a/meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch
+++ b/meta/recipes-core/libxml/libxml2/libxml-m4-use-pkgconfig.patch
@@ -1,7 +1,8 @@
1From 43edc9a445ed66cceb7533eadeef242940b4592c Mon Sep 17 00:00:00 2001 1From f57da62218cf72c1342da82abafdac6b0a2e4997 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Tony Tascioglu <tony.tascioglu@windriver.com>
3Date: Sat, 11 May 2019 20:37:12 +0800 3Date: Fri, 14 May 2021 11:50:35 -0400
4Subject: [PATCH] AM_PATH_XML2 uses xml-config which we disable through 4Subject: [PATCH] AM_PATH_XML2 uses xml-config which we disable through
5
5binconfig-disabled.bbclass, so port it to use pkg-config instead. 6binconfig-disabled.bbclass, so port it to use pkg-config instead.
6 7
7Upstream-Status: Pending 8Upstream-Status: Pending
@@ -9,16 +10,22 @@ Signed-off-by: Ross Burton <ross.burton@intel.com>
9 10
10Rebase to 2.9.9 11Rebase to 2.9.9
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13
14Updated to apply cleanly to v2.9.12
15
16Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
12--- 17---
13 libxml.m4 | 186 ++------------------------------------------------------------ 18 libxml.m4 | 190 ++----------------------------------------------------
14 1 file changed, 5 insertions(+), 181 deletions(-) 19 1 file changed, 5 insertions(+), 185 deletions(-)
15 20
16diff --git a/libxml.m4 b/libxml.m4 21diff --git a/libxml.m4 b/libxml.m4
17index 2d7a6f5..1c53585 100644 22index 09de9fe2..1c535853 100644
18--- a/libxml.m4 23--- a/libxml.m4
19+++ b/libxml.m4 24+++ b/libxml.m4
20@@ -1,188 +1,12 @@ 25@@ -1,192 +1,12 @@
21-# Configure paths for LIBXML2 26-# Configure paths for LIBXML2
27-# Simon Josefsson 2020-02-12
28-# Fix autoconf 2.70+ warnings
22-# Mike Hommey 2004-06-19 29-# Mike Hommey 2004-06-19
23-# use CPPFLAGS instead of CFLAGS 30-# use CPPFLAGS instead of CFLAGS
24-# Toshio Kuratomi 2001-04-21 31-# Toshio Kuratomi 2001-04-21
@@ -78,7 +85,8 @@ index 2d7a6f5..1c53585 100644
78-dnl (Also sanity checks the results of xml2-config to some extent) 85-dnl (Also sanity checks the results of xml2-config to some extent)
79-dnl 86-dnl
80- rm -f conf.xmltest 87- rm -f conf.xmltest
81- AC_TRY_RUN([ 88- AC_RUN_IFELSE(
89- [AC_LANG_SOURCE([[
82-#include <stdlib.h> 90-#include <stdlib.h>
83-#include <stdio.h> 91-#include <stdio.h>
84-#include <string.h> 92-#include <string.h>
@@ -148,12 +156,12 @@ index 2d7a6f5..1c53585 100644
148- printf("*** being found. The easiest way to fix this is to remove the old version\n"); 156- printf("*** being found. The easiest way to fix this is to remove the old version\n");
149- printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); 157- printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
150- printf("*** correct copy of xml2-config. (In this case, you will have to\n"); 158- printf("*** correct copy of xml2-config. (In this case, you will have to\n");
151- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 159- printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
152- printf("*** so that the correct libraries are found at run-time))\n"); 160- printf("*** so that the correct libraries are found at run-time))\n");
153- } 161- }
154- return 1; 162- return 1;
155-} 163-}
156-],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 164-]])],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
157- CPPFLAGS="$ac_save_CPPFLAGS" 165- CPPFLAGS="$ac_save_CPPFLAGS"
158- LIBS="$ac_save_LIBS" 166- LIBS="$ac_save_LIBS"
159- fi 167- fi
@@ -178,10 +186,11 @@ index 2d7a6f5..1c53585 100644
178- echo "*** Could not run libxml test program, checking why..." 186- echo "*** Could not run libxml test program, checking why..."
179- CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" 187- CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
180- LIBS="$LIBS $XML_LIBS" 188- LIBS="$LIBS $XML_LIBS"
181- AC_TRY_LINK([ 189- AC_LINK_IFELSE(
190- [AC_LANG_PROGRAM([[
182-#include <libxml/xmlversion.h> 191-#include <libxml/xmlversion.h>
183-#include <stdio.h> 192-#include <stdio.h>
184-], [ LIBXML_TEST_VERSION; return 0;], 193-]], [[ LIBXML_TEST_VERSION; return 0;]])],
185- [ echo "*** The test program compiled, but did not run. This usually means" 194- [ echo "*** The test program compiled, but did not run. This usually means"
186- echo "*** that the run-time linker is not finding LIBXML or finding the wrong" 195- echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
187- echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your" 196- echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"