Bug 9175

Summary: Remove os.chdir from fetch/unpack logic
Product: [Build System, Metadata & Runtime] BitBake Reporter: Ross Burton <ross.burton>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2016-02-26 11:11:49 UTC
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.
Comment 1 Richard Purdie 2016-09-16 16:56:32 UTC
This was cleaned up as part of http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ab09541d5517da9b1a23923ea8f5c26ddf745084 and some of the surrounding patches.