While debsbom itself is available in trixie-backports, the python3-
spdx-tools is not. By that, we can only generate CycloneDX SBOMs in a
pure Debian environment. For older targets like bookworm, we anyways
need a custom built in isar.
As the debsbom tool runs outside of the target chroot, it could also be
provided as host tool (e.g. in kas-container), or in a dedicated
(forky) chroot. The latter requires multiconfig for all targets that
want to have an SBOM generated, though.
> When we introduced the SBOM support we needed to
> package it in isar since it wasnt yet packaged upstream and it has
> stayed like this since then. We will at some point probably just use the
> upstream version.
While we could use the upstream packaging, it would significantly
increase the build time due to additional built-time dependencies
(which are optional if only supporting debsbom generate). We could
introduce build profiles in upstream to reduce the impact, but I'm not
sure if it is really worth it.
A third option would be to use Yocto's buildtools feature [2], but that
is currently not used in isar at all.
For now, I recommend to just keep the packaging as is and just update
it from time to time (only needed on generate related patches).
Felix