<?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>8787</bug_id>
          
          <creation_ts>2015-12-10 15:48:59 +0000</creation_ts>
          <short_desc>dangling toasterconf.json</short_desc>
          <delta_ts>2016-02-15 15:49:12 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>brian.avery</cc>
    
    <cc>elliot.smith</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <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>57171</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-12-10 15:48:59 +0000</bug_when>
    <thetext>commit 8dcad75ad1d9b8adddeca57e996b8d904b209df5
Author: Mihail Stanciu &lt;stanciux.mihail@intel.com&gt;
Date:   Mon Dec 7 15:53:00 2015 +0000

    toaster: tests Automated build-mode backend tests
    
    Add tests to check various backend scenarios that
    require UI interaction.
    
    Add necessary files for above tests (the sqlite file
    and the default config json).

introduces a dangling symlink:

lib/toaster/contrib/tts/toasteruitest/toasterconf.json -&gt; ../../../../../../meta-yocto/conf/toasterconf.json

meta-yocto only exists at that place in Poky, but not in other distros using bitbake.

With the dangling symlink in place, do_populate_sdk_ext fails:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;copy_buildsystem&apos;, lineno: 148, function: &lt;module&gt;
     0144:                                                   sstate_out, d,
     0145:                                                   fixedlsbstring)
     0146:
     0147:
 *** 0148:copy_buildsystem(d)
     0149:
File: &apos;copy_buildsystem&apos;, lineno: 145, function: copy_buildsystem
     0141:    bb.utils.remove(sstate_out, True)
     0142:    oe.copy_buildsystem.create_locked_sstate_cache(lockedsigs_pruned,
     0143:                                                   d.getVar(&apos;SSTATE_DIR&apos;, True),
     0144:                                                   sstate_out, d,
 *** 0145:                                                   fixedlsbstring)
     0146:
     0147:
     0148:copy_buildsystem(d)
     0149:
File: &apos;/var/lib/jenkins/build-0/meta/lib/oe/copy_buildsystem.py&apos;, lineno: 102, function: create_locked_sstate_cache
     0098:
     0099:    bb.process.run(&quot;gen-lockedsig-cache %s %s %s&quot; % (lockedsigs, input_sstate_cache, output_sstate_cache))
     0100:    if fixedlsbstring:
     0101:        os.rename(output_sstate_cache + &apos;/&apos; + d.getVar(&apos;NATIVELSBSTRING&apos;, True),
 *** 0102:        output_sstate_cache + &apos;/&apos; + fixedlsbstring)
Exception: OSError: [Errno 2] No such file or directory

ERROR: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: .../temp/log.do_populate_sdk_ext.27673</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57172</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-12-10 15:49:27 +0000</bug_when>
    <thetext>Can this commit be reverted while waiting for a proper fix?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57178</commentid>
    <comment_count>2</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2015-12-10 17:02:59 +0000</bug_when>
    <thetext>I suggest it&apos;s reverted in the short term.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57182</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-12-10 19:03:06 +0000</bug_when>
    <thetext>Slight update: while the dangling symlink was causing problems for us and clearly isn&apos;t right for bitbake, it caused problems elsewhere. It&apos;s not clear whether the do_populate_sdk_ext is related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57195</commentid>
    <comment_count>4</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2015-12-11 10:03:39 +0000</bug_when>
    <thetext>I&apos;ve submitted a patch to remove the symlinks after discussion with Mihai in QA:

http://lists.openembedded.org/pipermail/bitbake-devel/2015-December/006776.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58914</commentid>
    <comment_count>5</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-02-11 17:05:09 +0000</bug_when>
    <thetext>http://lists.openembedded.org/pipermail/bitbake-devel/2015-December/006776.html looks like it would solve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58921</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-02-11 20:57:44 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=19045bab71f45ec60a87aa6660be557de82072b2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59024</commentid>
    <comment_count>7</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2016-02-15 15:49:12 +0000</bug_when>
    <thetext>Verified symlinks removed from master: 36b43b233c841b3c09fc17e04686b4b758780963</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>