]> code.ossystems Code Review - openembedded-core.git/commitdiff
pkgconfig: Ensure pkgconfig RDEPENDS are tracked
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 Jan 2012 15:52:27 +0000 (15:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Feb 2012 15:12:02 +0000 (15:12 +0000)
Currently, pkgconfig dependencies get added to -dev packages which install
pc files however nothing in the system makes bitbake aware of these
dependencies so images can fail with pkgconfig being missing.

This change explictly adds in the pkgconfig RDEPENDS to the -dev packages
and hence makes bitbake aware of the dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pkgconfig.bbclass

index a12cd64852dd9e8d93bff064a644d9900a6d11ee..53e793ad4e98683c606b08c52f2d15c642727c31 100644 (file)
@@ -1 +1,6 @@
 DEPENDS_prepend = "pkgconfig-native "
+
+PKGCONFIGRDEP = "pkgconfig"
+PKGCONFIGRDEP_virtclass-native = ""
+
+RDEPENDS_${PN}-dev += "${PKGCONFIGRDEP}"