From 779444cda318b545564b6ed5ab62c469fa56bde65e9f0d92b2e66db40dfc9b58 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Thu, 18 Mar 2021 14:43:05 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=91 --- python-semanage.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-semanage.spec b/python-semanage.spec index 292bcc7..19c4a58 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -19,6 +19,9 @@ %define soversion 2 %define libname libsemanage%{soversion} +%define libsepol_ver 3.2 +%define libselinux_ver 3.2 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-semanage Version: 3.2 @@ -37,8 +40,8 @@ BuildRequires: audit-devel BuildRequires: bison BuildRequires: flex BuildRequires: libbz2-devel -BuildRequires: libselinux-devel -BuildRequires: libsepol-devel >= 3.2 +BuildRequires: libselinux-devel >= %{libselinux_ver} +BuildRequires: libsepol-devel >= %{libsepol_ver} BuildRequires: libustr-devel BuildRequires: python-rpm-macros BuildRequires: swig From 506203f4f2cafa7ea2e03cf10b2b9567544b8f8b216175ab7fe3597e95c3464e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 16 Aug 2021 13:20:13 +0000 Subject: [PATCH 2/2] Accepting request 912401 from home:favogt:branches:security:SELinux - Call "make -j8 pywrap" instead of "make -j8 all pywrap" to fix random build failures. The toplevel Makefile does not support concurrency, and it resulted in parallel "make all" and "make pywrap" which weren't aware of each other and stepped over the other's artifacts. OBS-URL: https://build.opensuse.org/request/show/912401 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=93 --- python-semanage.changes | 8 ++++++++ python-semanage.spec | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-semanage.changes b/python-semanage.changes index 47cb881..827a2e6 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 16 13:13:41 UTC 2021 - Fabian Vogt + +- Call "make -j8 pywrap" instead of "make -j8 all pywrap" to fix random + build failures. The toplevel Makefile does not support concurrency, + and it resulted in parallel "make all" and "make pywrap" which weren't + aware of each other and stepped over the other's artifacts. + ------------------------------------------------------------------- Thu Mar 18 08:31:30 UTC 2021 - Johannes Segitz diff --git a/python-semanage.spec b/python-semanage.spec index 19c4a58..8c38ae7 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -67,7 +67,7 @@ grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" LIBDIR="%{_libdir}" \ LIBEXECDIR="%{_libexecdir}" \ SHLIBDIR="%{_lib}" \ - all pywrap + pywrap } %install