Skip to contentSkip to conversation

libxml2: upgrade 2.13.6 -> 2.14.2

PATCH In review Peter Marko 2 participants 7 messages Apr 27, 2025 – May 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxml2: upgrade 2.13.6 -> 2.14.2

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
* https://gitlab.gnome.org/GNOME/libxml2/-/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba
* removed IPv6 option (as part of with ftp support removal)
* https://gitlab.gnome.org/GNOME/libxml2/-/commit/dba1ed85a320c36807ee09f44d09fd30852b9370
* added testsuites testlimits testparser (already present before but not executed)

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++--
 meta/recipes-core/libxml/libxml2/run-ptest               | 2 +-
 .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9 +++------
 3 files changed, 6 insertions(+), 9 deletions(-)
 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb} (92%)
meta/recipes-core/libxml/libxml2/install-tests.patch +2 -2
index 1c8c13ab5c..789aeca119 100644
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am
 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
  	testparser \
  	testrecurse
  
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
 +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)
 +	cp -r $(srcdir)/python/tests $(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint
  
  bin_SCRIPTS = xml2-config
meta/recipes-core/libxml/libxml2/run-ptest +1 -1
index f252a78f17..cbbdd5592f 100755
@@ -5,7 +5,7 @@ set -e
 export LC_ALL=en_US.UTF-8
 
 # testModule isn't that useful and hard-codes buildtree, so we don't run that
-TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf testapi"
+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi testlimits testparser"
 
 for T in $TESTS; do
     echo Running $T
meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +3 -6
similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb
rename to meta/recipes-core/libxml/libxml2_2.14.2.bb
index 3b3ca87e96..ab06282f17 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"
 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2"
 SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \
+LIC_FILES_CHKSUM = "file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \
                     file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b080372433c4c9c85b6 \
                     file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 \
                     "
@@ -19,7 +19,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt
            file://install-tests.patch \
            "
 
-SRC_URI[archive.sha256sum] = "f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"
+SRC_URI[archive.sha256sum] = "353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"
 SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"
 
 # Disputed as a security issue, but fixed in d39f780
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue requires memory allocation to fail
 
 BINCONFIG = "${bindir}/xml2-config"
 
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"
 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3"
-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
 
 inherit autotools pkgconfig binconfig-disabled ptest
 
#1 lore raw
Quoted 89 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
  * https://gitlab.gnome.org/GNOME/libxml2/-/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba
* removed IPv6 option (as part of with ftp support removal)
  * https://gitlab.gnome.org/GNOME/libxml2/-/commit/dba1ed85a320c36807ee09f44d09fd30852b9370
* added testsuites testlimits testparser (already present before but not executed)

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++-- meta/recipes-core/libxml/libxml2/run-ptest               | 2 +- .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9 +++------

 3 files changed, 6 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb} (92%)

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
index 1c8c13ab5c..789aeca119 100644
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am

 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
   testparser \
   testrecurse

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
  +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)

 + cp -r $(srcdir)/python/tests $(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint

  bin_SCRIPTS = xml2-config

meta/recipes-core/libxml/libxml2/run-ptest +0 -0
index f252a78f17..cbbdd5592f 100755
@@ -5,7 +5,7 @@ set -e

 export LC_ALL=en_US.UTF-8

 # testModule isn't that useful and hard-codes buildtree, so we don't run that

meta/recipes-core/libxml/libxml2/run-ptest +1 -1
-TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf testapi"
+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi testlimits testparser"


 for T in $TESTS; do
     echo Running $T

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb
rename to meta/recipes-core/libxml/libxml2_2.14.2.bb
index 3b3ca87e96..ab06282f17 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"

 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -1
-LIC_FILES_CHKSUM = "file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \
+LIC_FILES_CHKSUM = "file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \

                     file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b080372433c4c9c85b6 \
                     file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 \
                     "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -19,7 +19,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt
             file://install-tests.patch \

            "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -1
-SRC_URI[archive.sha256sum] = "f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"
+SRC_URI[archive.sha256sum] = "353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"

 SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"
 # Disputed as a security issue, but fixed in d39f780

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue requires memory allocation to fail


 BINCONFIG = "${bindir}/xml2-config"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -3
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"
Quoted 5 lines

 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3" -PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

 inherit autotools pkgconfig binconfig-disabled ptest

This breaks lttng-tools unfortunately:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/1449
(and more in that build)

Cheers,

Richard

#2 lore raw
Quoted 126 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Sunday, April 27, 2025 23:54
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 7 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba

Quoted 2 lines

* removed IPv6 option (as part of with ftp support removal)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/dba1ed85a320c36807ee09f44d09fd30852b9370

Quoted 1 line

* added testsuites testlimits testparser (already present before but not

executed)

Quoted 3 lines

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-

/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

Quoted 8 lines

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++-- meta/recipes-core/libxml/libxml2/run-ptest               | 2 +- .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9 +++------

 3 files changed, 6 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}

(92%)

meta/recipes-

Quoted 2 lines
meta/recipes- renamed from meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0

core/libxml/libxml2/install-tests.patch

meta/recipes-

Quoted 21 lines

index 1c8c13ab5c..789aeca119 100644

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am

 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
   testparser \
   testrecurse

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
  +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)

 + cp -r $(srcdir)/python/tests $(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint

  bin_SCRIPTS = xml2-config

meta/recipes- renamed from meta/recipes-core/libxml/libxml2/run-ptest +0 -0

core/libxml/libxml2/run-ptest

Quoted 8 lines

index f252a78f17..cbbdd5592f 100755

meta/recipes-core/libxml/libxml2/run-ptest +0 -0
@@ -5,7 +5,7 @@ set -e

 export LC_ALL=en_US.UTF-8

 # testModule isn't that useful and hard-codes buildtree, so we don't run that -TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf

testapi"

Quoted 1 line

+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi

testlimits testparser"

meta/recipes-

Quoted 4 lines

 for T in $TESTS; do
     echo Running $T

meta/recipes- renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0

core/libxml/libxml2_2.14.2.bb

Quoted 11 lines

similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb rename to meta/recipes-core/libxml/libxml2_2.14.2.bb index 3b3ca87e96..ab06282f17 100644

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -4,7 +4,7 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"

 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM =

"file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \

Quoted 1 line

+LIC_FILES_CHKSUM =

"file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \

Quoted 1 line

                     file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b0803724

33c4c9c85b6 \

Quoted 1 line

                     file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060

602d20f3a7 \

meta/recipes-core/libxml/libxml2_2.14.2.bb SRC_URI +=

Quoted 2 lines

                     "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -19,7 +19,7 @@ SRC_URI +=

"http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt

Quoted 4 lines
meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
             file://install-tests.patch \

            "

-SRC_URI[archive.sha256sum] =

"f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"

Quoted 1 line

+SRC_URI[archive.sha256sum] =

"353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"

Quoted 1 line

 SRC_URI[testtar.sha256sum] =

"c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"

meta/recipes-core/libxml/libxml2_2.14.2.bb CVE_STATUS[CVE-2023-45322] = "disputed: issue

Quoted 3 lines

 # Disputed as a security issue, but fixed in d39f780

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue

requires memory allocation to fail

Quoted 8 lines

 BINCONFIG = "${bindir}/xml2-config"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -3
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"

 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-

python,python3"

Quoted 4 lines

-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

 inherit autotools pkgconfig binconfig-disabled ptest

Quoted 8 lines

This breaks lttng-tools unfortunately:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/1449
(and more in that build)

Cheers,

Richard

OK, I'll check the lttng-tools tomorrow evening.

Missing testdata.json is weird, I have run testimage with libxml2-ptest. But I can also try it with core-image-sato-sdk

Regarding the send-error-reports, I'm not sure how to test that...

Peter

#3 lore raw
Quoted 152 lines · Peter
Quoted 143 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Sunday, April 27, 2025 23:54
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 7 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba

Quoted 2 lines

* removed IPv6 option (as part of with ftp support removal)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/dba1ed85a320c36807ee09f44d09fd30852b9370

Quoted 2 lines

* added testsuites testlimits testparser (already present before but not

executed)

Quoted 3 lines

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-

/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

Quoted 11 lines

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++- -
 meta/recipes-core/libxml/libxml2/run-ptest               | 2 +- .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9
+++------

 3 files changed, 6 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}

(92%)

meta/recipes-

Quoted 3 lines
meta/recipes- renamed from meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0

core/libxml/libxml2/install-tests.patch

meta/recipes-

Quoted 23 lines

index 1c8c13ab5c..789aeca119 100644

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am

 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
   testparser \
   testrecurse

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
  +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)

 + cp -r $(srcdir)/python/tests
$(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint

  bin_SCRIPTS = xml2-config

meta/recipes- renamed from meta/recipes-core/libxml/libxml2/run-ptest +0 -0

core/libxml/libxml2/run-ptest

Quoted 10 lines

index f252a78f17..cbbdd5592f 100755

meta/recipes-core/libxml/libxml2/run-ptest +0 -0
@@ -5,7 +5,7 @@ set -e

 export LC_ALL=en_US.UTF-8

 # testModule isn't that useful and hard-codes buildtree, so we don't run that
-TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf

testapi"

Quoted 2 lines

+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi

testlimits testparser"

meta/recipes-

Quoted 5 lines

 for T in $TESTS; do
     echo Running $T

meta/recipes- renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0

core/libxml/libxml2_2.14.2.bb

Quoted 7 lines

similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb rename to meta/recipes-core/libxml/libxml2_2.14.2.bb index 3b3ca87e96..ab06282f17 100644

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -4,7 +4,7 @@ HOMEPAGE =
Quoted 6 lines

"https://gitlab.gnome.org/GNOME/libxml2" BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM =

"file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \

Quoted 1 line

+LIC_FILES_CHKSUM =

"file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \

Quoted 2 lines

file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b0803724

33c4c9c85b6 \

Quoted 2 lines

file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060

602d20f3a7 \

meta/recipes-core/libxml/libxml2_2.14.2.bb SRC_URI +=

Quoted 2 lines

                     "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -19,7 +19,7 @@ SRC_URI +=

"
http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt

Quoted 4 lines
meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
             file://install-tests.patch \

            "

-SRC_URI[archive.sha256sum] =

"f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"

Quoted 1 line

+SRC_URI[archive.sha256sum] =

"353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"

Quoted 1 line

 SRC_URI[testtar.sha256sum] =

"c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"

meta/recipes-core/libxml/libxml2_2.14.2.bb CVE_STATUS[CVE-2023-45322] = "disputed: issue

Quoted 3 lines

 # Disputed as a security issue, but fixed in d39f780

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue

requires memory allocation to fail

Quoted 8 lines

 BINCONFIG = "${bindir}/xml2-config"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -3
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"

 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-

python,python3"

Quoted 4 lines

-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

 inherit autotools pkgconfig binconfig-disabled ptest

Quoted 8 lines

This breaks lttng-tools unfortunately:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/1449
(and more in that build)

Cheers,

Richard

Quoted 7 lines

OK, I'll check the lttng-tools tomorrow evening.

Missing testdata.json is weird, I have run testimage with libxml2- ptest.
But I can also try it with core-image-sato-sdk

Regarding the send-error-reports, I'm not sure how to test that...

Those are consequences of the lttng-tools failures, that is the issue we need to work out.

I've mentioned it on the lttng irc channel. I didn't see any patch in their repo as of last night.

Cheers,

Richard

#4 lore raw

The solution in lttng-tools is a one-liner.
It is required after https://gitlab.gnome.org/GNOME/libxml2/-/commit/38f475072aefe032fff1dc058df3e56c1e7062fa (2.14.0)

Of course, that one-liner removes compatibility with old libxml2 version, so I think it's inappropriate for upstream. I don't want to spend time to learn how to do detect this with autotools.
So I'll just try a patch with "Upstream-Status: Inappropriate" and submit it upstream.
I'm currently waiting for admins to approve my account in lttng bugs tool.

I wonder how many recipes in meta-openembedded will break on this.

Peter

src/common/config/session-config.c +1 -1
index bb4e9fe..413812b 100644
@@ -429,7 +429,7 @@ static xmlChar *encode_string(const char *in_str)
                goto end;
        }
 
-       ret = handler->input(out_str, &out_len, (const xmlChar *) in_str, &in_len);
+       ret = handler->input.legacyFunc(out_str, &out_len, (const xmlChar *) in_str, &in_len);
        if (ret < 0) {
                xmlFree(out_str);
                out_str = NULL;

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Monday, April 28, 2025 11:44
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 152 lines · Peter
Quoted 143 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Sunday, April 27, 2025 23:54
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 7 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba

Quoted 2 lines

* removed IPv6 option (as part of with ftp support removal)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/dba1ed85a320c36807ee09f44d09fd30852b9370

Quoted 2 lines

* added testsuites testlimits testparser (already present before but not

executed)

Quoted 3 lines

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-

/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

Quoted 11 lines

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++- -
 meta/recipes-core/libxml/libxml2/run-ptest               | 2 +- .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9
+++------

 3 files changed, 6 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}

(92%)

meta/recipes-

Quoted 3 lines
meta/recipes- renamed from meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0

core/libxml/libxml2/install-tests.patch

meta/recipes-

Quoted 23 lines

index 1c8c13ab5c..789aeca119 100644

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am

 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
   testparser \
   testrecurse

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
  +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)

 + cp -r $(srcdir)/python/tests
$(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint

  bin_SCRIPTS = xml2-config

meta/recipes- renamed from meta/recipes-core/libxml/libxml2/run-ptest +0 -0

core/libxml/libxml2/run-ptest

Quoted 10 lines

index f252a78f17..cbbdd5592f 100755

meta/recipes-core/libxml/libxml2/run-ptest +0 -0
@@ -5,7 +5,7 @@ set -e

 export LC_ALL=en_US.UTF-8

 # testModule isn't that useful and hard-codes buildtree, so we don't run that
-TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf

testapi"

Quoted 2 lines

+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi

testlimits testparser"

meta/recipes-

Quoted 5 lines

 for T in $TESTS; do
     echo Running $T

meta/recipes- renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0

core/libxml/libxml2_2.14.2.bb

Quoted 7 lines

similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb rename to meta/recipes-core/libxml/libxml2_2.14.2.bb index 3b3ca87e96..ab06282f17 100644

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -4,7 +4,7 @@ HOMEPAGE =
Quoted 6 lines

"https://gitlab.gnome.org/GNOME/libxml2" BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM =

"file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \

Quoted 1 line

+LIC_FILES_CHKSUM =

"file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \

Quoted 2 lines

file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b0803724

33c4c9c85b6 \

Quoted 2 lines

file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060

602d20f3a7 \

meta/recipes-core/libxml/libxml2_2.14.2.bb SRC_URI +=

Quoted 2 lines

                     "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -19,7 +19,7 @@ SRC_URI +=

"
http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt

Quoted 4 lines
meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
             file://install-tests.patch \

            "

-SRC_URI[archive.sha256sum] =

"f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"

Quoted 1 line

+SRC_URI[archive.sha256sum] =

"353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"

Quoted 1 line

 SRC_URI[testtar.sha256sum] =

"c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"

meta/recipes-core/libxml/libxml2_2.14.2.bb CVE_STATUS[CVE-2023-45322] = "disputed: issue

Quoted 3 lines

 # Disputed as a security issue, but fixed in d39f780

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue

requires memory allocation to fail

Quoted 8 lines

 BINCONFIG = "${bindir}/xml2-config"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -3
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"

 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-

python,python3"

Quoted 4 lines

-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

 inherit autotools pkgconfig binconfig-disabled ptest

Quoted 8 lines

This breaks lttng-tools unfortunately:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/1449
(and more in that build)

Cheers,

Richard

Quoted 7 lines

OK, I'll check the lttng-tools tomorrow evening.

Missing testdata.json is weird, I have run testimage with libxml2- ptest.
But I can also try it with core-image-sato-sdk

Regarding the send-error-reports, I'm not sure how to test that...

Those are consequences of the lttng-tools failures, that is the issue we need to work out.

I've mentioned it on the lttng irc channel. I didn't see any patch in their repo as of last night.

Cheers,

Richard

#5 lore raw

I guess it won't be that easy, maybe take the update to 2.13.8 submitted today for now.

The one-liner compiles, but ptest shows it's crashing.
I guess we need to report this upstream and wait for their solution. Unfortunately, my account in lltng bugs was still not approved...

Peter

Quoted 216 lines

-----Original Message-----
From: Marko, Peter (FT D EU SK BFS1)
Sent: Monday, April 28, 2025 20:14
To: Richard Purdie <[email protected]>; openembedded- [email protected]
Cc: Khem Raj <[email protected]>
Subject: RE: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

The solution in lttng-tools is a one-liner.
It is required after https://gitlab.gnome.org/GNOME/libxml2/-
/commit/38f475072aefe032fff1dc058df3e56c1e7062fa (2.14.0)

Of course, that one-liner removes compatibility with old libxml2 version, so I think it's inappropriate for upstream.
I don't want to spend time to learn how to do detect this with autotools. So I'll just try a patch with "Upstream-Status: Inappropriate" and submit it upstream.
I'm currently waiting for admins to approve my account in lttng bugs tool.

I wonder how many recipes in meta-openembedded will break on this.

Peter

src/common/config/session- renamed from src/common/config/session-config.c +0 -0

config.c
index bb4e9fe..413812b 100644

src/common/config/session-config.c +1 -1
@@ -429,7 +429,7 @@ static xmlChar *encode_string(const char *in_str)
                goto end;
        }
 
-       ret = handler->input(out_str, &out_len, (const xmlChar *) in_str, &in_len);
+       ret = handler->input.legacyFunc(out_str, &out_len, (const xmlChar *) in_str,
 &in_len);
        if (ret < 0) {
                xmlFree(out_str);
                out_str = NULL;

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Monday, April 28, 2025 11:44
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 152 lines · Peter
Quoted 143 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Sunday, April 27, 2025 23:54
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 7 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba

Quoted 2 lines

* removed IPv6 option (as part of with ftp support removal)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/dba1ed85a320c36807ee09f44d09fd30852b9370

Quoted 2 lines

* added testsuites testlimits testparser (already present before but not

executed)

Quoted 3 lines

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-

/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

Quoted 11 lines

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++- -
 meta/recipes-core/libxml/libxml2/run-ptest               | 2 +- .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9
+++------

 3 files changed, 6 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}

(92%)

meta/recipes-

Quoted 3 lines
meta/recipes- renamed from meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0

core/libxml/libxml2/install-tests.patch

meta/recipes-

Quoted 23 lines

index 1c8c13ab5c..789aeca119 100644

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am

 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
   testparser \
   testrecurse

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
  +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)

 + cp -r $(srcdir)/python/tests
$(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint

  bin_SCRIPTS = xml2-config

meta/recipes- renamed from meta/recipes-core/libxml/libxml2/run-ptest +0 -0

core/libxml/libxml2/run-ptest

Quoted 10 lines

index f252a78f17..cbbdd5592f 100755

meta/recipes-core/libxml/libxml2/run-ptest +0 -0
@@ -5,7 +5,7 @@ set -e

 export LC_ALL=en_US.UTF-8

 # testModule isn't that useful and hard-codes buildtree, so we don't run that
-TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf

testapi"

Quoted 2 lines

+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi

testlimits testparser"

meta/recipes-

Quoted 5 lines

 for T in $TESTS; do
     echo Running $T

meta/recipes- renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0

core/libxml/libxml2_2.14.2.bb

Quoted 7 lines

similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb rename to meta/recipes-core/libxml/libxml2_2.14.2.bb index 3b3ca87e96..ab06282f17 100644

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -4,7 +4,7 @@ HOMEPAGE =
Quoted 6 lines

"https://gitlab.gnome.org/GNOME/libxml2" BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM =

"file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \

Quoted 1 line

+LIC_FILES_CHKSUM =

"file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \

Quoted 2 lines

file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b0803724

33c4c9c85b6 \

Quoted 2 lines

file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060

602d20f3a7 \

meta/recipes-core/libxml/libxml2_2.14.2.bb SRC_URI +=

Quoted 2 lines

                     "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -19,7 +19,7 @@ SRC_URI +=

"
http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt

Quoted 4 lines
meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
             file://install-tests.patch \

            "

-SRC_URI[archive.sha256sum] =

"f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"

Quoted 1 line

+SRC_URI[archive.sha256sum] =

"353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"

Quoted 1 line

 SRC_URI[testtar.sha256sum] =

"c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"

meta/recipes-core/libxml/libxml2_2.14.2.bb CVE_STATUS[CVE-2023-45322] = "disputed: issue

Quoted 3 lines

 # Disputed as a security issue, but fixed in d39f780

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue

requires memory allocation to fail

Quoted 8 lines

 BINCONFIG = "${bindir}/xml2-config"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -3
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"

 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-

python,python3"

Quoted 4 lines

-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

 inherit autotools pkgconfig binconfig-disabled ptest

Quoted 8 lines

This breaks lttng-tools unfortunately:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/1449
(and more in that build)

Cheers,

Richard

Quoted 7 lines

OK, I'll check the lttng-tools tomorrow evening.

Missing testdata.json is weird, I have run testimage with libxml2- ptest.
But I can also try it with core-image-sato-sdk

Regarding the send-error-reports, I'm not sure how to test that...

Those are consequences of the lttng-tools failures, that is the issue we need to work out.

I've mentioned it on the lttng irc channel. I didn't see any patch in their repo as of last night.

Cheers,

Richard

#6 lore raw

I have created https://bugs.lttng.org/issues/1427 to report the issue upstream. Peter

Quoted 235 lines

-----Original Message-----
From: Marko, Peter (FT D EU SK BFS1)
Sent: Tuesday, April 29, 2025 15:21
To: Richard Purdie <[email protected]>; openembedded- [email protected]
Cc: Khem Raj <[email protected]>
Subject: RE: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

I guess it won't be that easy, maybe take the update to 2.13.8 submitted today for now.

The one-liner compiles, but ptest shows it's crashing.
I guess we need to report this upstream and wait for their solution. Unfortunately, my account in lltng bugs was still not approved...

Peter

Quoted 8 lines

-----Original Message-----
From: Marko, Peter (FT D EU SK BFS1)
Sent: Monday, April 28, 2025 20:14
To: Richard Purdie <[email protected]>; openembedded- [email protected]
Cc: Khem Raj <[email protected]>
Subject: RE: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 5 lines

The solution in lttng-tools is a one-liner.
It is required after https://gitlab.gnome.org/GNOME/libxml2/-
/commit/38f475072aefe032fff1dc058df3e56c1e7062fa (2.14.0)

Of course, that one-liner removes compatibility with old libxml2 version, so I

think

Quoted 26 lines

it's inappropriate for upstream.
I don't want to spend time to learn how to do detect this with autotools. So I'll just try a patch with "Upstream-Status: Inappropriate" and submit it upstream.
I'm currently waiting for admins to approve my account in lttng bugs tool.

I wonder how many recipes in meta-openembedded will break on this.

Peter

src/common/config/session- renamed from src/common/config/session-config.c +0 -0

config.c
index bb4e9fe..413812b 100644

src/common/config/session-config.c +1 -1
@@ -429,7 +429,7 @@ static xmlChar *encode_string(const char *in_str)
                goto end;
        }
 
-       ret = handler->input(out_str, &out_len, (const xmlChar *) in_str, &in_len);
+       ret = handler->input.legacyFunc(out_str, &out_len, (const xmlChar *) in_str,
 &in_len);
        if (ret < 0) {
                xmlFree(out_str);
                out_str = NULL;
Quoted 133 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Monday, April 28, 2025 11:44
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 125 lines · Peter
Quoted 125 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Sunday, April 27, 2025 23:54
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>; [email protected]
Subject: Re: [OE-core] [PATCH] libxml2: upgrade 2.13.6 -> 2.14.2

Quoted 7 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

Handle CVE-2025-32414 and CVE-2025-32415.

* rebased install-tests.patch
* removed testsuite testThreads (merged into runtest.c)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/481fd6bbee029e15a6a4015e5160a332d7c18cba

Quoted 2 lines

* removed IPv6 option (as part of with ftp support removal)
  * https://gitlab.gnome.org/GNOME/libxml2/-

/commit/dba1ed85a320c36807ee09f44d09fd30852b9370

Quoted 2 lines

* added testsuites testlimits testparser (already present before but not

executed)

Quoted 3 lines

License-Update: Mention contributors in Copyright
https://gitlab.gnome.org/GNOME/libxml2/-

/commit/4bd66d4549b2e8925a752e0daac3a189d2fec8f7

Quoted 11 lines

---
 meta/recipes-core/libxml/libxml2/install-tests.patch     | 4 ++- -
 meta/recipes-core/libxml/libxml2/run-ptest               | 2 +- .../libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}      | 9
+++------

 3 files changed, 6 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.13.6.bb => libxml2_2.14.2.bb}

(92%)

meta/recipes-

Quoted 3 lines
meta/recipes- renamed from meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0

core/libxml/libxml2/install-tests.patch

meta/recipes-

Quoted 23 lines

index 1c8c13ab5c..789aeca119 100644

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -15,7 +15,7 @@ diff --git a/Makefile.am b/Makefile.am

 index 4cb9a5c..8adcd7e 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -27,6 +27,16 @@ check_PROGRAMS = \
+@@ -26,6 +26,16 @@ check_PROGRAMS = \
   testparser \
   testrecurse

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -29,6 +29,6 @@ index 4cb9a5c..8adcd7e 100644
  +	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)

 + cp -r $(srcdir)/python/tests
$(DESTDIR)$(ptestdir)/python
 +
- bin_PROGRAMS = xmllint xmlcatalog
+ bin_PROGRAMS = xmllint

  bin_SCRIPTS = xml2-config

meta/recipes- renamed from meta/recipes-core/libxml/libxml2/run-ptest +0 -0

core/libxml/libxml2/run-ptest

Quoted 10 lines

index f252a78f17..cbbdd5592f 100755

meta/recipes-core/libxml/libxml2/run-ptest +0 -0
@@ -5,7 +5,7 @@ set -e

 export LC_ALL=en_US.UTF-8

 # testModule isn't that useful and hard-codes buildtree, so we don't run that
-TESTS="runtest runsuite testrecurse testchar testdict testThreads runxmlconf

testapi"

Quoted 2 lines

+TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi

testlimits testparser"

meta/recipes-

Quoted 5 lines

 for T in $TESTS; do
     echo Running $T

meta/recipes- renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0

core/libxml/libxml2_2.14.2.bb

Quoted 7 lines

similarity index 92%
rename from meta/recipes-core/libxml/libxml2_2.13.6.bb rename to meta/recipes-core/libxml/libxml2_2.14.2.bb index 3b3ca87e96..ab06282f17 100644

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -4,7 +4,7 @@ HOMEPAGE =
Quoted 6 lines

"https://gitlab.gnome.org/GNOME/libxml2" BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM =

"file://Copyright;md5=f437ed9058e8e5135e47c01e973376ba \

Quoted 1 line

+LIC_FILES_CHKSUM =

"file://Copyright;md5=5873615e8a9ecbf5c8857c4312ee05d6 \

Quoted 2 lines

file://dict.c;beginline=6;endline=15;md5=2b4b7b827d2d8b0803724

33c4c9c85b6 \

Quoted 2 lines

file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060

602d20f3a7 \

meta/recipes-core/libxml/libxml2_2.14.2.bb SRC_URI +=

Quoted 2 lines

                     "

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -19,7 +19,7 @@ SRC_URI +=

"
http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt

Quoted 4 lines
meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
             file://install-tests.patch \

            "

-SRC_URI[archive.sha256sum] =

"f453480307524968f7a04ec65e64f2a83a825973bcd260a2e7691be82ae70c96"

Quoted 1 line

+SRC_URI[archive.sha256sum] =

"353f3c83535d4224a4e5f1e88c90b5d4563ea8fec11f6407df640fd28fc8b8c6"

Quoted 1 line

 SRC_URI[testtar.sha256sum] =

"c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"

Quoted 44 lines
Quoted 27 lines
Quoted 18 lines

meta/recipes-core/libxml/libxml2_2.14.2.bb CVE_STATUS[CVE-2023-45322] = "disputed: issue

Quoted 3 lines

 # Disputed as a security issue, but fixed in d39f780

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +0 -0
@@ -27,11 +27,8 @@ CVE_STATUS[CVE-2023-45322] = "disputed: issue

requires memory allocation to fail

Quoted 8 lines

 BINCONFIG = "${bindir}/xml2-config"

meta/recipes-core/libxml/libxml2_2.14.2.bb renamed from meta/recipes-core/libxml/libxml2_2.13.6.bb +1 -3
-PACKAGECONFIG ??= "python \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
-"
+PACKAGECONFIG ??= "python"

 PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-

python,python3"

Quoted 4 lines

-PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

 inherit autotools pkgconfig binconfig-disabled ptest

Quoted 8 lines

This breaks lttng-tools unfortunately:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/1449
(and more in that build)

Cheers,

Richard

Quoted 7 lines

OK, I'll check the lttng-tools tomorrow evening.

Missing testdata.json is weird, I have run testimage with libxml2- ptest.
But I can also try it with core-image-sato-sdk

Regarding the send-error-reports, I'm not sure how to test that...

Those are consequences of the lttng-tools failures, that is the issue we need to work out.

I've mentioned it on the lttng irc channel. I didn't see any patch in their repo as of last night.

Cheers,

Richard