<?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>15444</bug_id>
          
          <creation_ts>2024-03-14 17:48:44 +0000</creation_ts>
          <short_desc>meta-ide-support: depend recursively on populate_sysroot</short_desc>
          <delta_ts>2026-03-25 23:53:17 +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>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian">adrian.freihofer</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sundeep.kokkonda</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>98481</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian">adrian.freihofer</who>
    <bug_when>2024-03-14 17:48:44 +0000</bug_when>
    <thetext>This bug was originally reported by Peter here: https://lists.openembedded.org/g/openembedded-core/message/197092. But since the right solution is not found yet it might be better to track this as a bug.

Following workflow is broken when built from sstate-cache:
https://docs.yoctoproject.org/singleindex.html#setting-up-the-extensible-sdk-environment-directly-in-a-yocto-build
This is already broken in kirkstone.

Reproducer:
$ bitbake meta-ide-support &amp;&amp; bitbake build-sysroots -c build_native_sysroot
$ ls -1 build/tmp/sysroots/*/*gdb-cross* &amp;&amp; echo OK || echo FAIL #succeeds from scratch
build/tmp/sysroots/x86_64/manifest-x86_64-gdb-cross-x86_64.populate_sysroot
OK
$ rm -rf build/tmp
$ bitbake meta-ide-support &amp;&amp; bitbake build-sysroots -c build_native_sysroot
$ ls -1 build/tmp/sysroots/*/*gdb-cross* &amp;&amp; echo OK || echo FAIL #fails from sstate-cache
ls: cannot access &apos;build/tmp/sysroots/*/*gdb-cross*&apos;: No such file or directory
FAIL

build-sysroot populates sysroot with recipes which run populate_sysroot or populate_sysroot_setscene. Dependency on its own populate_sysroot does not seem to work when building from sstate-cache as this task is not executed. This seem to becaused by inheriting nopackages class which deletes tasks thus messing the setscene dependencies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99632</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-09-10 16:47:40 +0000</bug_when>
    <thetext>Does not appear to be fixed yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100802</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-30 16:06:38 +0000</bug_when>
    <thetext>Bulk move to 5.2-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100810</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-30 16:17:03 +0000</bug_when>
    <thetext>Bulk move to 5.2-M3 and this time I&apos;ll actually specify M3!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101413</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-03-18 18:42:51 +0000</bug_when>
    <thetext>Still happening on poky/master 
331aef4bcf   2025-03-14  scripts: Add clean-hashserver-database script</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101844</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-01 14:09:07 +0000</bug_when>
    <thetext>Bulk move of most 5.2-M4 unassigned bugs to 5.3-M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102611</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-14 17:58:30 +0000</bug_when>
    <thetext>Still fails on master:
❯ git log --oneline -1
f9e0afedea (HEAD -&gt; master, origin/master, origin/HEAD) oe-selftest: add wic.Wic.test_grub_install_pcbios

Bump to M4, CC Sundeep.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>