[buildd-tools-devel] Bug#793951: sbuild should not look for a chroot in host architecture but build architecture

Johannes Schauer josch at debian.org
Wed Jul 29 09:22:45 UTC 2015


Package: sbuild
Version: 0.65.2-1
Severity: normal
Tags: patch

Hi,

sbuild has the ability to crossbuild using a chroot of the build
architecture without any modifications (plainly created using
sbuild-createchroot). If I want to build on amd64 for mipsel, then using
a chroot with name sid-amd64-sbuild will work. It will properly call
`dpkg --add-architecture` to add mipsel as a foreign architecture and
then do the right thing when cross building. Then why is it that the
default chroot name when doing cross building looks for the *host*
architecture? This way, it would look for a chroot named
sid-mipsel-sbuild which does not make any sense because if anything,
then that chroot is probably a native mipsel chroot. I do not see any
reason why the current default would be useful but instead it would be
very useful if a crossbuild from amd64 to mipsel would look for the
amd64 chroot.

The attached patch partly reverts the offending commit 5ad92654 to fix
this problem.

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chroot-name.patch
Type: text/x-diff
Size: 4506 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20150729/b20c388d/attachment.patch>


More information about the Buildd-tools-devel mailing list