<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13448</bug_id>
          
          <creation_ts>2019-07-23 04:09:34 +0000</creation_ts>
          <short_desc>bitbake master appears to expand variables it should not need to</short_desc>
          <delta_ts>2021-08-03 12:11:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>0.0.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84478</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2019-07-23 04:09:34 +0000</bug_when>
    <thetext>If you add meta-iota to your configuration ( https://github.com/bernardoaraujor/meta-iota ) in master, you get a parse failure:

--------- snip ---------
WARNING: /data/poky/meta-iota/recipes-iota/ciri/ciri_0.1.0.bb: Exception during build_dependencies for AUTOREV                                                                                                                  | ETA:  --:--:--
WARNING: /data/poky/meta-iota/recipes-iota/ciri/ciri_0.1.0.bb: Error during finalise of /data/poky/meta-iota/recipes-iota/ciri/ciri_0.1.0.bb
ERROR: ExpansionError during parsing /data/poky/meta-iota/recipes-iota/ciri/ciri_0.1.0.bb                                                                                                                                        | ETA:  0:00:34
Traceback (most recent call last):
  File &quot;Var &lt;SRCPV&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/data/poky/bitbake/lib/bb/fetch2/__init__.py&quot;, line 768, in get_srcrev(d=&lt;bb.data_smart.DataSmart object at 0x7f8644d7eac8&gt;, method_name=&apos;sortable_revision&apos;):
             raise FetchError(&quot;The SRCREV_FORMAT variable must be set when multiple SCMs are used.\n&quot;\
    &gt;                         &quot;The SCMs are:\n%s&quot; % &apos;\n&apos;.join(scms))
     
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
The SCMs are:
git://github.com/iotaledger/entangled;branch=develop;name=entangled
git://github.com/iotaledger/snapshots.git;name=snapshots;destsuffix=snapshots


Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
--------- snip ---------

In warrior the recipe parses fine - note that currently as of seeing this issue the recipe does not actually reference SRCPV:
 https://github.com/bernardoaraujor/meta-iota/blob/master/recipes-iota/ciri/ciri_0.1.0.bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91091</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-08-03 12:11:46 +0000</bug_when>
    <thetext>It is a bit tricky reproducing this issue now time has passed. Revision 9c320fd577f82cf089b1be652dac3611955e3a27 of meta-iota with zeus does reproduce. For history, the recipe has:

SRC_URI = &quot; \
            git://github.com/iotaledger/entangled;branch=develop;name=entangled \
	    git://github.com/iotaledger/snapshots.git;name=snapshots;destsuffix=snapshots \
&quot;

SRCREV_entangled = &quot;7746ae0f905ae8e54a68869558d14285a2d1aaf7&quot;
SRCREV_snapshots = &quot;${AUTOREV}&quot;

i.e. it is using AUTOREV but doesn&apos;t appear to reference SRCPV. In fact it does via bitbake.conf which sets:

AUTOREV[vardepvalue] = &quot;${SRCPV}&quot;

This requirement was added in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3ab6e17ffeabc7c82d35ab2c01a85b6286ddfa34 and although this is in warrior, I suspect there were bitbake bugs meaning it wasn&apos;t being correctly handled.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>