[buildd-tools-devel] [PATCH 02/17] Sbuild::Build: Add dpkg-buildpackage -a option when cross building

wookey at wookware.org wookey at wookware.org
Tue Dec 13 02:37:27 UTC 2011


From: Roger Leigh <rleigh at debian.org>

---
 lib/Sbuild/Build.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index 4b1a017..88367ee 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -1413,6 +1413,10 @@ sub build {
 	    $self->get_conf('BUILD_ENV_CMND'));
     push (@{$buildcmd}, 'dpkg-buildpackage');
 
+    if ($self->get_conf('BUILD_ARCH') != $self->get_conf('BUILD_ARCH')) {
+	push (@{$buildcmd}, '-a' . $self->get_conf('BUILD_ARCH'));
+    }
+
     if (defined($self->get_conf('PGP_OPTIONS')) &&
 	$self->get_conf('PGP_OPTIONS')) {
 	if (ref($self->get_conf('PGP_OPTIONS')) eq 'ARRAY') {
-- 
1.7.5.4




More information about the Buildd-tools-devel mailing list