[OE-core] [PATCH] native.bbclass: avoid unintended substring replacement when setting PROVIDES

Otavio Salvador otavio at ossystems.com.br
Tue May 12 14:36:58 UTC 2015


On Tue, May 12, 2015 at 11:03 AM, Mario Domenech Goulart
<mario at ossystems.com.br> wrote:
> The way native_virtclass_handler was implemented leaded to
> unintended substring replacements when setting PROVIDES for
> native providers, in case the original PROVIDES value contains
> providees with common substrings.
>
> Here's a practical case where the old behavior was problematic:
> the oracle-jse-jdk-x86-64 recipe provides both virtual/java and
> virtual/javac:
>
> Before:
>
> $ bitbake -e oracle-jse-jdk-x86-64-native | grep ^PROVIDES=
> PROVIDES="oracle-jse-jdk-x86-64-native  virtual/java-native virtual/java-nativec"
>
> After:
>
> $ bitbake -e oracle-jse-jdk-x86-64-native | grep ^PROVIDES=
> PROVIDES="oracle-jse-jdk-x86-64-native virtual/java-native virtual/javac-native"
>
> Change-Id: I8186992dae58e37c2a2364586360ff9b7da9198f
> Signed-off-by: Mario Domenech Goulart <mario at ossystems.com.br>

Acked-by: Otavio Salvador <otavio at ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list