[buildd-tools-devel] Bug#718127: Bug#718127: Bug#718127: Bug#718127: schroot: CHROOT_SESSION_PURGE and tar-based source chroots

Roger Leigh rleigh at codelibre.net
Mon Jul 14 22:43:50 UTC 2014


tags 718127 + patch pending
thanks

On Sun, Jul 13, 2014 at 10:49:46PM +0100, Roger Leigh wrote:
> 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.

Now rewritten for 1.6.  I'd very much appreciate it if you could
try rebuilding 1.6.10 with these patches applied, and let me know
if it's doing what you want.  Run with -v to see the value of
CHROOT_SESSION_SOURCE for source and non-source chroots.

http://anonscm.debian.org/gitweb/?p=users/rleigh/schroot.git;a=shortlog;h=refs/heads/source-env-1.6

Thanks,
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sbuild-chroot-chroot-Inherit-from-enable_shared_from.patch
Type: text/x-diff
Size: 2114 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20140714/e89f2a24/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-sbuild-chroot-Add-SESSION_SOURCE-and-CHROOT_SESSION_.patch
Type: text/x-diff
Size: 21655 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20140714/e89f2a24/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-man-documented-CHROOT_SESSION_SOURCE.patch
Type: text/x-diff
Size: 938 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20140714/e89f2a24/attachment-0005.patch>


More information about the Buildd-tools-devel mailing list