summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-16 16:59:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:43:47 +0000
commitf99f36f637a5e20cd4f26b173f8a78d159716e24 (patch)
treeac79e9f3398017fc848a5f3899ecaf71af0fb277
parent7705d9a8cca613eb7d168ba78619456bc89866f2 (diff)
downloadpoky-f99f36f637a5e20cd4f26b173f8a78d159716e24.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. (From OE-Core rev: b2ef543284c8c8d0d3badb2e1bcadad1106982d2) (From OE-Core rev: 018442ed2cd251f85212dfa1d03c0b24a0750bfa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 e4e80984fc..54d6c613c8 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -955,6 +955,7 @@ python do_package_rpm () {
955 cmd = cmd + " --define '_unpackaged_files_terminate_build 0'" 955 cmd = cmd + " --define '_unpackaged_files_terminate_build 0'"
956 cmd = cmd + " --define 'debug_package %{nil}'" 956 cmd = cmd + " --define 'debug_package %{nil}'"
957 cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'" 957 cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'"
958 cmd = cmd + " --define '_tmppath " + workdir + "'"
958 cmd = cmd + " -bb " + outspecfile 959 cmd = cmd + " -bb " + outspecfile
959 960
960 # Build the rpm package! 961 # Build the rpm package!