From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 30 Jun 2025 18:15:42 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uWHAU-00Cfkw-17 for lore@lore.pengutronix.de; Mon, 30 Jun 2025 18:15:42 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uWHAP-0004zF-56; Mon, 30 Jun 2025 18:15:37 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uWH9f-0002dv-Gx; Mon, 30 Jun 2025 18:14:51 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uWH9f-0068H6-11; Mon, 30 Jun 2025 18:14:51 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uWH9f-00Fkek-0r; Mon, 30 Jun 2025 18:14:51 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Mon, 30 Jun 2025 18:14:51 +0200 Message-Id: <20250630161451.3754259-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250618192335.17780-1-bruno.thomsen@gmail.com> References: <20250618192335.17780-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] SBoM: CycloneDX: fix missing defusedxml dependency X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Bruno Thomsen Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as efddb708b206fcb9c6d5067d48933d169b339ba1. Michael [sent from post-receive hook] On Mon, 30 Jun 2025 18:14:51 +0200, Bruno Thomsen 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 > 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 > 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 > 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 > 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 > 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 > Message-Id: <20250618192335.17780-1-bruno.thomsen@gmail.com> > [mol: adapt to renamed package] > Signed-off-by: Michael Olbrich > > 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 >