summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 10:11:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 17:52:08 +0100
commit7bf5c38e0f8bed9295f46773ade5336ec41044f6 (patch)
tree76a1a39c0e22732cc2e2c6fc62061195f300c9cf
parentbe78283e6cd7bea2eb1a5c5b797f1a6315468da5 (diff)
downloadpoky-7bf5c38e0f8bed9295f46773ade5336ec41044f6.tar.gz
base/useradd/sstate: Ensure do_package setscene has correct fakeroot dependencies
The do_package_setscene task needs to depend on fakeroot in order to correctly install its files. We can whitelist the dependency in the sstate handling code for some performance improvements since we only need this if we're installing the package from sstate. Also use an append operator in base.bbclass for clarity. (From OE-Core rev: 0810ea2a72bdea67a3d8002c4e12fb20f45cf1d5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/base.bbclass1
-rw-r--r--meta/classes/sstate.bbclass2
-rw-r--r--meta/classes/useradd.bbclass2
3 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index b1642a209f..8af104f765 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -501,6 +501,7 @@ python () {
501 d.setVarFlag('do_package', 'fakeroot', 1) 501 d.setVarFlag('do_package', 'fakeroot', 1)
502 d.setVarFlag('do_package', 'umask', 022) 502 d.setVarFlag('do_package', 'umask', 022)
503 d.setVarFlag('do_package_setscene', 'fakeroot', 1) 503 d.setVarFlag('do_package_setscene', 'fakeroot', 1)
504 d.appendVarFlag('do_package_setscene', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
504 d.setVarFlag('do_devshell', 'fakeroot', 1) 505 d.setVarFlag('do_devshell', 'fakeroot', 1)
505 d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') 506 d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
506 source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', 0) 507 source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', 0)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 950be5586d..e74c642aee 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -711,7 +711,7 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
711 711
712 # This is due to the [depends] in useradd.bbclass complicating matters 712 # This is due to the [depends] in useradd.bbclass complicating matters
713 # The logic *is* reversed here due to the way hard setscene dependencies are injected 713 # The logic *is* reversed here due to the way hard setscene dependencies are injected
714 if taskdependees[task][1] == 'do_package' and taskdependees[dep][0].endswith(('shadow-native', 'shadow-sysroot', 'base-passwd')) and taskdependees[dep][1] == 'do_populate_sysroot': 714 if taskdependees[task][1] == 'do_package' and taskdependees[dep][0].endswith(('shadow-native', 'shadow-sysroot', 'base-passwd', 'pseudo-native')) and taskdependees[dep][1] == 'do_populate_sysroot':
715 continue 715 continue
716 716
717 # Safe fallthrough default 717 # Safe fallthrough default
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index fd610197c8..e50c889da8 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -150,7 +150,7 @@ USERADDSETSCENEDEPS = "${MLPREFIX}base-passwd:do_populate_sysroot_setscene shado
150USERADDSETSCENEDEPS_virtclass-cross = "" 150USERADDSETSCENEDEPS_virtclass-cross = ""
151USERADDSETSCENEDEPS_class-native = "" 151USERADDSETSCENEDEPS_class-native = ""
152USERADDSETSCENEDEPS_class-nativesdk = "" 152USERADDSETSCENEDEPS_class-nativesdk = ""
153do_package_setscene[depends] = "${USERADDSETSCENEDEPS}" 153do_package_setscene[depends] += "${USERADDSETSCENEDEPS}"
154 154
155# Recipe parse-time sanity checks 155# Recipe parse-time sanity checks
156def update_useradd_after_parse(d): 156def update_useradd_after_parse(d):