[buildd-tools-devel] Bug#718127: Bug#718127: Bug#718127: schroot: CHROOT_SESSION_PURGE and tar-based source chroots
Roger Leigh
rleigh at codelibre.net
Sun Jul 13 21:49:46 UTC 2014
On Thu, Jul 10, 2014 at 10:36:28PM +0100, Roger Leigh wrote:
> To implement this, we need session and source facets to have a
> pointer to the parent chroot. So we query a session chroot
> and ask if its parent was a source chroot, and also link from
> a source chroot to plain chroot for generality and
> completeness. Initial scoping for 1.7 (1.6 will be backported):
>
> - chroot to inherit enable_shared_from_this and/or switch to
> using weak_ptr rather than bare pointers for the facet->chroot
> back reference
> - session and source need "shared_ptr<chroot> parent" fields
> - session::create and source::create constructors to take a
> "shared_ptr<chroot> parent" argument. This will be passed by
> session_clonable::clone_session and source_clonable::clone_source,
> respectively
> - session can check for the presence of a source facet in its
> parent and set SESSION_SOURCE if parent is not null and the
> facet is present.
> - chroot will set CHROOT_SESSION_SOURCE=true if the SESSION_SOURCE
> flag is set, otherwise set to false.
Initial implementation here:
http://anonscm.debian.org/gitweb/?p=users/rleigh/schroot.git;a=shortlog;h=refs/heads/source-env
(last three commits). Works as above.
Now needs backporting to 1.6.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
More information about the Buildd-tools-devel
mailing list