* [PATCH 0/1] package_manager.py: specify tmpdir for opkg
@ 2016-06-15 9:40 Chen Qi
2016-06-15 9:40 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2016-06-15 9:40 UTC (permalink / raw)
To: openembedded-core
The following changes since commit c57ab66984bff1ea5596ffe592a0ca1e9ba82ab0:
gzip: upgrade to 1.8 (2016-06-14 13:01:58 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/opkg-tmpdir
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/opkg-tmpdir
Chen Qi (1):
package_manager.py: specify tmpdir for opkg
meta/lib/oe/package_manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] package_manager.py: specify tmpdir for opkg
2016-06-15 9:40 [PATCH 0/1] package_manager.py: specify tmpdir for opkg Chen Qi
@ 2016-06-15 9:40 ` Chen Qi
0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2016-06-15 9:40 UTC (permalink / raw)
To: openembedded-core
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 <Qi.Chen@windriver.com>
---
meta/lib/oe/package_manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 4aaff8c..59d34e2 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1567,7 +1567,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)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-15 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-15 9:40 [PATCH 0/1] package_manager.py: specify tmpdir for opkg Chen Qi
2016-06-15 9:40 ` [PATCH 1/1] " Chen Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox