<?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>10113</bug_id>
          
          <creation_ts>2016-08-11 12:17:07 +0000</creation_ts>
          <short_desc>native recipes do not include runtime dependencies when populating sysroot</short_desc>
          <delta_ts>2019-02-17 10:26:09 +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>OE-Core</product>
          <component>core</component>
          <version>2.1</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>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Otavio Salvador">otavio</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>65058</commentid>
    <comment_count>0</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2016-08-11 12:17:07 +0000</bug_when>
    <thetext>This error has been catch with a Python recipe which include some runtime dependencies on other packages.

The do_populate_sysroot does not include dependencies on the runtime dependencies so those are not installed at all, leaving the tool in a non-working state.

Adding:

do_populate_sysroot[rdeptask] = &quot;do_populate_sysroot&quot;

To the recipe workaround the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65060</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-08-11 12:33:49 +0000</bug_when>
    <thetext>To elaborate, if you have a recipe foo which does:

RDEPENDS_${PN} = &quot; \
    python3-requests \
&quot;
BBCLASSEXTEND = &quot;native&quot;

and you &quot;bitbake foo-native -g&quot;, depends.dot shows foo-native has an RDEPENDS on python3-requests-native but task-depends.dot doesn&apos;t show a dependency from the do_populate_sysroot task. If we add the line:

do_populate_sysroot[rdeptask] = &quot;do_populate_sysroot&quot;

then the python3-requests-native:do_populate_sysroot dependency shows up correctly. Sadly adding this line to native.bbclass results in circular dependency errors however :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73731</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-06-06 11:05:55 +0000</bug_when>
    <thetext>Unfortunately this creates a lot of issues when trying to fix it properly. I would like to do that but its going to take a lot of time which we don&apos;t have right now and we have workarounds for the immediate issues. Reprioritising accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83030</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-02-17 10:26:09 +0000</bug_when>
    <thetext>Finally found time to fix this http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=eea86c4f0a960d0094571a78dc0cf9d46d162a22 (was easier once the dependency look code in bitbake was fixed)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>