path: root/classes
diff options
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-31 21:42:04 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-31 22:14:18 +0000
commit1f4d1781c9a521f7d0a9b356e2aa9dab4f8b5237 (patch)
treecafd7df9462e33a040aa05393cc95cb0af23f9c8 /classes
parent2b74b14cc9deb274153063ee2f157fe0d858e563 (diff)
classes/opie: fix ownership of files installed in do_opie_install
We're adding our own install task here, this needs to be marked as fakeroot so that it runs under pseudo and thus files are installed as root. In the process I discovered that a function exported with EXPORT_FUNCTIONS marked as fakeroot doesn't actually end up as a fakeroot task - you have to force it using d.setVarFlag() from anonymous python; this is probably a bug in BitBake. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'classes')
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/opie.bbclass b/classes/opie.bbclass
index d48acb2..21dc581 100644
--- a/classes/opie.bbclass
+++ b/classes/opie.bbclass
@@ -34,7 +34,7 @@ do_configure_prepend() {
# qmake should care about all the details then. qmake can do that, i know it :)
-python opie_do_opie_install() {
+fakeroot python opie_do_opie_install() {
import os, shutil
section = bb.data.getVar( "SECTION", d ).split( '/' )[1] or "Applications"
section = section.title()
@@ -105,3 +105,8 @@ python opie_do_opie_install() {
EXPORT_FUNCTIONS do_opie_install
addtask opie_install after do_install before do_populate_sysroot do_package
+python() {
+ # FIXME apparently it's not enough to set fakeroot on the exported function
+ d.setVarFlag('do_opie_install', 'fakeroot', '1')