[buildd-tools-devel] Bug#545215: [PATCH] Please support saving chroot to tarball in sbuild-createchroot

Andres Mejia mcitadel at gmail.com
Sat Sep 12 17:29:59 UTC 2009


tags 545215 patch
thanks

I've implemented this feature I would like for sbuild. Here are my patches.

Here's an example of how to run sbuild-createchroot to create a file type chroot.

$ sudo sbuild-createchroot \
           --make-tarball=/var/cache/sbuild/sbuild.tar.gz \
           sid `mktemp -d` \
           http://ftp.uk.debian.org/debian

It's in the manpage as well. The new option here is '--make-tarball=FILE'. This 
will create a chroot for sbuild and save it as 
'/var/cache/sbuild/sbuild.tar.gz'. It uses a temporary directory for the 
'TARGET' which is removed by default once creating the chroot is finished. The 
option '--keep-sbuildchroot-dir' can be used to keep the 'TARGET' that's been 
created instead.

With this, I also went ahead and changed sbuild-update to allow for apt-get 
update, upgrade, and dist-upgrade to be run in a single session. This is so that 
there's no need to keep unpacking and repacking the file type chroot with sbuild-
update, sbuild-upgrade, and sbuild-distupgrade. With this, sbuild-upgrade and 
sbuild-distupgrade has been deprecated since their respective functions are now 
run by sbuild-update. The manpage explains how to use sbuild-update.

-- 
Regards,
Andres
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-support-to-create-file-type-chroots-in-sbu.patch
Type: text/x-patch
Size: 4031 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090912/213a74ad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Update-manpage-for-sbuild-createchroot.patch
Type: text/x-patch
Size: 2706 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090912/213a74ad/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-options-to-allow-sbuild-update-to-perform-update.patch
Type: text/x-patch
Size: 3517 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090912/213a74ad/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Update-man-page-for-sbuild-update.patch
Type: text/x-patch
Size: 3009 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090912/213a74ad/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Change-distupgrade-option-to-dist-upgrade-to-corresp.patch
Type: text/x-patch
Size: 1268 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090912/213a74ad/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Deprecate-sbuild-upgrade-and-sbuild-distupgrade.-The.patch
Type: text/x-patch
Size: 4370 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090912/213a74ad/attachment-0005.bin>


More information about the Buildd-tools-devel mailing list