summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2019-12-23 16:21:49 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2019-12-24 09:16:06 -0500
commit26169b168f64cb2d88b3a24b55c7f0f937d5add7 (patch)
tree5c7b6c9a4a275b33f56267805926c380949e1fce
parent7920e470c6cba499149fed40f8a017b6be9c162e (diff)
downloadmeta-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>
-rw-r--r--recipes-security/selinux/libsemanage.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-security/selinux/libsemanage.inc b/recipes-security/selinux/libsemanage.inc
index 9dc1095..81a3eda 100644
--- a/recipes-security/selinux/libsemanage.inc
+++ b/recipes-security/selinux/libsemanage.inc
@@ -32,7 +32,7 @@ do_compile_append() {
32} 32}
33 33
34do_install_append() { 34do_install_append() {
35 oe_runmake install-pywrap swigify \ 35 oe_runmake install-pywrap \
36 PYCEXT='.so' \ 36 PYCEXT='.so' \
37 PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ 37 PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \
38 PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages' 38 PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages'