From 986a4f6a2a68f20fe5bbd387a9a91590a6b22d5f Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Tue, 26 Oct 2021 12:06:23 +0000 Subject: [PATCH] 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 --- .../selinux-base/selinux-base-2.20200818-r2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild b/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild index 6546c608fb..c660017ef1 100644 --- a/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild @@ -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".