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

Loïc Minier lool at dooz.org
Sat Jan 22 23:08:59 UTC 2011


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 tested
> everything still works fine for normal non-cross builds, this will
> need testing for cross builds to make sure I've not got the
> host/build arch mixed up in any places (since I will not have
> picked any error up when they are both the same).

 I think the patches got lost somewhere; I've extracted them from git
 and am attaching them here for others; thanks!

 I confirm that the first patch seems to mix build and host arch: you
 want to search for a chroot named after the build architecture rather
 than the host architecture (at least that's how I name mine  ;-)  this
 affects bin/sbuild-createchroot and the man page changes at least.  I
 also saw you're testing for build_arch in the .dsc, but the build arch
 is always irrelevant when looking at debian/* ATM -- they only speak of
 host architectures:
        for my $a (split(/\s+/, $dscarchs)) {
-           if (Dpkg::Arch::debarch_is($arch, $a)) {
+           if (Dpkg::Arch::debarch_is($build_arch, $a)) {

 The second patch has a typo, it tests BUILD_ARCH != BUILD_ARCH.


 If you're looking for test cases, hello/hello-debhelper should be
 fairly easy to cross-compile, or u-boot (only latest version is fixed).

-- 
Loïc Minier


More information about the Buildd-tools-devel mailing list