Your message dated Fri, 30 Oct 2026 15:50:40 +0000
with message-id <[email protected]>
and subject line Bug#1147308: fixed in sbuild 0.91.11
has caused the Debian Bug report #1147308,
regarding sbuild: clean_apt_cache (distclean) clears apt/archives/
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1147308: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1147308
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.91.10
Severity: normal
Hi,
my `.sbuildrc` includes (very simplified):
```
$apt_keep_downloaded_packages = 1;
my $donkult_chroot_exec = '%SBUILD_CHROOT_EXEC tar --directory
/var/cache/apt/archives --create --file - . | tar --directory
/tmp/cache/archives --extract --file -';
$external_commands = {
"post-build-commands" => [
$donkult_chroot_exec,
],
"post-failed-build-commands" => [
$donkult_chroot_exec,
],
};
```
The idea behind this is that I want to extract the *.deb files
sbuild has downloaded from the chroot to integrate them into my
file:///-mirror (my chroots are configured to use APTs mirror method
with file:/// location(s) first and an online source as fallback, so
if the deb is found locally it will just be reused from where ever it
is rather than be downloaded, but if it isn't there it transparently
falls back to the online source -- poor men apt cacher proxy if you
will).
This is broken with the introduction of calling `apt distclean` by
default as that (also) clears the archives/ directory, which I suppose
was not intended, but as its usually empty anyhow it went unnoticed.
Beside breaking my, I suppose, "crazy" setup, it is practically breaking
`$apt_keep_downloaded_packages` as I don't see how you could use that
option successfully now and also the usecase this options doc alludes
to: mounting /var/cache/apt/archives into the chroot directly
(that said, not sure how that would work in a unshare setup through).
It would therefore be nice if `archives/` could be excluded from the
cleanup by default (it will be clean by default anyhow) by e.g. calling
`apt distclean -o Dir::Cache::archives=/nonexistent` instead. I have
tested that this solves my use case, but not if it breaks anything else
(even if I find that unlikely), so this is not a patch.
Ironically, looking around to check if anyone else reported this already
I found the recent MR
https://salsa.debian.org/debian/sbuild/-/merge_requests/253
which sounds like it could actually be the perfect place for my
extraction, but I am fine with what exists now.
Best regards
David Kalnischkies
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.91.11
Done: Jochen Sprickerhof <[email protected]>
We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jochen Sprickerhof <[email protected]> (supplier of updated sbuild package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 30 Oct 2026 16:33:02 +0100
Source: sbuild
Architecture: source
Version: 0.91.11
Distribution: unstable
Urgency: medium
Maintainer: sbuild maintainers <[email protected]>
Changed-By: Jochen Sprickerhof <[email protected]>
Closes: 1134910 1140787 1142748 1147308 1152006
Changes:
sbuild (0.91.11) unstable; urgency=medium
.
[ Benjamin Drung ]
* man/sbuild.1.in: clarify --autopkgtest-virt-server* parameters
(Closes: #1140787)
.
[ Salvo 'LtWorf' Tomaselli ]
* Create a minimal bash completion script
* Add command line options to completion script
* Install completion script
* Fix style
.
[ Jochen Sprickerhof ]
* Update docs for default chroot mode.
Thanks to Benjamin Kaduk for noticing (Closes: #1142748)
* Add APT_GET_EXTRA_ARGS
* Drop xapt resolver support
* Do not try installing fakeroot with BUILD_AS_ROOT_WHEN_NEEDED
* Allow running without a distribution defined.
Thanks to billchenchina for pointing out
* Fix --run-lintian --no-apt-update
* Add hint if --apt-clean and --no-apt-update was set (Closes: #1134910)
* Don't distclean apt archive (Closes: #1147308)
* sbuild-qemu-update: Fix syntax (Closes: #1152006)
Checksums-Sha1:
f92f37ec0681c1fcccd71d526286c78a824ea7bf 2944 sbuild_0.91.11.dsc
c8b839fe069c736b40eb841679b38d47db16e024 265884 sbuild_0.91.11.tar.xz
a02592cdd3f7445c3f03d0456140b7e41176b523 534800 sbuild_0.91.11.git.tar.xz
2293b1124cebc5407e1569c3a9b10fb368c71708 17733 sbuild_0.91.11_source.buildinfo
Checksums-Sha256:
4cf26ed89112354e5049515b2b91139414dc04aaa9a478bc954ed944bc7c2086 2944
sbuild_0.91.11.dsc
c36089b33cf294bc98f47f3d34004abc3169e53abfcc1550aef71a1bef12724f 265884
sbuild_0.91.11.tar.xz
d61335570f1f4772a3f2a9794778dbef7ac6b4c8757500cd4cd7342cd18739ae 534800
sbuild_0.91.11.git.tar.xz
90c8438cda0b3856f85666d664482c936828d81811d19fa6741c8cc04a60a2ed 17733
sbuild_0.91.11_source.buildinfo
Files:
54339889f91889b56b463184f6473186 2944 devel optional sbuild_0.91.11.dsc
019d2bb6d9c6dba12ca05aeca0fdad48 265884 devel optional sbuild_0.91.11.tar.xz
482e949283575aa33f49b02e5ba0d7c3 534800 devel None sbuild_0.91.11.git.tar.xz
2c3b34cdf13d0eed6eaee07a72464607 17733 devel optional
sbuild_0.91.11_source.buildinfo
Git-Tag-Info: tag=18cdd0050d6c4d00b45fa37e95c2f0163b741c82
fp=73b299cbd4eeaddcc017e87a5bffdcc258e69433
Git-Tag-Tagger: Jochen Sprickerhof <[email protected]>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrkuPwACgkQYG0ITkaD
wHnCoxAAqOM3a4C6ePRz0rsyNDtEIqndcoQpTbGY/9Tw8/in/Rws0f2lcEcmp5rG
x1s0l8I1/U6E436RTr/p9PSfd56575dXDzJPDcj0oaSApSEiOxzT7+q2cBDHSqC/
gqF+j1pu+gp14aZX31+xlsmXfd2rj1omus5Ga1SRa8tBaPhCHMraAXwFIywweSwF
LRjBFmyj0IXOa7XUnY/dFN2Pi7cy3IL0fcnWoJT6F/M7XnxP6jt9eeNKnpEZ2Rg+
JITMK+yvDf9a2H3qJKCv8zC4YEFxtEui75njSx5MdIw8gOqHeGQawa7jpGoJOS0k
ZbU1qj14iwmMxtEJnoHBVIJknwTJA+fsNiPKcWowQCCvmYp186qz8ACcMgKqUcmu
pf+XjRizelbiMvXXcaUOH/TxFlo8r75XsTyprIUYiVHgcVlH4XHfNaPVHNHqbdQW
X8bYE3RXUy7DlSmY2ZZzopKhAFhfJro0L50kuJl+A1qg48PQZgF6xvUyJMz+fgPL
YaGe2JBVQHhE8cVcggyEXJvWpDNTjk2/pDq9Bp1t2pFahXTwXguHwgIlJrgZCXSb
RoDcUURkv1YIapwcnY3DgfC5akCRhnVxJK9HSV4GfYhw67COAn7CQokcEIpa6JWZ
yGh1YoEAwAgnWOVzFzwBRwwQl3i4CE72gNkyfNUEe+iR6vjYjM8=
=llA6
-----END PGP SIGNATURE-----
pgprnyAjK4Gzs.pgp
Description: PGP signature
--- End Message ---