<?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>13140</bug_id>
          
          <creation_ts>2019-01-14 18:22:37 +0000</creation_ts>
          <short_desc>data_smart.py fails when parsing ”${@&lt;call&gt;}”</short_desc>
          <delta_ts>2021-09-11 21:42:28 +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>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ulf Samuelsson">Ulf</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Ulf</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>82788</commentid>
    <comment_count>0</comment_count>
    <who name="Ulf Samuelsson">Ulf</who>
    <bug_when>2019-01-14 18:22:37 +0000</bug_when>
    <thetext>When defining a new image class we ran into this problem.

do_sdk_depends[depends] = ”${@get_ext_sdk_depends(d) ...”

When parsed in data_smart.py  DataSmart.expandsWithRefs test for the presence of ”${”, and if found, it tries to expand the variable, but due to the presence of the ’@’, the regular expression does not find a match, and somewhere an exception is triggered causing the build to abort.

The problem was seen on the sumo branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82797</commentid>
    <comment_count>1</comment_count>
    <who name="Ulf Samuelsson">Ulf</who>
    <bug_when>2019-01-15 06:17:51 +0000</bug_when>
    <thetext>I tried checking for the get_ext_sdk_depends string, and replacing it to a call to the function, which is not visible inside data_smart.py.
Then tried just removing it, which exposed a circular dependency, which was not present in the pyro branch.

Will compare the dependencies with those of a build without our image class to find out how to resolve the circular dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82816</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-01-17 15:35:40 +0000</bug_when>
    <thetext>There is information on the yocto mailing list about this, its a circular task dependency problem. We need to see if we can improve the error message in such cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82822</commentid>
    <comment_count>3</comment_count>
    <who name="Ulf Samuelsson">Ulf</who>
    <bug_when>2019-01-17 22:26:54 +0000</bug_when>
    <thetext>I sent a patch which will compare the after and before task list and check them vs a list of tasks where we know the order.
If a combination is found which would cause a circular dependency, an error is emitted.
It will not cover every circular error, but it should be quick, and catch a significant number of errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91379</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-10 13:46:24 +0000</bug_when>
    <thetext>https://www.yoctoproject.org/pipermail/yocto/2019-January/043844.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91381</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-10 14:10:04 +0000</bug_when>
    <thetext>Patch sent to make the circular task errors fatal with a sensible error message</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91392</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-11 21:42:28 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3a8cb949a9c11d7fcab55c2036f8be306beb4e37</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>