[buildd-tools-devel] Bug#778571: Bug#778571: [Reproducible-builds] Bug#790868: sbuild: Please allow sbuild to use a deterministic build path to build packages
Roger Leigh
rleigh at codelibre.net
Tue Jul 14 20:34:37 UTC 2015
On 14/07/2015 19:54, Benjamin Drung wrote:
> Instead /var/lib/sbuild/build/sl-bRYRkz could be mounted
> to /var/lib/schroot/mount/$session/usr/src/debian/sl so
> that /var/lib/sbuild/build/sl-bRYRkz/ is accessible
> as /usr/src/debian/sl inside the chroot. The alternative would be to
> bindmount /build/sl-bRYRkz/ to /usr/src/debian/sl inside the chroot
> (which would be an addition bind mount level).
>
> Problem: The path /var/lib/sbuild/build/sl-bRYRkz/ is not static and I
> don't know whether schroot could be configured to support that dynamic
> mounting.
It certainly can. But not with schroot-1.6; you need 1.7 for user-options.
This would require in schroot
- dropping the /build bind mount in the sbuild profile's fstab
- adding the appropriate user-modifiable keys to the default chroot
config (maybe also allow profiles to provide default keys so we can do
transparent upgrades)
- adding a custom sbuild setup script to use the user-provided values to
do the bind mount
And in sbuild
- invoking schroot with the appropriate options if using a recent enough
schroot release
It's mostly done today; user-modifiable keys are one of the new 1.7
features. The remaining work is primarily in the integration, the work
to add the setup script, the user keys and tweaking sbuild is just a few
minutes work, though tying it all together will take considerably longer.
Regards,
Roger
More information about the Buildd-tools-devel
mailing list