<div dir="ltr">I think there were selftest failures and I removed it to see what happened, added back again now.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 December 2017 at 01:10, Chang, Rebecca Swee Fun <span dir="ltr"><<a href="mailto:rebecca.swee.fun.chang@intel.com" target="_blank">rebecca.swee.fun.chang@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ping again.<br>
I noticed that it was on mut2 2 weeks ago. I think this was dropped somehow at that point. May I know what I can do in order to make it into M1 cycle?<br>
<br>
Thanks,<br>
Rebecca<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 15/11/2017, 10:00 AM, "<a href="mailto:openembedded-core-bounces@lists.openembedded.org">openembedded-core-bounces@<wbr>lists.openembedded.org</a> on behalf of Chang Rebecca Swee Fun" <<a href="mailto:openembedded-core-bounces@lists.openembedded.org">openembedded-core-bounces@<wbr>lists.openembedded.org</a> on behalf of <a href="mailto:rebecca.swee.fun.chang@intel.com">rebecca.swee.fun.chang@intel.<wbr>com</a>> wrote:<br>
<br>
If you specify 'tag=' for a git URL and passed to recipetool create, you<br>
will get into Bitbake expansion error shown below:<br>
<br>
----- snip -----<br>
$ devtool add --version 2.4.2 mbedtls "git://<a href="http://github.com/ARMmbed/mbedtls;tag=mbedtls-2.4.2" rel="noreferrer" target="_blank">github.com/ARMmbed/<wbr>mbedtls;tag=mbedtls-2.4.2</a>"<br>
...<br>
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Conflicting revisions (<wbr>abeccb9dbd7e19ae91ac50e1edd380<wbr>3111c5f9b6 from SRCREV and mbedtls-2.4.2 from the url) found, please specify one valid value<br>
----- snip -----<br>
<br>
Assuming the tag is valid, we should get the tag commit hash and<br>
drop the usage of 'tag=' from SRC_URI. By using a commit hash<br>
corresponding to the tag will prevent bitbake from accessing<br>
remote repository in order to expand SRCPV.<br>
<br>
Signed-off-by: Chang Rebecca Swee Fun <<a href="mailto:rebecca.swee.fun.chang@intel.com">rebecca.swee.fun.chang@intel.<wbr>com</a>><br>
---<br>
scripts/lib/recipetool/create.<wbr>py | 8 ++++----<br>
1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/scripts/lib/recipetool/<wbr>create.py b/scripts/lib/recipetool/<wbr>create.py<br>
index 54e7e85..2fc9e0a 100644<br>
--- a/scripts/lib/recipetool/<wbr>create.py<br>
+++ b/scripts/lib/recipetool/<wbr>create.py<br>
@@ -480,7 +480,6 @@ def create_recipe(args):<br>
if tag:<br>
# Keep a copy of tag and append nobranch=1 then remove tag from URL.<br>
# Bitbake fetcher unable to fetch when {AUTOREV} and tag is set at the same time.<br>
- # We will re-introduce tag argument after bitbake fetcher process is complete.<br>
storeTagName = params['tag']<br>
params['nobranch'] = '1'<br>
del params['tag']<br>
@@ -552,13 +551,11 @@ def create_recipe(args):<br>
<br>
# Since we might have a value in srcbranch, we need to<br>
# recontruct the srcuri to include 'branch' in params.<br>
+ scheme, network, path, user, passwd, params = bb.fetch2.decodeurl(srcuri)<br>
if srcbranch:<br>
- scheme, network, path, user, passwd, params = bb.fetch2.decodeurl(srcuri)<br>
params['branch'] = srcbranch<br>
- srcuri = bb.fetch2.encodeurl((scheme, network, path, user, passwd, params))<br>
<br>
if storeTagName and scheme in ['git', 'gitsm']:<br>
- # Re-introduced tag variable from storeTagName<br>
# Check srcrev using tag and check validity of the tag<br>
cmd = ('git rev-parse --verify %s' % (storeTagName))<br>
try:<br>
@@ -568,6 +565,9 @@ def create_recipe(args):<br>
logger.error(str(err))<br>
logger.error("Possibly wrong tag name is provided")<br>
sys.exit(1)<br>
+ # Drop tag from srcuri as it will have conflicts with SRCREV during recipe parse.<br>
+ del params['tag']<br>
+ srcuri = bb.fetch2.encodeurl((scheme, network, path, user, passwd, params))<br>
<br>
if os.path.exists(os.path.join(<wbr>srctree, '.gitmodules')) and srcuri.startswith('git://'):<br>
srcuri = 'gitsm://' + srcuri[6:]<br>
--<br>
2.7.4<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></div></blockquote></div><br></div>