diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-12-23 16:21:48 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2019-12-24 09:16:06 -0500 |
commit | 7920e470c6cba499149fed40f8a017b6be9c162e (patch) | |
tree | 9c2f5e4807cf1f355d292f087f5d5a19d2a21500 | |
parent | 823653623f42adf8f45dc36163430bdb5818ff1c (diff) | |
download | meta-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>
-rw-r--r-- | recipes-security/selinux/libselinux-python.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-security/selinux/libselinux-python.inc b/recipes-security/selinux/libselinux-python.inc index 62354b2..24407e8 100644 --- a/recipes-security/selinux/libselinux-python.inc +++ b/recipes-security/selinux/libselinux-python.inc | |||
@@ -33,7 +33,7 @@ do_compile() { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | do_install() { | 35 | do_install() { |
36 | oe_runmake install-pywrap swigify \ | 36 | oe_runmake install-pywrap \ |
37 | PYCEXT='.so' \ | 37 | PYCEXT='.so' \ |
38 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 38 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ |
39 | PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages' | 39 | PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages' |