Robert P. J. Day | 1 Dec 2009 11:45
Picon
Gravatar

Re: [oe] Error while running bibake

On Tue, 1 Dec 2009, Graeme Gregory wrote:

> On Tue, Dec 01, 2009 at 11:29:46AM +0100, Frans Meulenbroeks wrote:
> > 2009/12/1 vivek tambakad <vivektambakad <at> gmail.com>:
> > > hi
> > > I want cross compile linphone for compulab EM-x270 board.when i try
> > >   sudo bitbake -b
> > > /home/development/em-x270/stuff/openembedded/recipes/linphone/
> > > linphone_3.1.0.bb
> > >    then i will get the following error
> > >   *bb.parse.ParseError: Could not inherit file classes/autotools.bbclass
> > > *
> > >    pleasse guide me in compiling linphone for compulab board.
> >
> > first remark:
> > there is no need to run bitbake as root.
> >
> Rephrase that.
>
> DONT RUN BITBAKE AS ROOT!!!!!!!!!
>
> That way will only lead to your host machine having bits of its
> filesystem replaced/deleted. OE relies on sandboxing the build as a
> non priviledged user.

  if you feel that strongly about it, why not just have bitbake refuse
to run as root?  seems like a simple solution.

rday
--
(Continue reading)

Phil Blundell | 1 Dec 2009 11:59
Favicon

Re: [oe] Error while running bibake

On Tue, 2009-12-01 at 05:45 -0500, Robert P. J. Day wrote:
>   if you feel that strongly about it, why not just have bitbake refuse
> to run as root?  seems like a simple solution.

sanity.bbclass does already include a check for non-root:

        if 0 == os.getuid():
                raise_sanity_error("Do not use Bitbake as root.")

I think that ought to be sufficient.  Folks who override the sanity
checking do so at their own risk.

p.
Graeme Gregory | 1 Dec 2009 12:10
Picon

Re: [oe] Error while running bibake

On Tue, Dec 01, 2009 at 05:45:36AM -0500, Robert P. J. Day wrote:
> On Tue, 1 Dec 2009, Graeme Gregory wrote:
> 
> > On Tue, Dec 01, 2009 at 11:29:46AM +0100, Frans Meulenbroeks wrote:
> > > 2009/12/1 vivek tambakad <vivektambakad <at> gmail.com>:
> > > > hi
> > > > I want cross compile linphone for compulab EM-x270 board.when i try
> > > >   sudo bitbake -b
> > > > /home/development/em-x270/stuff/openembedded/recipes/linphone/
> > > > linphone_3.1.0.bb
> > > >    then i will get the following error
> > > >   *bb.parse.ParseError: Could not inherit file classes/autotools.bbclass
> > > > *
> > > >    pleasse guide me in compiling linphone for compulab board.
> > >
> > > first remark:
> > > there is no need to run bitbake as root.
> > >
> > Rephrase that.
> >
> > DONT RUN BITBAKE AS ROOT!!!!!!!!!
> >
> > That way will only lead to your host machine having bits of its
> > filesystem replaced/deleted. OE relies on sandboxing the build as a
> > non priviledged user.
> 
>   if you feel that strongly about it, why not just have bitbake refuse
> to run as root?  seems like a simple solution.
> 
You mean like
(Continue reading)


Gmane