<?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>11497</bug_id>
          
          <creation_ts>2017-05-10 17:34:29 +0000</creation_ts>
          <short_desc>eSDK: create test case for populate_sdk_ext using shared states</short_desc>
          <delta_ts>2025-07-03 15:32:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.4</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>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          <dependson>11623</dependson>
    
    <dependson>11489</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>brian.avery</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>73171</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-05-10 17:34:29 +0000</bug_when>
    <thetext>Currently there is to run &quot;$bitbake &lt;image&gt; -c populate_sdk_ext&quot; but does not specify the use of shared states, hence a new test case is needed to execute this test but using SSTATES.

Please create the test casea and add it to the eSDK test suite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73175</commentid>
    <comment_count>1</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-05-10 19:38:42 +0000</bug_when>
    <thetext>i would broaden this to have a build of &lt;something large like sato-dev&gt;,with sdk and esdk all being built from sstate.

furthermore, it&apos;s crucial that the build path for the  sstate used and the build path for this test be different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73193</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-05-11 14:53:13 +0000</bug_when>
    <thetext>Its also crucial the paths are different *and* the original build path is no longer present and has been deleted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73574</commentid>
    <comment_count>3</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-05-30 22:19:48 +0000</bug_when>
    <thetext>Working on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73684</commentid>
    <comment_count>4</comment_count>
    <who name="Francisco Pedraza">francisco.j.pedraza.gonzalez</who>
    <bug_when>2017-06-05 17:40:47 +0000</bug_when>
    <thetext>Assigned to Joshua due need info for the best way to avoid hard-coding when using sstates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73747</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-06-06 14:20:23 +0000</bug_when>
    <thetext>As this is very similar to bug #11500, for which I&apos;ve already implemented a new buildstep to remove files, I&apos;ve gone ahead and begun implementation.

Essentially we need to add extra buildsteps on end of an existing buildset (i.e. nightly-qa-extras) which deletes tmp, then builds an eSDK in a different TMPDIR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73803</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-06-07 14:38:47 +0000</bug_when>
    <thetext>Some buildsteps to run this test have now been enabled on the Yocto Autobuilder:

http://git.yoctoproject.org/clean/cgit.cgi/yocto-autobuilder/commit/?id=5d80b30d55c134aeca63643b4ef3611a1845c6d1

However this isn&apos;t complete because the way to ensure that shared state objects are used it to generate a locked signature file and use that when running the build. However, as reported in bug #11623, when auto.conf includes a relative path to the generated locked-sigs.inc this value is propagated to the simulated eSDK environment where bitbake is run during eSDK generation, but the file isn&apos;t and its absence causes a build error like:

ERROR: core-image-sato-1.0-r0 do_populate_sdk_ext: Failed to generate filtered task list for extensible SDK:

### Shell environment set up for builds. ###

You can now run &apos;bitbake &lt;target&gt;&apos;

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like &apos;runqemu qemux86&apos;
ERROR: bitbake failed:
ERROR: ParseError at /srv/autobuilder/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/newtmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/sdk-ext/image/tmp-renamed-sdk/conf/local.conf:23: Could not include required file ../locked-sigs.inc
ERROR: core-image-sato-1.0-r0 do_populate_sdk_ext: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: /srv/autobuilder/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/newtmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/temp/log.do_populate_sdk_ext.49644
NOTE: recipe core-image-sato-1.0-r0: task do_populate_sdk_ext: Failed
ERROR: Task (/srv/autobuilder/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/recipes-sato/images/core-image-sato.bb:do_populate_sdk_ext) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 7344 tasks of which 6862 didn&apos;t need to be rerun and 1 failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74801</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-07-06 11:18:54 +0000</bug_when>
    <thetext>Moving milestone as dependent bug #11623 isn&apos;t going to make M2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79549</commentid>
    <comment_count>8</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2018-02-22 10:21:50 +0000</bug_when>
    <thetext>This is blocked on the locked-sigs bug, which has moved target milestone again. I&apos;m assigning this issue to Paul so that he can track the dependency and disposition this issue to an appropriate implementer once the dependency bug is resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95848</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-06-29 16:38:23 +0000</bug_when>
    <thetext>Still worth doing when we have the people available. -- YP bug review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102394</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-07-03 15:32:51 +0000</bug_when>
    <thetext>Still worth doing when we have the people available. -- YP bug review.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>