[Buildroot] [PATCH 4/8] flex: add flex-host package (required by webkit)

Lionel Landwerlin llandwerlin at gmail.com
Sun Nov 15 15:39:44 UTC 2009


Le dimanche 15 novembre 2009 à 15:26 +0100, Thomas Petazzoni a écrit :
> Le Sun, 15 Nov 2009 11:12:53 +0100,
> llandwerlin at gmail.com a écrit :
> 
> >  $(eval $(call AUTOTARGETS,package,flex))
> > +$(eval $(call AUTOTARGETS,package,flex,host))
> 
> BTW, why do we need to build flex for the host ? flex is part of the
> few tools that we consider to be a dependency of Buildroot.

It's required to build webkit. I didn't notice the problem until I built
it on a host system where it wasn't installed.

> 
> In toolchain/dependencies/dependencies.sh, we check that a host flex is
> available. This tool (along with bison) is anyway mandatory to build
> the toolchain.

Oh, I didn't know that, but I didn't receive any error when building
webkit with uclibc (no external toolchain).


> 
> So :
> 
>  * Either we consider flex to be part of Buildroot dependencies and
>    Webkit should not depend on host-flex ;
> 
>  * Or we don't consider flex to be part of the Buildroot dependencies
>    and we should fix all packages and toolchain that use flex without
>    depending on it.
> 

I guess it's up to Peter to decide.

According to me, flex isn't a big piece of software. So rebuilding it
shouldn't be a problem (in term of time of compilation).
For example host-libglib is quite more annoying to build (is it only
required for glib-genmarshal ?).

-- 
Lionel Landwerlin




More information about the buildroot mailing list