[Buildd-tools-devel] Bug#479714: Bug#479714: sbuild: New option --chroot does not work with --arch

Roger Leigh rleigh at debian.org
Tue May 6 10:27:50 UTC 2008


On Tue, May 06, 2008 at 09:51:44AM +0000, Stephan Suerken wrote:
> 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";

Hi,

Thanks for letting me know.  If you check out the latest sbuild
(debcheckout sbuild), you should find this is fixed (I attached this as
a .deb for you as well).  The above is now in find_chroot() in
lib/Sbuild/ChrootInfo.pm.  I did add some logic to fix this, but I would
be grateful if you could try out the latest GIT or the attached .deb to
verify this is the case.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.





More information about the Buildd-tools-devel mailing list