From: Chen Qi Date: Wed, 15 Jun 2016 09:40:56 +0000 (+0800) Subject: package_manager.py: specify tmpdir for opkg X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~25284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5665e284b7e7ee071201664dc50a3412bd4ac8cd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Chen Qi Signed-off-by: Ross Burton --- diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index bc22c5fc75e..717246d3831 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -1563,7 +1563,7 @@ class OpkgPM(OpkgDpkgPM): self.deploy_dir = self.d.getVar("DEPLOY_DIR_IPK", True) self.deploy_lock_file = os.path.join(self.deploy_dir, "deploy.lock") self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg") - self.opkg_args = "--volatile-cache -f %s -o %s " % (self.config_file, target_rootfs) + self.opkg_args = "--volatile-cache -f %s -t %s -o %s " % (self.config_file, self.d.expand('${T}/ipktemp/') ,target_rootfs) self.opkg_args += self.d.getVar("OPKG_ARGS", True) opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True)