Package: sbuild Version: 0.65.2-1dima9 Severity: normal Tags: patch Hi. Previously we were able to add foreign arches when building cross compilers (i.e. when a Build-Depend explicitly called out package:arch). When trying to cross-build a "normal" package, however, the add-foreign-arch code had a silly bug and was completely broken, so the foreign arch wouldn't get added and the build-dependency install would fail. This is fixed here
>From 544bc281cc950ea6a89b3059838e7d951e3f68e3 Mon Sep 17 00:00:00 2001 From: Dima Kogan <[email protected]> Date: Wed, 5 Aug 2015 02:16:04 -0700 Subject: [PATCH] We can now add foreign arches when cross building plain packages Previously we were able to add foreign arches when building cross compilers (i.e. when a Build-Depend explicitly called out package:arch). When trying to cross-build a "normal" package, however, the add-foreign-arch code had a silly bug. This is fixed here --- lib/Sbuild/ResolverBase.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sbuild/ResolverBase.pm b/lib/Sbuild/ResolverBase.pm index d417711..546370e 100644 --- a/lib/Sbuild/ResolverBase.pm +++ b/lib/Sbuild/ResolverBase.pm @@ -251,7 +251,7 @@ sub setup_dpkg { $self->set('Initial Foreign Arches', $self->get_foreign_architectures()); if ($self->get('Host Arch') ne $self->get('Build Arch')) { - add_foreign_architecture($session, $self->get('Host Arch')) + $self->add_foreign_architecture($self->get('Host Arch')) } } -- 2.1.4

