<?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>10797</bug_id>
          
          <creation_ts>2016-12-13 00:09:50 +0000</creation_ts>
          <short_desc>ESDK can contain path to build sysroot as SDK sysroot</short_desc>
          <delta_ts>2017-01-22 21:36:06 +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>devtools / tool chain</component>
          <version>2.2</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>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</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>69069</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-12-13 00:09:50 +0000</bug_when>
    <thetext>My TMPDIR is set to /data/poky-master/tmp-glibc.  If I build an ESDK and install to ~/poky_sdk then the environment script says this:

export SDKTARGETSYSROOT=/home/ross/poky_sdk/../../../../../data/poky-master/tmp-glibc/sysroots/intel-corei7-64

My hunch was that this is because TMPDIR isn&apos;t a subdirectory of the build directory, but rebuilding with TMPDIR under build doesn&apos;t solve the problem.  So either that isn&apos;t the cause, or the paths end up in a nativesdk package instead of being generated at sdk creation time.  Another build is running now to test this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69070</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-12-13 00:57:25 +0000</bug_when>
    <thetext>Confirmed that building from clean with default TMPDIR fixes the problem.  There&apos;s a nativesdk package somewhere that embeds the TMPDIR path in, and if this TMPDIR isn&apos;t under the build directory then the path logic explodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69304</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-12-22 03:31:51 +0000</bug_when>
    <thetext>The recipe that includes this path is meta/recipes-core/meta/meta-environment-extsdk.bb. There&apos;s also a reference in meta/classes/populate_sdk_ext.bbclass (see the line setting the binrelpath variable).

The approach we&apos;ve taken up to this point is to allow the default through for TMPDIR, but given that people point that to other locations that doesn&apos;t really work. We can probably fix it just by forcing TMPDIR to a known value (e.g. &quot;${TOPDIR}/tmp&quot; and assuming that value in meta-environment-extsdk.bb instead. We&apos;ll need to double-check that doesn&apos;t break OE-Core standalone use since that has a different default TMPDIR (though it shouldn&apos;t cause an issue there).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69994</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-01-22 21:36:06 +0000</bug_when>
    <thetext>Fix merged to master:

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

    </bug>

</bugzilla>