From: Alexander Kanavin Date: Tue, 17 Dec 2019 18:55:56 +0000 (+0100) Subject: externalsrc: always set SRCPV X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~12415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=740e3f5e1d4a8abb07c7a4e4aedd804d679c7562;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git externalsrc: always set SRCPV If devupstream is in use by the recipe, then that variant has SRCPV, but the main variant may not, in which case bitbake throws an expansion error. Signed-off-by: Alexander Kanavin Signed-off-by: Ross Burton --- diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index ea59d02ed93..d2001299876 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass @@ -73,9 +73,8 @@ python () { d.setVar('SRC_URI', ' '.join(local_srcuri)) - if '{SRCPV}' in d.getVar('PV', False): - # Dummy value because the default function can't be called with blank SRC_URI - d.setVar('SRCPV', '999') + # Dummy value because the default function can't be called with blank SRC_URI + d.setVar('SRCPV', '999') if d.getVar('CONFIGUREOPT_DEPTRACK') == '--disable-dependency-tracking': d.setVar('CONFIGUREOPT_DEPTRACK', '')