[Buildd-tools-devel] Bug#495517: sbuild: Fails to parse --arch properly.

Cyril Brulebois cyril.brulebois at kerlabs.com
Mon Aug 18 09:00:55 UTC 2008


Package: sbuild
Version: 0.57.6-1
Severity: important
Tags: patch

Hi,

I tried to use sbuild to set up an i386+amd64 build box, but I noticed
that --arch isn't parsed properly: no argument is taken into account.

Please find attached a patch to fix this; at least I'm currently
building i386 packages. :-)

Cheers,

-- 
Cyril Brulebois
-------------- next part --------------
>From 9af24c67bf5caa5e2e44a84d34ab94406166ace0 Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <cyril.brulebois at kerlabs.com>
Date: Mon, 18 Aug 2008 10:01:16 +0200
Subject: [PATCH] [sbuild-createchroot] Parse the --arch option properly.

---
 bin/sbuild-createchroot      |    2 +-
 man/sbuild-createchroot.8.in |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/sbuild-createchroot b/bin/sbuild-createchroot
index 9da8654..5720100 100755
--- a/bin/sbuild-createchroot
+++ b/bin/sbuild-createchroot
@@ -83,7 +83,7 @@ GetOptions (
     "resolve-deps" => sub { $resolve_deps = 1; },
     "no-resolve-deps" => sub { $resolve_deps = 0; },
     "keep-debootstrap-dir" => \$keep_debootstrap_dir,
-    "arch" => \$bootstrap_arch,
+    "arch=s" => \$bootstrap_arch,
     "verbose" => \$verbose,
     "exclude=s" => \$exclude,
     "include=s" => \$include,
diff --git a/man/sbuild-createchroot.8.in b/man/sbuild-createchroot.8.in
index c58d2e0..67b6741 100644
--- a/man/sbuild-createchroot.8.in
+++ b/man/sbuild-createchroot.8.in
@@ -20,7 +20,7 @@ sbuild\-createchroot \- create sbuild chroot
 .B sbuild\-createchroot
 .RB [ \-h \[or] \-\-help " \[or] " \-V \[or] \-\-version ]
 .RB [ \-\-verbose ]
-.RB [ \-\-arch ]
+.RB [ \-\-arch=\fIarch\fP ]
 .RB [ \-\-foreign ]
 .RB [ \-\-resolve-deps " \[or] " \-\-no-resolve-deps ]
 .RB [ \-\-keep-debootstrap-dir ]
@@ -64,7 +64,7 @@ Note that
 is the canonical reference for the meaning of the options; they are passed
 directly to debootstrap.
 .TP
-.BR \-\-arch
+.BR \-\-arch=\fIarch\fP
 Set the target architecture.  This may be used if dpkg is not already
 installed.  See also \fI\-\-foreign\fP, below.
 .TP
-- 
1.5.6.3



More information about the Buildd-tools-devel mailing list