Bug#355802: [Buildd-tools-devel] Bug#355802: no error message when sbuild cannot find chroot

Roger Leigh rleigh at whinlatter.ukfsn.org
Wed Mar 8 00:37:50 UTC 2006


Martin Michlmayr <tbm at cyrius.com> writes:

> You get no error message at all when sbuild cannot find the chroot:
>
>
> 2973:tbm at bigsur: ~/build] sbuild -d unstable2 dadadodo_1.04-3
> zsh: exit 2     sbuild -d unstable2 dadadodo_1.04-3
>
> 2974:tbm at bigsur: ~/build] sbuild -v -d unstable2 dadadodo_1.04-3
> unstable2 chroot does not exist and in chroot only mode -- exiting
> zsh: exit 2     sbuild -v -d unstable2 dadadodo_1.04-3

If -v is not specified, there is no logging of any messages at all
(stdout and stderr are both redirected to the build log file very
early on).

It might do to make "-v" the default if not being used in a buildd
situation.

> Also, I think the code to find chroots which don't follow the name of
> an official suite is busted.  ~/build/chroot-unstable2 did exist when
> I ran this command.  It seems sbuild only accepts
> ~/build/chroot-<official suite name> rather than actually checking for
> ~/build/chroot-<whatever you gave it>.

This is hard-coded in %main::dist_order when using "split"
chroot_mode.  If you use schroot, it picks it up automatically from
the list of available chroots.


-- 
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/20060308/ae90d75c/attachment.pgp


More information about the Buildd-tools-devel mailing list