<?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>16016</bug_id>
          
          <creation_ts>2025-10-16 15:34:10 +0000</creation_ts>
          <short_desc>Add test case to verify that Poky can build poky</short_desc>
          <delta_ts>2026-06-08 05:52:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</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>enhancement</bug_severity>
          <target_milestone>6.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>adityags2004</cc>
    
    <cc>antonin.godard</cc>
    
    <cc>brian.avery</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
    
    <cc>yoann.congal</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>102976</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-16 15:34:10 +0000</bug_when>
    <thetext>We should have an automated test to validate that a poky image can build a poky image.

Traditionally we have build-appliance-image, but that has a more complicated history (being designed for VirtualBox/VMWare) and isn&apos;t tested in any automated manner.

I propose a simpler approach: have a standard image that pulls in all the dependencies (git, gcc, etc). Boot that up, use bitbake-setup to grab latest poky, setup DL_DIR to point at the AB mirror for speed, do a build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102978</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-16 15:35:44 +0000</bug_when>
    <thetext>For bonus fun we could regularly run the test with sstate mirrors set: it should build an image entirely from sstate as the AB just built it.  A build without sstate would be essential to actually test, but would take a lot of time, so likely shouldn&apos;t be something that is done regularly, just as part of the milestone QA maybe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103053</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-23 15:14:48 +0000</bug_when>
    <thetext>*** Bug 10974 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105590</commentid>
    <comment_count>3</comment_count>
    <who name="Aditya G S">adityags2004</who>
    <bug_when>2026-05-27 09:15:27 +0000</bug_when>
    <thetext>I would like to work on this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105672</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-29 14:16:13 +0000</bug_when>
    <thetext>Hi Aditya,
That&apos;s great news. It&apos;s not a small task but there is some work to build on.


See:

meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
meta/recipes-core/packagegroups/packagegroup-self-hosted.bb

You might send a commit to have self-hosted use the list in
core-buildessential since it looks like each package listed in buildessential is
also listed in self-hosted:

# Slow but clear pipeline
oe-core.git on master

$ rg &quot;^   &quot; meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb | cut -d&quot; &quot; -f 5| rg [a-z] &gt; /tmp/core-be-list.txt


❯ for i in `cat /tmp/core-be-list.txt`; do echo $i; grep $i meta/recipes-core/packagegroups/packagegroup-self-hosted.bb; done
autoconf
    autoconf \
automake
    automake \
binutils
    binutils \
    binutils-symlinks \
binutils-symlinks
    binutils-symlinks \
cpp
    cpp \
    cpp-symlinks \
cpp-symlinks
    cpp-symlinks \
gcc
    gcc \
    gcc-symlinks \
gcc-symlinks
    gcc-symlinks \
g++
    g++ \
    g++-symlinks \
g++-symlinks
    g++-symlinks \
gettext
    gettext \
    gettext-runtime \
make
    automake \
    make \
libstdc++
    libstdc++ \
    libstdc++-dev \
libstdc++-dev
    libstdc++-dev \
libtool
    libtool \
pkgconfig
    pkgconfig \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105673</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-29 14:36:57 +0000</bug_when>
    <thetext>Aside from that minor change, it might be good to put a plan together 
to say how you&apos;re going to approach this task. It&apos;s pretty simple mechanically
but there are some decisions that should be agreed on from the start.
Off-hand, topics include:
1. Do you use bitbake-setup in the test class / on target ?
2. Does the target do the git clone of bitbake over the network or
   are it and oe-core packaged at build-time somehow.
3. Start with qemux86-64, then qemuarm64, then maybe qemuriscv64 targets.

There&apos;s probably more so start some discussion on the email list and/or
in the tech call on Tuesdays if you can/want to join. I&apos;m probably over-planning
this so just come up with a brief outline initially.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105683</commentid>
    <comment_count>6</comment_count>
    <who name="Aditya G S">adityags2004</who>
    <bug_when>2026-06-01 06:04:13 +0000</bug_when>
    <thetext>Hi,

Thanks for the pointers and the detailed guidance — this is really helpful.

I’d be interested in working on this bug. The suggestion about reusing
packagegroup-core-buildessential within packagegroup-self-hosted makes sense,
and I can look into preparing a patch for that as an initial improvement.

Regarding the larger task, I agree it would be useful to start with a basic
plan. My initial approach would be:

1. Begin with a simple selftest that validates building a Poky target
   (starting with qemux86-64).
2. Evaluate using bitbake-setup within the test environment.
3. Start with cloning poky/bitbake on the target over the network for
   simplicity, and then explore alternatives such as packaging sources
   at build time if needed.
4. Extend testing gradually to other targets such as qemuarm64 and
   qemuriscv64.

I’ll refine this further and share an outline for feedback before
moving ahead with implementation.

Thanks again for the guidance.

Regards,
Aditya</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105769</commentid>
    <comment_count>7</comment_count>
    <who name="Aditya G S">adityags2004</who>
    <bug_when>2026-06-08 05:52:01 +0000</bug_when>
    <thetext>Hi,

After reviewing the scope and discussions around this bug, it looks like
this involves a broader implementation effort and will require more time
for proper design and agreement on approach.

At this point, I would like to temporarily step back from working on this
bug and focus on another issue that is more suitable for my current stage,
so I can continue contributing while building more experience.

I plan to return to this after completing that work and gaining a deeper
understanding.

Thanks for the guidance so far.

Regards,
Aditya</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>