[oe] [PATCH] qt4-embedded: avoid circular dependencies for reciped providing qt4-embedded

Björn Krombholz pirobk at gmail.com
Mon Sep 20 18:16:26 UTC 2010


2010/9/20 Holger Freyther <holger+oe at freyther.de>
> On 09/20/2010 05:59 AM, Björn Krombholz wrote:
> > @@ -1,4 +1,4 @@
> > -DEPENDS_prepend = "${@["qt4-embedded ", ""][(bb.data.getVar('PN', d, 1) == 'qt4-embedded')]}"
> > +DEPENDS_prepend = "${@["qt4-embedded ", ""][(bb.data.getVar('PN', d, 1)[:12] == 'qt4-embedded')]}"
> >  inherit qmake2
>
> use startsWith and avoid the extra array allocation?

Array slicing just provides a new mapping onto the original array and
doesn't copy any data.

I chose this syntax to make it consistent with qt4x11.bbclass




More information about the Openembedded-devel mailing list