From 14b70cd222519e5bccaca955334787f123d9fc54 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 25 Jul 2012 20:16:46 +0000 Subject: base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues If something is listed in ASSUME_PROVIDED but also manually built (like bzip2-native and bzip2-replacement-native), we need to ensure that the installed binaries are only accessed for things which list the provider in DEPENDS. This patch adds a generic mechanism to handle this instead of everything reinventing the wheel. EXTRANATIVEPATH += "perl-native" will ensure that ${STAGING_BINDIR_NATIVE}/perl-native is added to PATH. This means that: a) Such providers should install to ${bindir}/xxx-native b) Should PROVIDE += "xxxx-replacement-native" c) That users should DEPEND on xxx-replacement-native and have EXTRANATIVEPATH += "xxx-native" This patch enables this at the core level, the bzip2 recipe still needs adjusting to work like this along with adjustment of the users of bzip2-replacement-native (python-native?). Signed-off-by: Richard Purdie --- meta/classes/gzipnative.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/gzipnative.bbclass') diff --git a/meta/classes/gzipnative.bbclass b/meta/classes/gzipnative.bbclass index 4a411434a4..007e32c690 100644 --- a/meta/classes/gzipnative.bbclass +++ b/meta/classes/gzipnative.bbclass @@ -1,3 +1,3 @@ -PATH_prepend = "${STAGING_BINDIR_NATIVE}/pigz-native:${STAGING_BINDIR_NATIVE}/gzip-native:" +EXTRANATIVEPATH += "pigz-native gzip-native" DEPENDS += "gzip-native" -- cgit 1.2.3-korg