<?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>9175</bug_id>
          
          <creation_ts>2016-02-26 11:11:49 +0000</creation_ts>
          <short_desc>Remove os.chdir from fetch/unpack logic</short_desc>
          <delta_ts>2016-09-16 16:56:32 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>59491</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-26 11:11:49 +0000</bug_when>
    <thetext>Using chdir in the fetcher is problematic, for example uninative uses Fetch.download() directly and has to save/restore cwd.

We should audit the fetch and unpack code to ensure that absolute paths are used and there are no assumptions about cwd.

To ensure that tarballs have the right paths in -C can be passed instead of using chdir.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66258</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-16 16:56:32 +0000</bug_when>
    <thetext>This was cleaned up as part of http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ab09541d5517da9b1a23923ea8f5c26ddf745084 and some of the surrounding patches.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>