<?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>12125</bug_id>
          
          <creation_ts>2017-09-25 14:46:57 +0000</creation_ts>
          <short_desc>runqemu-gen-tapdevs not working when using directly from build-dir</short_desc>
          <delta_ts>2018-01-29 20:43:34 +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.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Backport 2.3.3?</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Stephano Cetola">stephano</assigned_to>
          <cc>akuster</cc>
    
    <cc>brian.avery</cc>
    
    <cc>randy.macleod</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>77099</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-09-25 14:46:57 +0000</bug_when>
    <thetext>script runqemu-gen-tapdevs is not working when is used from build directory.

Note: Is working correctly when used from scripts directory 

commit b32174e58e89119e3ca2315030629a6580ccbd52


STEPS TO REPRODUCE: 

1. clone poky 
2. $source oe-init-build-env 
3. Under build directory run
    $  sudo ./../scripts/runqemu-gen-tapdevs 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin

EXPECTED RESULT:

script works correctly and TAP devices are generated 

ACTUAL RESULT:

sudo: runqemu-gen-tapdevs: command not found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77198</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-09-28 14:28:50 +0000</bug_when>
    <thetext>Correction to step 3 

3. Under build directory run
    $  sudo runqemu-gen-tapdevs 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin


Note: below command works correctly 

sudo ./../scripts/runqemu-gen-tapdevs 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77209</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-09-28 20:12:35 +0000</bug_when>
    <thetext>This is because the PATH on most modern systems reset for security reasons when you sudo. So, we probably should close this bug and open another bug for documentation to make explicit that you should run it as sudo &lt;absolute path&gt; or &lt;relative path&gt; but should NOT rely on the PATH correctly resolving.

We may also want to add in the documentation bug that for this tool to work, the user needs to have built qemu-helper-native or else the tunctl command (which is what this uses) will not be available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79266</commentid>
    <comment_count>3</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2018-01-29 20:43:34 +0000</bug_when>
    <thetext>Replaced by Bug 12517.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>