diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-12-23 16:21:49 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2019-12-24 09:16:06 -0500 |
commit | 26169b168f64cb2d88b3a24b55c7f0f937d5add7 (patch) | |
tree | 5c7b6c9a4a275b33f56267805926c380949e1fce /dynamic-layers/python2-layer/recipes-devtools/python/files/sitecustomize.py | |
parent | 7920e470c6cba499149fed40f8a017b6be9c162e (diff) | |
download | meta-selinux-26169b168f64cb2d88b3a24b55c7f0f937d5add7.tar.gz |
libsemanage: fix race issue in parallel build
The install-pywarp target doesn't depend on swigify target because the
semanage.py is not generated by swigify target but pywrap target.
Here is the dependency chain:
install-pywrap -> pywrap -> $(SWIGSO) -> $(SWIGLOBJ) -> $(SWIGCOUT)
-> semanage.py
But in the recipe, the swigify target is added explicitly in do_install:
do_install_append() {
oe_runmake install-pywrap swigify \
[snip]
}
This target will regenerate the semanage.py when do_install. So there
will be a potential race issue in parallel build. The install-pywrap
target is trying to install semanage.py when swigify target is
generating the file. Then an empty semanage.py will be installed. Remove
the target swigify to fix this issue.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'dynamic-layers/python2-layer/recipes-devtools/python/files/sitecustomize.py')
0 files changed, 0 insertions, 0 deletions