Package: sbuild
Version: 0.57.2-1
Severity: normal
Tags: patch

Hi,

if you use --chroot=x _and_ --arch=y, begin_session in Chroot.pm always fails 
with
"Chroot for architecture $arch not found\n".

Afai understand the source, this little patch should fix the bug:
----
--- Chroot.pm.orig      2008-05-06 10:54:31.000000000 +0200
+++ Chroot.pm   2008-05-06 11:01:39.000000000 +0200
@@ -194,6 +194,9 @@
             $chroot = $distribution;
        }
     }
+               else {
+                               $arch_found = 1;
+               }

     if (!$arch_found && $arch ne "") {
        print STDERR "Chroot for architecture $arch not found\n";
----

Thanks,

Stephan

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-4-k7 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages sbuild depends on:
ii  adduser                       3.107      add and remove users and groups
ii  apt                           0.7.12     Advanced front-end for dpkg
ii  dctrl-tools                   2.12       Command-line tools to process Debi
ii  dpkg-dev                      1.14.18    package building tools for Debian
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  perl-modules                  5.8.8-12   Core Perl modules
ii  schroot                       1.1.6-1    Execute commands in a chroot envir
ii  ssmtp [mail-transport-agent]  2.62-1     extremely simple MTA to get mail o

Versions of packages sbuild recommends:
ii  debootstrap                   1.0.9      Bootstrap a basic Debian system
ii  fakeroot                      1.9.5      Gives a fake root environment

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to