Package: sbuild Version: 0.67.0-2 Tags: patch It looks like sbuild doesn't currently take build profiles into account when resolving cross build dependencies. This seems to me like a fundamental building block for at least the "cross" profile, so maybe I'm missing something?
In case I'm not, please consider the attached patch for the APT resolver. -- Niko Tyni [email protected]
>From af448d7b7d566813578363b6068216286a7a4cc1 Mon Sep 17 00:00:00 2001 From: Niko Tyni <[email protected]> Date: Sat, 2 Jan 2016 17:09:45 +0200 Subject: [PATCH] AptResolver: use build profiles when resolving cross-build dependencies Use cases include a <!nocheck> annotated build dependency for avoiding test suite build dependencies, and a <cross> one for something specific to cross building. --- lib/Sbuild/AptResolver.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Sbuild/AptResolver.pm b/lib/Sbuild/AptResolver.pm index 7485cda..ebd1bfe 100644 --- a/lib/Sbuild/AptResolver.pm +++ b/lib/Sbuild/AptResolver.pm @@ -75,6 +75,11 @@ sub install_deps { # details right. push @apt_args, '-a' . $self->get('Host Arch'), 'build-dep', $dummy_pkg_name; + my $profiles = $self->get('Build Profiles'); + if (defined $profiles and $profiles ne '') { + $profiles =~ s/ /,/g; + push @apt_args, "-P$profiles"; + } } else { push @apt_args, 'install', $dummy_pkg_name; } -- 2.6.4

