]> code.ossystems Code Review - openembedded-core.git/commit
sstate: Improve handling of useradd dependencies
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Jan 2016 23:30:30 +0000 (23:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Jan 2016 18:14:56 +0000 (18:14 +0000)
commit21368b4a7934b3a199e61c1072416fd5c091e5ff
tree33028247781e98ab60cc776064cb474ac9128263
parent9b0dd8e1c365d54300c15fdc06dd031fd0366575
sstate: Improve handling of useradd dependencies

useradd has sstate [depends] for both do_package and do_populate_sysroot
yet the dependency validation code only covers do_package.

Add coverage of populate_sysroot, else the order inversion that [depends]
creates means unexpected installation of users of useradd.bbclass (e.g.
avahi do_populate_sysroot) in cases where it shouldn't be (e.g.
libnss-mdns -c packagedata).

The code needs to move above the other populate_sysroot intercept code
since there are specific cases we need to cover before that code.

The result of this change is more optimal installation of sstate objects
in common usage scenarios.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sstate.bbclass