summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-12-01 09:01:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-09 08:48:24 +0000
commit551cda0bd5258f83e2cc35564ee1640b760ca722 (patch)
treedbd5c4415ecab3c1f537b417de3bfce462518d2c /meta/classes/base.bbclass
parentc093fd8bd2fbf070728f5401ce3e6cf951fa820d (diff)
downloadpoky-551cda0bd5258f83e2cc35564ee1640b760ca722.tar.gz
base: check for existing prefix when expanding names in PACKAGECONFIG
When the DEPENDS are added as part of the PACKAGECONFIG logic the list of packages are expanded so that any required nativesdk-/-native/multilib prefixes and suffixes are added. However the special handling of virtual/foo names doesn't check that the prefix already exists, which breaks under nativesdk as in that situation there's an explicit nativesdk- prefix *and* MLPREFIX is set to nativesdk-. This results in the same prefix being applied twice, and virtual packages such as virtual/libx11 ending up as virtual/nativesdk-nativesdk-libx11. (From OE-Core rev: 55ca1fb8f0e81ff739b3c46897e43356d1f760c3) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 0d92948972..f856298fb5 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -381,7 +381,10 @@ python () {
381 newappends.append(a) 381 newappends.append(a)
382 elif a.startswith("virtual/"): 382 elif a.startswith("virtual/"):
383 subs = a.split("/", 1)[1] 383 subs = a.split("/", 1)[1]
384 newappends.append("virtual/" + prefix + subs + extension) 384 if subs.startswith(prefix):
385 newappends.append(a + extension)
386 else:
387 newappends.append("virtual/" + prefix + subs + extension)
385 else: 388 else:
386 if a.startswith(prefix): 389 if a.startswith(prefix):
387 newappends.append(a + extension) 390 newappends.append(a + extension)