On Tue, 23 Jul 2019 at 18:22:58 +0200, Johannes Schauer wrote: > Quoting Sean Whitton (2019-07-23 17:47:45) > > ICBW but I am pretty sure that sbuild builds the source package *outside* of > > the clean chroot. > > that is correct. Indeed the source package is the way how the sources are > copied into the chroot so sbuild cannot operate at all without having a source > package first. And that source package is built *outside* the chroot.
Technically sbuild can also build source packages (with sbuild --source, and optionally --no-arch-any --no-arch-all) - I use that in <https://salsa.debian.org/smcv/vectis>, to make sure I get a pedantically "clean" source package that is identical to what building in the target distribution would have done. However, yes, that requires building a temporary source package outside sbuild, and transferring that into the build chroot in order to have sbuild rebuild it. smcv