<?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>12889</bug_id>
          
          <creation_ts>2018-08-14 12:18:56 +0000</creation_ts>
          <short_desc>oe-run-native should automatically pick up bindir/*-native/ directories</short_desc>
          <delta_ts>2018-08-23 10:12:53 +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>Scripts and Tools</component>
          <version>2.6</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.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Jagadeesh Krishnanjanappa">jkrishnanjanappa</assigned_to>
          <cc>akuster</cc>
    
    <cc>jkrishnanjanappa</cc>
    
    <cc>ross.burton</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>81345</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-14 12:18:56 +0000</bug_when>
    <thetext>If oe-run-native is used to run something that depends on python3-native then the host python3 is still used as the binary is usr/bin/python3-native/python3, which isn&apos;t in $PATH.

oe-run-native should search usr/bin for directories called *-native and add those to PATH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81381</commentid>
    <comment_count>1</comment_count>
    <who name="Jagadeesh Krishnanjanappa">jkrishnanjanappa</who>
    <bug_when>2018-08-16 11:06:30 +0000</bug_when>
    <thetext>One of the ways to solve it is via find,

diff --git a/scripts/oe-run-native b/scripts/oe-run-native
index bbdd1d8c1a..1a04613d1d 100755
--- a/scripts/oe-run-native
+++ b/scripts/oe-run-native
@@ -55,7 +55,7 @@ fi
 OLD_PATH=$PATH
 
 # look for a tool only in native sysroot
-PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$OECORE_NATIVE_SYSROOT/bin:$OECORE_NATIVE_SYSROOT/usr/sbin:$OECORE_NATIVE_SYSROOT/sbin
+PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$OECORE_NATIVE_SYSROOT/bin:$OECORE_NATIVE_SYSROOT/usr/sbin:$OECORE_NATIVE_SYSROOT/sbin:$(find $OECORE_NATIVE_SYSROOT/usr/bin/ -maxdepth 1 -type d -printf &quot;:%p&quot;)
 tool_find=`/usr/bin/which $tool 2&gt;/dev/null`
 
 if [ -n &quot;$tool_find&quot; ] ; then
--

Regards,
Jagadeesh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81385</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-16 14:45:41 +0000</bug_when>
    <thetext>Jagadeesh,

Can you work in this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81395</commentid>
    <comment_count>3</comment_count>
    <who name="Jagadeesh Krishnanjanappa">jkrishnanjanappa</who>
    <bug_when>2018-08-16 17:47:36 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Jagadeesh,
&gt; 
&gt; Can you work in this?

Sure, I have submitted a patch to solve the issue at http://lists.openembedded.org/pipermail/openembedded-core/2018-August/154241.html

Regards,
Jagadeesh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81417</commentid>
    <comment_count>4</comment_count>
    <who name="Jagadeesh Krishnanjanappa">jkrishnanjanappa</who>
    <bug_when>2018-08-23 10:12:53 +0000</bug_when>
    <thetext>Should be resolved with 

http://cgit.openembedded.org/openembedded-core/commit/?id=a3e9b2224b31cfd836519d0b609f8064adb67cca

Regards,
Jagadeesh</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>