<?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>4622</bug_id>
          
          <creation_ts>2013-06-06 18:26:55 +0000</creation_ts>
          <short_desc>buildhistory fails or reports wrong info when building 2 SDK images in one bitbake call</short_desc>
          <delta_ts>2013-06-12 09:33:15 +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>1.4</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>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33677</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-06-06 18:26:55 +0000</bug_when>
    <thetext>buildhistory_get_sdk_installed doesn&apos;t work well when 2 sdk images are built at the same time, they share some temporary files ($1 is set to &quot;target&quot; or &quot;host&quot;)
POPULATE_SDK_POST_TARGET_COMMAND_append = &quot;buildhistory_get_sdk_installed target ; &quot;
POPULATE_SDK_POST_HOST_COMMAND_append = &quot;buildhistory_get_sdk_installed host ; &quot;

shared files:
pkgcache=&quot;$1/installed-packages.tmp&quot;
$1/depends.tmp
$1/depends.dot
$1/installed-package-sizes.tmp
$1/installed-package-sizes.txt
4 more $1/depends-*dot are used only when != sdk

when 2 tasks run together, the 2nd fails with
rm: cannot remove &apos;/OE/shr-core/buildhistory/sdk/oecore-i686-cortexa8-vfp-neon/target/installed-packages.tmp&apos;: No such file or directory

and even the 1st can have invalid buildhistory info (some parts could be overwritten from 2nd task)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33679</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-06-06 21:32:03 +0000</bug_when>
    <thetext>Now when it completed successfully I can see that&apos;s a bit worse, both SDK images are written to the same directory in buildhistory, this is from building
meta-toolchain-gmae and then meta-toolchain-efl:

https://github.com/shr-distribution/buildhistory/commit/27d505b4f4c1730d187a84413bbc05f01f69d953

It would be nice to put them in &quot;sdk name&quot; directory like it&apos;s done for normal images.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33700</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-06-07 16:37:13 +0000</bug_when>
    <thetext>I&apos;ve sent a patch to add IMAGE_BASENAME to the path within buildhistory to avoid this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33702</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-06-07 16:47:44 +0000</bug_when>
    <thetext>Thanks for quick fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33792</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-06-12 09:33:15 +0000</bug_when>
    <thetext>Patch merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f5c6663b37fe0bca8475f4e063b0123c66c2c808</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>