summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2016-06-15 17:40:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-23 14:26:14 +0100
commitc2acd4e27d69b78af1af48825622877c9bebc392 (patch)
tree9f539f2a7c3fe12fd4c5efa7ffa1c805eca1f0ba /meta
parent675843d540f30058269789b2c6808a206ab04a04 (diff)
downloadpoky-c2acd4e27d69b78af1af48825622877c9bebc392.tar.gz
package_manager.py: specify tmpdir for opkg
Specify tmpdir for opkg via '-t' option so that opkg does not use the default 'TMPDIR' which usually is '/tmp' on build host. This would solve race problems like below. sh: /tmp/opkg-rOG6Tl/opkg-intercept-iPoEp5/depmod: Permission denied (From OE-Core rev: 5665e284b7e7ee071201664dc50a3412bd4ac8cd) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index bc22c5fc75..717246d383 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1563,7 +1563,7 @@ class OpkgPM(OpkgDpkgPM):
1563 self.deploy_dir = self.d.getVar("DEPLOY_DIR_IPK", True) 1563 self.deploy_dir = self.d.getVar("DEPLOY_DIR_IPK", True)
1564 self.deploy_lock_file = os.path.join(self.deploy_dir, "deploy.lock") 1564 self.deploy_lock_file = os.path.join(self.deploy_dir, "deploy.lock")
1565 self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg") 1565 self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg")
1566 self.opkg_args = "--volatile-cache -f %s -o %s " % (self.config_file, target_rootfs) 1566 self.opkg_args = "--volatile-cache -f %s -t %s -o %s " % (self.config_file, self.d.expand('${T}/ipktemp/') ,target_rootfs)
1567 self.opkg_args += self.d.getVar("OPKG_ARGS", True) 1567 self.opkg_args += self.d.getVar("OPKG_ARGS", True)
1568 1568
1569 opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True) 1569 opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True)