On Fri, Dec 03, 2010 at 02:52:56PM -0600, Jamie Strandboge wrote:
> --- sbuild-0.60.5.orig/lib/Sbuild/Build.pm
> +++ sbuild-0.60.5/lib/Sbuild/Build.pm
> @@ -1483,6 +1483,20 @@
>       warn "Cannot open $self->{'Chroot 
> Dir'}/usr/share/doc/build-essential/list: $!\n";
>      }
>  
> +    # Workaround http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602571
> +    if (open( F, "$self->{'Chroot Dir'}/etc/lsb-release" )) {
> +        while( <F> ) {
> +            if ($_ eq "DISTRIB_ID=Ubuntu\n") {
> +                @essential = grep(!/^sysvinit$/, @essential);
> +                last;
> +            }
> +        }
> +        close( F );
> +    }
> +    else {
> +        warn "Cannot open $self->{'Chroot Dir'}/etc/lsb-release: $!\n";
> +    }
> +
>      return join( ", ", @essential );
>  }
>  

Applied to git master.


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.

Attachment: signature.asc
Description: Digital signature

Reply via email to