<?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>3640</bug_id>
          
          <creation_ts>2012-12-25 09:29:17 +0000</creation_ts>
          <short_desc>sanity.bbclass sometimes failing to find saved_tmpdir when tmp-eglibc was deleted</short_desc>
          <delta_ts>2013-01-24 23:21:41 +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>configuration</component>
          <version>unspecified</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.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>sgw</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>28446</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-25 09:29:17 +0000</bug_when>
    <thetext>When rebuilding from scratch or sstate-cache, first build often (maybe always) fails to find saved_tmpdir. Then it builds only pseudo-native and quits:

+ bitbake -k world
Pseudo is not present but is required, building this first before the main build
ERROR: Execution of event handler &apos;check_sanity_eventhandler&apos; failed
Traceback (most recent call last):
  File &quot;check_sanity_eventhandler(e)&quot;, line 4, in check_sanity_eventhandler(e=&lt;bb.event.ConfigParsed object at 0x2193950&gt;)
  File &quot;sanity.bbclass&quot;, line 230, in check_sanity(sanity_data=&lt;bb.data_smart.DataSmart object at 0x20a5150&gt;)
IOError: [Errno 2] No such file or directory: &apos;/home/jenkins/shr/shr-core-branches/shr-core/tmp-eglibc/saved_tmpdir&apos;

NOTE: PRServer: started! DBfile: /home/jenkins/shr/shr-core-branches/shr-core/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 41554, PID: 18885
Parsing recipes...done.
Parsing of 1722 .bb files complete (0 cached, 1722 parsed). 2096 targets, 67 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = &quot;1.17.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;arm-oe-linux-gnueabi&quot;
MACHINE           = &quot;qemuarm&quot;
DISTRO_VERSION    = &quot;oe-core.0&quot;
TUNE_FEATURES     = &quot;armv5 thumb dsp&quot;
TARGET_FPU        = &quot;soft&quot;
meta-shr          
meta-aurora       
meta-fso          
meta-android      = &quot;jansa/test:d085e184a09e4970e18b161c6729a8124dbc78ad&quot;
meta-oe           
meta-efl          
meta-gnome        
meta-gpe          
meta-multimedia   
meta-networking   
meta-systemd      = &quot;jansa/test:39607d18776bb1491aa3bdd391cd7dcf70282bec&quot;
meta-osmocombb    
meta-nokia        
meta-htc          
meta-palm         
meta-openmoko     
meta-samsung      = &quot;jansa/test:d085e184a09e4970e18b161c6729a8124dbc78ad&quot;
meta-browser      = &quot;jansa/test:8299a092bbdc3e656c8a622d51e313c8766df44f&quot;
meta              = &quot;jansa/test:3b5be87e5a0b292e39e918cb36a160d7eef94452&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Running setscene task 1 of 9 (virtual:native:/home/jenkins/shr/shr-core-branches/shr-core/openembedded-core/meta/recipes-devtools/pseudo/pseudo_1.4.1.bb, do_populate_sysroot_setscene)
NOTE: recipe pseudo-native-1.4.1-r13: task do_populate_sysroot_setscene: Started
NOTE: recipe pseudo-native-1.4.1-r13: task do_populate_sysroot_setscene: Succeeded
NOTE: Running setscene task 2 of 9 (virtual:native:/home/jenkins/shr/shr-core-branches/shr-core/openembedded-core/meta/recipes-support/sqlite/sqlite3_3.7.15.0.bb, do_populate_sysroot_setscene)
NOTE: recipe sqlite3-native-3.7.15.0-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe sqlite3-native-3.7.15.0-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 63 tasks of which 63 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
NOTE: PRServer: stopping...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28980</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-01-21 13:58:43 +0000</bug_when>
    <thetext>Martin, can you see if this resolves it:

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 0ffa52d..8ca0b68 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -571,6 +571,7 @@ def check_sanity(sanity_data):
             messages = messages + &quot;Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n&quot; % saved_tmpdir
     else:
         f = file(checkfile, &quot;w&quot;)
+        bb.utils.mkdirhier(tmpdir)
         f.write(tmpdir)
     f.close()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29081</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-01-23 11:20:08 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Martin, can you see if this resolves it:
&gt; 
&gt; diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
&gt; index 0ffa52d..8ca0b68 100644
&gt; --- a/meta/classes/sanity.bbclass
&gt; +++ b/meta/classes/sanity.bbclass
&gt; @@ -571,6 +571,7 @@ def check_sanity(sanity_data):
&gt;              messages = messages + &quot;Error, TMPDIR has changed location. You
&gt; need to either move it back to %s or rebuild\n&quot; % saved_tmpdir
&gt;      else:
&gt;          f = file(checkfile, &quot;w&quot;)
&gt; +        bb.utils.mkdirhier(tmpdir)
&gt;          f.write(tmpdir)
&gt;      f.close()

Fails the same.

Works fine if you move that mkdirhier above &apos;f = file(checkfile, &quot;w&quot;)&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29164</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-01-24 23:20:55 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=932a4cdf4ba4368a2f9e066ed086d08a449f92ec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29165</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-01-24 23:21:41 +0000</bug_when>
    <thetext>Mask as resolved</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>