<?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>13090</bug_id>
          
          <creation_ts>2018-12-17 18:20:48 +0000</creation_ts>
          <short_desc>re-enable indirect multiconfig dependencies</short_desc>
          <delta_ts>2019-02-28 15:05:44 +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>x86</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro Hernandez">alejandr</reporter>
          <assigned_to name="Alejandro Hernandez">alejandr</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>82520</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro Hernandez">alejandr</who>
    <bug_when>2018-12-17 18:20:48 +0000</bug_when>
    <thetext>While fixing bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=12985 indirect multiconfig dependencies stopped working.

If a dependency such as the following exists in the metadata:

python_2.7.bb:
do_compile[mcdepends] += &quot;multiconfig:x86:arm:python:do_configure&quot;

do_compile from python from the x86 multiconfig should depend on do_configure from python from the arm multiconfig.

This works just fine it we call:

$ bitbake multiconfig:x86:python

And that&apos;s because python is the target were building.


But, if we assume for example that core-image-minimal depends on python, and we use core-image-minimal as our target, it wont work, and we&apos;ll get an uncaught exception.

$ bitbake multiconfig:x86:core-image-minimal

Traceback (most recent call last):
  File &quot;bitbake/lib/bb/runqueue.py&quot;, line 1474, in RunQueue.execute_runqueue():
             try:
    &gt;            return self._execute_runqueue()
             except bb.runqueue.TaskFailure:
  File &quot;bitbake/lib/bb/runqueue.py&quot;, line 1394, in RunQueue._execute_runqueue():
                                                                 [43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244])
    &gt;            if self.rqdata.prepare() == 0:
                     self.state = runQueueComplete
  File &quot;bitbake/lib/bb/runqueue.py&quot;, line 636, in RunQueueData.prepare():
                     if &apos;mcdepends&apos; in task_deps and taskname in task_deps[&apos;mcdepends&apos;]:
    &gt;                    add_mc_dependencies(mc, tid)
     
  File &quot;bitbake/lib/bb/runqueue.py&quot;, line 614, in add_mc_dependencies(mc=&apos;x86&apos;, tid=&apos;multiconfig:x86:meta/recipes-devtools/pytho
n/python_2.7.15.bb:do_configure&apos;):
                     if mc == frommc:
    &gt;                    fn = taskData[mcdep].build_targets[pn][0]
                         newdep = &apos;%s:%s&apos; % (fn,deptask)
KeyError: &apos;python&apos;


I believe this is happening because the multiconfig dependencies aren&apos;t parsed in time for the build system to be aware they exist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83148</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-02-28 15:05:44 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0b19e52b85cbd9554df4df9fae50b3b193376aaa
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3bf06027130ca15cecbdf7f804a4e5153c4ce781
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=4b02d1fa21480780fd775a517ab7cc7ab0f9e9ca</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>