aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-16 16:59:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-18 10:46:27 +0000
commitb2ef543284c8c8d0d3badb2e1bcadad1106982d2 (patch)
tree80fb2e450680c57c57af7c94525e98abf20d89a8 /meta/classes
parent5b9877aa55e28ba06410592350e7e5106ebdf6cb (diff)
downloadopenembedded-core-contrib-b2ef543284c8c8d0d3badb2e1bcadad1106982d2.tar.gz
package_rpm: Set _tmppath to avoid races over tmp files
Occasionally we keep seeing "unable to open temp file" messages during do_package_write_rpm tasks. This appears to happen when multiple processes are writing rpm files and is likely due to using the shared system temp directory. This patch changes the tmp path to the package work directory meaning conflicts should become a non-issue. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 2ace0537ac..75e4f2d196 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -955,6 +955,7 @@ python do_package_rpm () {
cmd = cmd + " --define '_unpackaged_files_terminate_build 0'"
cmd = cmd + " --define 'debug_package %{nil}'"
cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'"
+ cmd = cmd + " --define '_tmppath " + workdir + "'"
cmd = cmd + " -bb " + outspecfile
# Build the rpm package!