<?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>9212</bug_id>
          
          <creation_ts>2016-03-04 10:44:19 +0000</creation_ts>
          <short_desc>rework oe-core&apos;s handling of python and sysroots</short_desc>
          <delta_ts>2016-07-04 10:03:31 +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>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>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Kanavin">alex.kanavin</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59721</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-03-04 10:44:19 +0000</bug_when>
    <thetext>Current support for python and sysroots and target build utilizing native python to run scripts was written long time ago, isn&apos;t designed well and no one really understands it. It also contains incorrect code, such as:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-staging-area.patch#n15
(HOST_SYS does not necessarily map directly to sysroot name).

We need to re-do it so that it&apos;s clean, simple and as free of side effects as possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63031</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-16 14:28:24 +0000</bug_when>
    <thetext>I have fixed the HOST_SYS issue in 4977a0743ba439a46716c6ef10c5958d5a561115.

After looking at this a bit closer (as a part of moving recipes to use python 3 where possible), I still don&apos;t have a clear idea how the redesign could look like. There is a million ways that software determines what the &apos;system&apos; Python is, and there is no single way to take care of them all.

Also, determining the system directories through patching distutils to use STAGING_INCDIR/STAGING_LIBDIR when building for target is not a bad approach, and I don&apos;t know how to replace it with something better. One incremental improvement is no longer force recipes to export these variables - the python(3)native class should take care of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63251</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-22 12:10:47 +0000</bug_when>
    <thetext>Patch that moves staging_inc/libdir to python(3)native.bbclass submitted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63614</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-07-04 10:03:31 +0000</bug_when>
    <thetext>Patch merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>