<?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>4866</bug_id>
          
          <creation_ts>2013-07-18 13:08:03 +0000</creation_ts>
          <short_desc>SDK installer fails on hosts with Python 3.x</short_desc>
          <delta_ts>2014-03-24 22:09:18 +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>1.5</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>24 March 2014: Set Documentation flag to &quot;Done&quot;.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34668</commentid>
    <comment_count>0</comment_count>
      <attachid>1336</attachid>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-07-18 13:08:03 +0000</bug_when>
    <thetext>Created attachment 1336
Beginnings of a patch to fix the SDK relocation script for python 3

I was attempting to install buildtools-tarball on a distro that has Python 3.x (which is something we may have to support given that buildtools-tarball might be used on such distros if Python 2.7 isn&apos;t readily available); unfortunately the relocate script failed due to a few incompatibilities. Some of these are trivial to fix, others I wasn&apos;t quite sure about. I&apos;ve attached a patch that starts to fix these but I wasn&apos;t quite sure what to do when it comes to writing paths into binaries that in theory might be unicode instead of ASCII and thus are longer than expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37176</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-09-25 10:06:34 +0000</bug_when>
    <thetext>Patch sent on the ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37288</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-09-27 09:00:09 +0000</bug_when>
    <thetext>Patch merged:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5b5e1b90087bf4aab7b52fd0676fe7a30db84bfe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41627</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-03-24 15:57:11 +0000</bug_when>
    <thetext>Hi, 

This documentation is pretty much in place but I went through and made sure that every place we mention some sort of note or process surrounding the Python requirements we are correctly talking about the buildtools-tarball as a way to get the right tools on a system if the user doesn&apos;t meet the current requirements.  Here are some spots:

I updated the FAQ entry that addressed not having the correct Python version -  http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#faq-not-meeting-requirements

I updated the section in the ref-manual where we tell how to get the right tools.  This is the primary area for this information - http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#required-git-tar-and-python-versions

I updated the note in the QS to point to the primary source for getting the build system updated.  It was point to the FAQ, which pointed to the primary source - http://www.yoctoproject.org/docs/1.6/yocto-project-qs/yocto-project-qs.html#building-image

I added a note in the QS where we talk about installing the toolchain.  The note points out the fact that installing the toolchain gets your Git, tar, and Python requirements met - http://www.yoctoproject.org/docs/1.6/yocto-project-qs/yocto-project-qs.html#installing-the-toolchain.

Finally, I added the same note into the section of the adt-manual where it talks about running the .sh file to install the toolchain - http://www.yoctoproject.org/docs/1.6/adt-manual/adt-manual.html#using-an-existing-toolchain-tarball

Please check these changes out. 

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41635</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-03-24 17:33:42 +0000</bug_when>
    <thetext>After talking with Paul about this, my initial set of changes were off.  So what we have now is a change to the primary area of concern in the ref-manual, a alteration to a note in the QS, and an alteration to the FAQ entry:

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#faq-not-meeting-requirements

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#required-git-tar-and-python-versions

http://www.yoctoproject.org/docs/1.6/yocto-project-qs/yocto-project-qs.html#building-image

Please review.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41649</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-03-24 22:09:18 +0000</bug_when>
    <thetext>Hi, 

The documentation changes in the previous comment have been reviewed and approved by Paul Eggleton.  I am changing the flag to &quot;Done.&quot;

Scott</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1336</attachid>
            <date>2013-07-18 13:08:03 +0000</date>
            <delta_ts>2013-07-18 13:08:03 +0000</delta_ts>
            <desc>Beginnings of a patch to fix the SDK relocation script for python 3</desc>
            <filename>sdk_python3.patch</filename>
            <type>text/plain</type>
            <size>2286</size>
            <attacher name="Paul Eggleton">bluelightning</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3NjcmlwdHMvcmVsb2NhdGVfc2RrLnB5IGIvc2NyaXB0cy9yZWxvY2F0ZV9z
ZGsucHkKaW5kZXggMWQ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nMgYmFjayAiIiIKICAgICAgICAgZi5zZWVrKHN5c2RpcnNfb2ZmKQotICAgICAgICBm
LndyaXRlKHN5c2RpcnMpCisgICAgICAgIGYud3JpdGUoYnl0ZXMoc3lzZGlycywgJ2FzY2lpJykp
CiAgICAgICAgIGYuc2VlayhzeXNkaXJzbGVuX29mZikKLSAgICAgICAgZi53cml0ZShzeXNkaXJz
bGVuKQorICAgICAgICBmLndyaXRlKGJ5dGVzKHN5c2RpcnNsZW4sICdhc2NpaScpKQogCiAKICMg
TUFJTgpAQCAtMTk2LDcgKzE5Niw3IEBAIGZvciBlIGluIGV4ZWN1dGFibGVzX2xpc3Q6CiAKICAg
ICB0cnk6CiAgICAgICAgIGYgPSBvcGVuKGUsICJyK2IiKQotICAgIGV4Y2VwdCBJT0Vycm9yLCBp
b2V4OgorICAgIGV4Y2VwdCBJT0Vycm9yIGFzIGlvZXg6CiAgICAgICAgIGlmIGlvZXguZXJybm8g
PT0gZXJybm8uRVRYVEJTWToKICAgICAgICAgICAgIHByaW50KCJDb3VsZCBub3Qgb3BlbiAlcy4g
RmlsZSB1c2VkIGJ5IGFub3RoZXIgcHJvY2Vzcy5cblBsZWFzZSAiXAogICAgICAgICAgICAgICAg
ICAgIm1ha2Ugc3VyZSB5b3UgZXhpdCBhbGwgcHJvY2Vzc2VzIHRoYXQgbWlnaHQgdXNlIGFueSBT
REsgIlwK
</data>

          </attachment>
      

    </bug>

</bugzilla>