[Buildd-tools-devel] schroot >< dchroot

Roger Leigh rleigh at whinlatter.ukfsn.org
Sun Jun 11 17:14:53 UTC 2006


Luk Claes <luk at debian.org> writes:

Hi,

> I recently took over dchroot without knowing about schroot. It seems
> schroot has everything dchroot has and much more. Don't you think it
> would be best to drop dchroot in favor of schroot? If so, maybe it would
> be a good idea for you to ship a transitional dchroot package in schroot?

We already do :)

I wrote a compatibility wrapper which is exactly the same as schroot,
but:
- has all the dchroot command-line options
- has the additional schroot functionality restricted
- it will use the dchroot configuration if present, but otherwise will
  fall back to using the standard schroot configuration.

On the downside
- schroot is rather more featureful than dchroot, but this may
  translate to being potentially more insecure, due to having a larger
  and more complex codebase.  There is a testsuite to avoid this, but
  it's still a legitimate concern (which the previous dchroot
  maintainer had, when I proposed merging the two).


If you want to become involved with schroot maintenance, you would be
welcome.  You can grap a current copy from

  svn://svn.debian.org/svn/buildd-tools/trunk/schroot

If you build with --enable-maintainer-mode and have doxygen installed,
it will build a complete API reference.  I'll be happy to answer any
questions you might have.


$ dpkg -S /usr/bin/dchroot
schroot: /usr/bin/dchroot

$ dpkg -s schroot | grep dchroot
Replaces: dchroot
Provides: dchroot
Conflicts: dchroot
 schroot shares most of its options with dchroot, but offers vastly
 more functionality.  A dchroot compatibility wrapper is also
 provided, offering the same functionality as the dchroot package.

$ dchroot --version
dchroot (Debian sbuild) 0.2.11
Written by Roger Leigh

Copyright © 2004-2006 Roger Leigh
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ dchroot --help
Usage:
  dchroot [OPTION...] [COMMAND] - run command or shell in a chroot

General options:
  -h [ --help ]         Show help options
  -V [ --version ]      Print version information
  -q [ --quiet ]        Show less output
  -v [ --verbose ]      Show more output
  -l [ --list ]         List available chroots
  -i [ --info ]         Show information about selected chroots
  -p [ --path ] arg     Print path to selected chroot
  --config              Dump configuration of selected chroots

Chroot selection:
  -c [ --chroot ] arg   Use specified chroot
  -a [ --all ]          Select all chroots

Chroot environment:
  -d [ --preserve-environment ]  Preserve user environment



Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060611/040c7c2a/attachment.pgp


More information about the Buildd-tools-devel mailing list