From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>
Subject: Re: [ptxdist] [APPLIED] SBoM: CycloneDX: fix missing defusedxml dependency
Date: Mon, 30 Jun 2025 18:14:51 +0200 [thread overview]
Message-ID: <20250630161451.3754259-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250618192335.17780-1-bruno.thomsen@gmail.com>
Thanks, applied as efddb708b206fcb9c6d5067d48933d169b339ba1.
Michael
[sent from post-receive hook]
On Mon, 30 Jun 2025 18:14:51 +0200, Bruno Thomsen <bruno.thomsen@gmail.com> wrote:
> 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>
> Message-Id: <20250618192335.17780-1-bruno.thomsen@gmail.com>
> [mol: adapt to renamed package]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/host-report-tools.in b/rules/host-report-tools.in
> index 873fdafcd4a4..ba9e9501aa1d 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_SYSTEM_PYTHON3_DEFUSEDXML if PROJECT_CYCLONEDX_REPORT_DEPS
>
prev parent reply other threads:[~2025-06-30 16:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 19:23 [ptxdist] [PATCH] " Bruno Thomsen
2025-06-30 16:14 ` Michael Olbrich [this message]
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=20250630161451.3754259-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=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