sec-policy/selinux-base: force sequential build in src_configure

The build has been failing occasionally, due to some kind of race condition.
The last lines of log output look like this:

   Updating policy/booleans.conf and policy/modules.conf
   python3 -t -t -E -W error support/sedoctool.py -b policy/booleans.conf -m policy/modules.conf -x doc/policy.xml
   support/sedoctool.py exiting for: Error while parsing xml
   make: *** [Makefile:415: conf.intermediate] Error 1
    * ERROR: sec-policy/selinux-base-2.20200818-r2::coreos failed (configure phase):
    *   emake failed

Try to fix this by forcing a sequential build.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2021-10-26 12:06:23 +00:00
parent 739e98dc59
commit 986a4f6a2a

View File

@ -81,7 +81,11 @@ src_configure() {
# Prepare initial configuration
cd "${S}/refpolicy" || die
emake conf
# Parallel make fails with:
# python3 -t -t -E -W error support/sedoctool.py -b policy/booleans.conf -m policy/modules.conf -x doc/policy.xml
# support/sedoctool.py exiting for: Error while parsing xml
# make: *** [Makefile:415: conf.intermediate] Error 1
emake -j1 conf
# Setup the policies based on the types delivered by the end user.
# These types can be "targeted", "strict", "mcs" and "mls".