summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/files/sitecustomize.py
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2019-12-23 16:21:48 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2019-12-24 09:16:06 -0500
commit7920e470c6cba499149fed40f8a017b6be9c162e (patch)
tree9c2f5e4807cf1f355d292f087f5d5a19d2a21500 /recipes-devtools/python/files/sitecustomize.py
parent823653623f42adf8f45dc36163430bdb5818ff1c (diff)
downloadmeta-selinux-7920e470c6cba499149fed40f8a017b6be9c162e.tar.gz
libselinux-python: fix race issue in parallel build
The install-pywarp target doesn't depend on swigify target because the selinux.py is not generated by swigify target but pywrap target. Here is the dependency chain: install-pywrap -> pywrap -> $(SWIGFILES) -> $(SWIGPYOUT) -> $(SWIGCOUT) -> selinux.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 selinux.py when do_install. So there will be a potential race issue in parallel build. The install-pywrap target is trying to install selinux.py when swigify target is generating the file. Then an empty selinux.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 'recipes-devtools/python/files/sitecustomize.py')
0 files changed, 0 insertions, 0 deletions