[buildd-tools-devel] [PATCH 01/14] Sbuild::Build: Add dpkg-buildpackage -a option when cross building
wookey at wookware.org
wookey at wookware.org
Mon Dec 12 22:58:51 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 6b1930e..5e23e3e 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -1408,6 +1408,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