* [PATCH] systemd: Backport fix for python3-lxml 6.1.3
@ 2026-09-09 15:35 Richard Purdie
2026-09-09 16:02 ` Patchtest results for " patchtest
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2026-09-09 15:35 UTC (permalink / raw)
To: openembedded-core
Backport a fix so that we can upgrade python3-lxml.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
...396d2c5bc1adb6b044e7784a30b7187f6fbd.patch | 59 +++++++++++++++++++
meta/recipes-core/systemd/systemd_261.2.bb | 1 +
2 files changed, 60 insertions(+)
create mode 100644 meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch
diff --git a/meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch b/meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch
new file mode 100644
index 00000000000..8eb9f5c1641
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch
@@ -0,0 +1,59 @@
+From a019396d2c5bc1adb6b044e7784a30b7187f6fbd Mon Sep 17 00:00:00 2001
+From: Luca Boccassi <luca.boccassi@gmail.com>
+Date: Wed, 2 Sep 2026 20:32:51 +0100
+Subject: [PATCH] tools: fix building manpages with lxml 6.1.3
+
+manpages build fails on Arch with new lxml:
+
+Traceback (most recent call last):
+ File "/work/src/tools/make-directive-index.py", line 169, in make_page
+ _extract_directives(directive_groups, formatting, page)
+ ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/work/src/tools/make-directive-index.py", line 18, in _extract_directives
+ t = xml_parse(page)
+ File "/work/src/tools/xml_helper.py", line 25, in xml_parse
+ doc = tree.parse(page, _parser)
+ File "src/lxml/etree.pyx", line 3717, in lxml.etree.parse
+ File "src/lxml/parser.pxi", line 2045, in lxml.etree._parseDocument
+ File "src/lxml/parser.pxi", line 2071, in lxml.etree._parseDocumentFromURL
+ File "src/lxml/parser.pxi", line 1962, in lxml.etree._parseDocFromFile
+ File "src/lxml/parser.pxi", line 1231, in lxml.etree._BaseParser._parseDocFromFile
+ File "src/lxml/parser.pxi", line 647, in lxml.etree._ParserContext._handleParseResultDoc
+ File "src/lxml/parser.pxi", line 765, in lxml.etree._handleParseResult
+ File "src/lxml/parser.pxi", line 689, in lxml.etree._raiseParseError
+ File "../src/man/hostname.xml", line 5
+lxml.etree.XMLSyntaxError: Entity 'entities' not defined, line 5, column 11
+
+The above exception was the direct cause of the following exception:
+
+Traceback (most recent call last):
+ File "/work/src/tools/make-directive-index.py", line 180, in <module>
+ _xml = make_page(_template_path, _xml_files)
+ File "/work/src/tools/make-directive-index.py", line 171, in make_page
+ raise ValueError('failed to process ' + page) from e
+ValueError: failed to process ../src/man/hostname.xml
+
+Relying on XMLParser() defaults leaves the external parameter entity
+used to load custom-entities.ent unresolved. Request entity resolution explicitly.
+
+Follow-up for 1a13e31d275430ffba713c8a68ee7f22093c29e0
+
+Upstream-Status: Backport [https://github.com/systemd/systemd/commit/a019396d2c5bc1adb6b044e7784a30b7187f6fbd]
+
+---
+ tools/xml_helper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/xml_helper.py b/tools/xml_helper.py
+index 87c24ab02a0f..e26ca92d9454 100755
+--- a/tools/xml_helper.py
++++ b/tools/xml_helper.py
+@@ -16,7 +16,7 @@ def resolve(self, url, _id, context):
+ return None
+
+
+-_parser = tree.XMLParser()
++_parser = tree.XMLParser(resolve_entities=True)
+ # pylint: disable=no-member
+ _parser.resolvers.add(CustomResolver())
+
diff --git a/meta/recipes-core/systemd/systemd_261.2.bb b/meta/recipes-core/systemd/systemd_261.2.bb
index 80e1aa07d17..68b894be9a3 100644
--- a/meta/recipes-core/systemd/systemd_261.2.bb
+++ b/meta/recipes-core/systemd/systemd_261.2.bb
@@ -37,6 +37,7 @@ SRC_URI += " \
file://systemd-pager.sh \
file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
file://0003-Do-not-create-var-log-README.patch \
+ file://a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch \
"
PAM_PLUGINS = " \
^ permalink raw reply related [flat|nested] 3+ messages in thread* Patchtest results for [PATCH] systemd: Backport fix for python3-lxml 6.1.3
2026-09-09 15:35 [PATCH] systemd: Backport fix for python3-lxml 6.1.3 Richard Purdie
@ 2026-09-09 16:02 ` patchtest
0 siblings, 0 replies; 3+ messages in thread
From: patchtest @ 2026-09-09 16:02 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 3048 bytes --]
Thank you for your submission. Patchtest identified one
or more issues with the patch. Please see the log below for
more information:
---
Testing patch /home/patchtest/share/mboxes/systemd-Backport-fix-for-python3-lxml-6.1.3.patch
FAIL: test Signed-off-by presence: A patch file has been added without a Signed-off-by tag: 'a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch' (test_patch.TestPatch.test_signed_off_by_presence)
PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test CVE tag format (test_patch.TestPatch.test_cve_tag_format)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Upstream-Status presence (test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test auh changelog truncation notice (test_mbox.TestMbox.test_auh_changelog_truncation_notice)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] systemd: Backport fix for python3-lxml 6.1.3
@ 2026-09-09 15:37 Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2026-09-09 15:37 UTC (permalink / raw)
To: openembedded-core
Backport a fix so that we can upgrade python3-lxml.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
...396d2c5bc1adb6b044e7784a30b7187f6fbd.patch | 59 +++++++++++++++++++
meta/recipes-core/systemd/systemd_261.2.bb | 1 +
2 files changed, 60 insertions(+)
create mode 100644 meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch
diff --git a/meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch b/meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch
new file mode 100644
index 00000000000..8eb9f5c1641
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch
@@ -0,0 +1,59 @@
+From a019396d2c5bc1adb6b044e7784a30b7187f6fbd Mon Sep 17 00:00:00 2001
+From: Luca Boccassi <luca.boccassi@gmail.com>
+Date: Wed, 2 Sep 2026 20:32:51 +0100
+Subject: [PATCH] tools: fix building manpages with lxml 6.1.3
+
+manpages build fails on Arch with new lxml:
+
+Traceback (most recent call last):
+ File "/work/src/tools/make-directive-index.py", line 169, in make_page
+ _extract_directives(directive_groups, formatting, page)
+ ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/work/src/tools/make-directive-index.py", line 18, in _extract_directives
+ t = xml_parse(page)
+ File "/work/src/tools/xml_helper.py", line 25, in xml_parse
+ doc = tree.parse(page, _parser)
+ File "src/lxml/etree.pyx", line 3717, in lxml.etree.parse
+ File "src/lxml/parser.pxi", line 2045, in lxml.etree._parseDocument
+ File "src/lxml/parser.pxi", line 2071, in lxml.etree._parseDocumentFromURL
+ File "src/lxml/parser.pxi", line 1962, in lxml.etree._parseDocFromFile
+ File "src/lxml/parser.pxi", line 1231, in lxml.etree._BaseParser._parseDocFromFile
+ File "src/lxml/parser.pxi", line 647, in lxml.etree._ParserContext._handleParseResultDoc
+ File "src/lxml/parser.pxi", line 765, in lxml.etree._handleParseResult
+ File "src/lxml/parser.pxi", line 689, in lxml.etree._raiseParseError
+ File "../src/man/hostname.xml", line 5
+lxml.etree.XMLSyntaxError: Entity 'entities' not defined, line 5, column 11
+
+The above exception was the direct cause of the following exception:
+
+Traceback (most recent call last):
+ File "/work/src/tools/make-directive-index.py", line 180, in <module>
+ _xml = make_page(_template_path, _xml_files)
+ File "/work/src/tools/make-directive-index.py", line 171, in make_page
+ raise ValueError('failed to process ' + page) from e
+ValueError: failed to process ../src/man/hostname.xml
+
+Relying on XMLParser() defaults leaves the external parameter entity
+used to load custom-entities.ent unresolved. Request entity resolution explicitly.
+
+Follow-up for 1a13e31d275430ffba713c8a68ee7f22093c29e0
+
+Upstream-Status: Backport [https://github.com/systemd/systemd/commit/a019396d2c5bc1adb6b044e7784a30b7187f6fbd]
+
+---
+ tools/xml_helper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/xml_helper.py b/tools/xml_helper.py
+index 87c24ab02a0f..e26ca92d9454 100755
+--- a/tools/xml_helper.py
++++ b/tools/xml_helper.py
+@@ -16,7 +16,7 @@ def resolve(self, url, _id, context):
+ return None
+
+
+-_parser = tree.XMLParser()
++_parser = tree.XMLParser(resolve_entities=True)
+ # pylint: disable=no-member
+ _parser.resolvers.add(CustomResolver())
+
diff --git a/meta/recipes-core/systemd/systemd_261.2.bb b/meta/recipes-core/systemd/systemd_261.2.bb
index 80e1aa07d17..68b894be9a3 100644
--- a/meta/recipes-core/systemd/systemd_261.2.bb
+++ b/meta/recipes-core/systemd/systemd_261.2.bb
@@ -37,6 +37,7 @@ SRC_URI += " \
file://systemd-pager.sh \
file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
file://0003-Do-not-create-var-log-README.patch \
+ file://a019396d2c5bc1adb6b044e7784a30b7187f6fbd.patch \
"
PAM_PLUGINS = " \
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-09 16:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09 15:35 [PATCH] systemd: Backport fix for python3-lxml 6.1.3 Richard Purdie
2026-09-09 16:02 ` Patchtest results for " patchtest
-- strict thread matches above, loose matches on Subject: below --
2026-09-09 15:37 Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox