diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-10-19 09:37:12 +0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2018-01-08 18:08:31 +0800 |
commit | 940149e1fa588e8b33681d9961b71dc2e62e1d90 (patch) | |
tree | 6883f96557f2287f1eb6a28b23732989dcbf348e /meta/recipes-connectivity/iw | |
parent | ae204d7b4238623c8e5718c58cdd77746f724ad7 (diff) | |
download | openembedded-core-contrib-940149e1fa588e8b33681d9961b71dc2e62e1d90.tar.gz |
sstate.bbclass: sstate_hardcode_path(): fix for multilib
It only substituted staging_target for target recipe which didn't work
for multilib, for example, postinst-useradd-lib32-polkit:
* No multilib:
PATH=/path/to/tmp-glibc/work/core2-64-wrs-linux/polkit/0.113-r0/recipe-sysroot-native/bin
staging_target=/path/to/tmp-glibc/work/core2-64-wrs-linux/polkit/0.113-r0/recipe-sysroot
The PATH would be substituted to:
FIXMESTAGINGDIRTARGET-native/bin
Not the funny "-native/bin", this works well.
* When multilib:
PATH=/path/to/tmp-glibc/work/core2-32-wrsmllib32-linux/lib32-polkit/0.113-r0/recipe-sysroot-native/bin
staging_target=/path/to/tmp-glibc/work/core2-32-wrsmllib32-linux/lib32-polkit/0.113-r0/lib32-recipe-sysroot
Now staging_target endswith "/lib32-recipe-sysroot", so it can't
replace '/recipe-sysroot-native' in PATH , so PATH can't be fixed, and
there would be build errors when building multilib + rm_work, for
example:
chown: invalid user: ‘polkitd:root’
Substitute staging_host for target recipe can fix the problem, now all
of native, cross and target need substitute staging_host, so we can
simply the code a little.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/recipes-connectivity/iw')
0 files changed, 0 insertions, 0 deletions