Package: sbuild
Version: 0.91.9
Severity: normal
Dear sbuild maintainers:
My use case is to produce a couple of files from the building process,
generated by debsbom, taking the chroot as input. Probably the fix for
the bug is not the best way to address my use case, but anyway. Please
consider the following commands:
sudo apt install python3-cyclonedx-lib python3-spdx-tools debsbom
TEMP_DIR=$(mktemp -d)
cd ${TEMP_DIR}
sbuild --dist=sid --post-build-commands="debsbom generate -t cdx --out - --root
%SBUILD_CHROOT_DIR > ./sbom.cdx.json ; debsbom generate -t spdx --out - --root
%SBUILD_CHROOT_DIR > ./sbom.spdx.json" debusine
I would expect to have these couple of files created:
${TEMP_DIR}/sbom.cdx.json
${TEMP_DIR}/sbom.spdx.json
However, the files are created in my $HOME. Of course, this overwrites
existing sbom.{cdx,spdx}.json that I may have there.
Thanks for maintaining sbuild!
-- Santiago
-- System Information:
Debian Release: forky/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 7.0.12+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages sbuild depends on:
ii iproute2 7.0.0-1
ii libsbuild-perl 0.91.9
ii mount 2.42.1-3
ii passwd 1:4.19.3-2
ii perl 5.40.1-8
ii sbuild-schroot 0.91.9
ii uidmap 1:4.19.3-2
Versions of packages sbuild recommends:
ii apt-utils 3.3.1
ii dpkg-dev 1.23.7
ii mmdebstrap 1.5.7-3
ii sbuild-schroot 0.91.9
Versions of packages sbuild suggests:
ii autopkgtest 5.55
ii piuparts 1.6.0
-- no debconf information