Fix virtual provider for webruntime 81/8981/5
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 29 Mar 2017 14:53:45 +0000 (16:53 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 29 Mar 2017 15:46:35 +0000 (15:46 +0000)
A recipe that is to be used as virtual provider needs to declare
this in a PROVIDES += 'virtual/foo' statement.

The selection then happens through a PREFERRED_PROVIDER.

Add the missing PROVIDES.

Additionally we found that in case of web-runtime,
_R_PROVIDES is not reflecting the PROVIDES as expected
and added the necessary override there, too.

Kudos to co-investigator Stéphane Desneux.

Change-Id: Ic9224ea122c21dab6ab2e7e515d6ac4d0417ef57
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
meta-app-framework/recipes-core/web-runtime/web-runtime_0.1.bb

index fa14987..90c72ec 100644 (file)
@@ -14,6 +14,10 @@ SRC_URI = "\
 
 RDEPENDS_${PN} = "qtwebkit-qmlplugins"
 
+PROVIDES += "virtual/webruntime"
+# add also RPROVIDES to satisfy the packagegroup
+RPROVIDES_${PN} += "virtual/webruntime"
+
 do_configure() {
     :
 }