Bug#610689: sbuild cross support

2011-12-12 Thread Roger Leigh
On Mon, Dec 12, 2011 at 02:19:20PM +, Wookey wrote: +++ Roger Leigh [2011-12-12 11:51 +]: On Sat, Dec 10, 2011 at 12:25:15AM +, Wookey wrote: +++ Roger Leigh [2011-12-09 16:48 +]: On Fri, Dec 09, 2011 at 04:30:20PM +, Wookey wrote: WRT building, it should

Bug#610689: sbuild: cross support

2011-12-07 Thread Wookey
I'm looking at adding multiarch-style cross-building support to sbuild. I've taken the work done in this bugrep so far (thanks to hector and Roger for that), which essentially makes sbuild BUILD/HOST aware andd the xapt resolver, and moved that forward to the current 0.62.5 sbuild release.

Bug#610689: [buildd-tools-devel] Bug#610689: sbuild: cross support

2011-01-22 Thread Roger Leigh
On Fri, Jan 21, 2011 at 12:09:55PM +, Hector Oron wrote: I would love sbuild to gain the ability to handle cross builds. […] Thanks for the informative explanation, it has helped to make the problem a bit clearer for me. It seems that sbuild triggers dpkg --print-architecture to find out

Bug#610689: [buildd-tools-devel] Bug#610689: Bug#610689: sbuild: cross support

2011-01-22 Thread Roger Leigh
On Sat, Jan 22, 2011 at 07:03:48PM +, Roger Leigh wrote: On Fri, Jan 21, 2011 at 12:09:55PM +, Hector Oron wrote: I would love sbuild to gain the ability to handle cross builds. […] Thanks for the informative explanation, it has helped to make the problem a bit clearer for me.

Bug#610689: [buildd-tools-devel] Bug#610689: sbuild: cross support

2011-01-22 Thread Hector Oron
Hello, 2011/1/22 Roger Leigh rle...@codelibre.net: On Fri, Jan 21, 2011 at 12:09:55PM +, Hector Oron wrote: I think that the several uses of the --arch option are going to need separating into separate options.  Does the following make sense, or am I missing out anything major? 1)

Bug#610689: [buildd-tools-devel] Bug#610689: sbuild: cross support

2011-01-22 Thread Roger Leigh
On Sat, Jan 22, 2011 at 09:56:26PM +, Hector Oron wrote: Hello, 2011/1/22 Roger Leigh rle...@codelibre.net: On Fri, Jan 21, 2011 at 12:09:55PM +, Hector Oron wrote: I think that the several uses of the --arch option are going to need separating into separate options.  Does the

Bug#610689: [buildd-tools-devel] Bug#610689: sbuild: cross support

2011-01-22 Thread Loïc Minier
On Sat, Jan 22, 2011, Roger Leigh wrote: Is this how qemu works? Would it return m68k on amd64 in an m68k chroot with qemu? Yup; dpkg --print-architecture seems to return the architecture dpkg was built for, so an armel dpkg would return

Bug#610689: [buildd-tools-devel] Bug#610689: Bug#610689: sbuild: cross support

2011-01-22 Thread Loïc Minier
On Sat, Jan 22, 2011, Roger Leigh wrote: I've attached a patch (against sbuild git master, also on the cross-build branch of git://git.debian.org/users/rleigh/sbuild.git) which adds --host and --build options and then uses the correct host or build arch in the appropriate places. While I've

Bug#610689: [buildd-tools-devel] Bug#610689: Bug#610689: sbuild: cross support

2011-01-22 Thread Hector Oron
Hi, 2011/1/22 Roger Leigh rle...@codelibre.net: I've attached a patch (against sbuild git master, also on the cross-build branch of git://git.debian.org/users/rleigh/sbuild.git) which adds --host and --build options and then uses the correct host or build arch in the appropriate places.  

Bug#610689: [buildd-tools-devel] Bug#610689: sbuild: cross support

2011-01-22 Thread Hector Oron
Hello, 2011/1/22 Roger Leigh rle...@codelibre.net: It should work with sbuild today (once schroot does this).  The check should still succeed when --arch is used (after all, it's a sanity check to ensure we have the correct build arch in the chroot).  If dpkg --print-architecture returns the

Bug#610689: [buildd-tools-devel] Bug#610689: Bug#610689: sbuild: cross support

2011-01-22 Thread Roger Leigh
On Sat, Jan 22, 2011 at 11:16:44PM +, Hector Oron wrote: Hi, 2011/1/22 Roger Leigh rle...@codelibre.net: I've attached a patch (against sbuild git master, also on the cross-build branch of git://git.debian.org/users/rleigh/sbuild.git) which adds --host and --build options and then

Bug#610689: sbuild: cross support

2011-01-21 Thread Hector Oron
Package: sbuild Version: 0.60.8-1 Severity: wishlist Hello, I would love sbuild to gain the ability to handle cross builds. What is a cross build? Well, it is a way to generate a binary which it is meant to run on a foreign architecture. For cross builds you need cross tools, which are not