Bug 1530

Summary: runqemu uses TMPDIR which is set to /tmp on OpenSUSE
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Paul Eggleton <bluelightning>
Component: meta-yoctoAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: Fix now in master
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Paul Eggleton 2011-09-27 05:32:51 UTC
If you use the default configuration (where TMPDIR setting is commented out in conf/local.conf), the runqemu script will use TMPDIR from the environment if it is set; however on OpenSUSE (version 11.3 at least) this variable is set to "/tmp" which of course is not correct for the purposes of this script, resulting in it being unable to find images. It also passes this incorrect path to the runqemu-gen-tapdevs script which then cannot find the tunctl executable.

The workaround is of course to "unset TMPDIR" prior to running runqemu, but it seems to me it ought to be able to handle this automatically.
Comment 1 Richard Purdie 2011-09-27 06:02:33 UTC
The qemu scripts need some way to specify tmpdir so the automated image testing works. If we can pass it in through some other means (different variable?) then we can ignore TMPDIR from the environment,
Comment 2 Paul Eggleton 2011-09-27 09:46:04 UTC
FYI, we may not have seen this earlier because the TMPDIR variable gets set on OpenSUSE within one of the default Xsession scripts; thus it would only be an issue when running a build within a terminal running inside X, and not over ssh or directly on the console.
Comment 3 Paul Eggleton 2011-09-29 07:30:09 UTC
Fix merged into master with commit 7d1e1018f4ae0a0bd25aef1987730deb170c7f03.