From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: bruno.thomsen@gmail.com
Subject: [ptxdist] [PATCH] SBoM: CycloneDX: fix missing defusedxml dependency
Date: Wed, 18 Jun 2025 21:23:35 +0200 [thread overview]
Message-ID: <20250618192335.17780-1-bruno.thomsen@gmail.com> (raw)
Enabling CycloneDX report generation on a clean host environment result
in missing defusedxml python3 module.
------------------------------
target: image-root-tgz.reports
------------------------------
Traceback (most recent call last):
File "/usr/local/lib/ptxdist-2025.06.0/scripts/generate-report.py", line 72, in <module>
main()
~~~~^^
File "/usr/local/lib/ptxdist-2025.06.0/scripts/generate-report.py", line 59, in main
from report.cyclonedx_sbom import CycloneDXSbomGenerator
File "/usr/local/lib/ptxdist-2025.06.0/scripts/report/cyclonedx_sbom.py", line 11, in <module>
from cyclonedx.factory.license import LicenseFactory
File "/builds/emperor/ptxdist/platform-emperor/sysroot-host/usr/lib/system-python3/lib64/python3.13/site-packages/cyclonedx/factory/license.py", line 21, in <module>
from ..model.license import DisjunctiveLicense, LicenseExpression
File "/builds/emperor/ptxdist/platform-emperor/sysroot-host/usr/lib/system-python3/lib64/python3.13/site-packages/cyclonedx/model/__init__.py", line 36, in <module>
import serializable
File "/builds/emperor/ptxdist/platform-emperor/sysroot-host/usr/lib/system-python3/lib64/python3.13/site-packages/serializable/__init__.py", line 47, in <module>
from defusedxml import ElementTree as SafeElementTree # type:ignore[import-untyped]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'defusedxml'
make: *** [/usr/local/lib/ptxdist-2025.06.0/rules/post/ptxd_make_world_report.make:18: /builds/emperor/ptxdist/platform-emperor/state/image-root-tgz.reports] Error 1
Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
rules/host-report-tools.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/rules/host-report-tools.in b/rules/host-report-tools.in
index 873fdafcd..eee45f232 100644
--- a/rules/host-report-tools.in
+++ b/rules/host-report-tools.in
@@ -8,4 +8,5 @@ config HOST_REPORT_TOOLS
select HOST_SYSTEM_PYTHON3_PYYAML
select HOST_SYSTEM_PYTHON3_CPE if PROJECT_CPE_REPORT_DEPS
select HOST_SYSTEM_PYTHON3_CYCLONEDX_PYTHON_LIB if PROJECT_CYCLONEDX_REPORT_DEPS
+ select HOST_PYTHON3_DEFUSEDXML if PROJECT_CYCLONEDX_REPORT_DEPS
base-commit: 9ad1014959a974ff761772cff7a850d1e6dc4806
prerequisite-patch-id: 0547cb947306962b60156a1e583975b2d182d072
--
2.49.0
reply other threads:[~2025-06-18 19:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250618192335.17780-1-bruno.thomsen@gmail.com \
--to=bruno.thomsen@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox