]> code.ossystems Code Review - openembedded-core.git/commit
native.bbclass: avoid unintended substring replacement when setting PROVIDES
authorMario Domenech Goulart <mario@ossystems.com.br>
Tue, 12 May 2015 14:03:40 +0000 (11:03 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 May 2015 21:21:54 +0000 (22:21 +0100)
commitc28291f1fb07fbc80275d9bceefed642c963e204
tree8d22b66c72a4fa977e50d61360bdccf6dbe2bb57
parent787fde133c6b50c5df6ce8f90b2906b7955b41e4
native.bbclass: avoid unintended substring replacement when setting PROVIDES

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@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/native.bbclass