From 90defc5b222d3df0783b04bff32fc4bf5d76fc49a340928dda89e6b6e5f78bd9 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Mar 2023 13:25:03 +0000 Subject: [PATCH 1/4] Accepting request 1073997 from home:marxin:branches:security:SELinux - Enable LTO as it works fine now. - Enable LTO as it works fine now. OBS-URL: https://build.opensuse.org/request/show/1073997 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=149 --- libselinux-bindings.changes | 5 +++++ libselinux-bindings.spec | 1 - libselinux.changes | 5 +++++ libselinux.spec | 1 - 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index dab38d2..e24bda5 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 15:39:15 UTC 2023 - Martin Liška + +- Enable LTO as it works fine now. + ------------------------------------------------------------------- Fri Feb 24 07:42:25 UTC 2023 - Johannes Segitz diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index 0553d7f..af6cfac 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -85,7 +85,6 @@ language. %autopatch -p1 %build -%define _lto_cflags %{nil} make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" swigify V=1 USE_PCRE2=y make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" pywrap V=1 USE_PCRE2=y make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" rubywrap V=1 USE_PCRE2=y diff --git a/libselinux.changes b/libselinux.changes index 40a5a0c..aefda71 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 15:39:15 UTC 2023 - Martin Liška + +- Enable LTO as it works fine now. + ------------------------------------------------------------------- Fri Feb 24 07:42:25 UTC 2023 - Johannes Segitz diff --git a/libselinux.spec b/libselinux.spec index 35713cf..7f50fbe 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -103,7 +103,6 @@ necessary to develop your own software using libselinux. %patch5 -p1 %build -%define _lto_cflags %{nil} make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition" USE_PCRE2=y %install From 3db7e9955018220feaa569614d73832d0699a3ee0619fb6ebf5c9de04fb59a78 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Mar 2023 14:08:42 +0000 Subject: [PATCH 2/4] Accepting request 1074195 from home:jsegitz:branches:security:SELinux - Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because of LTO OBS-URL: https://build.opensuse.org/request/show/1074195 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=150 --- libselinux.changes | 6 ++++++ libselinux.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libselinux.changes b/libselinux.changes index aefda71..960e7bc 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 13:51:52 UTC 2023 - Johannes Segitz + +- Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because + of LTO + ------------------------------------------------------------------- Thu Mar 23 15:39:15 UTC 2023 - Martin Liška diff --git a/libselinux.spec b/libselinux.spec index 7f50fbe..c3eca4d 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -103,7 +103,7 @@ necessary to develop your own software using libselinux. %patch5 -p1 %build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition" USE_PCRE2=y +make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" USE_PCRE2=y %install mkdir -p %{buildroot}/%{_lib} From 71d3be428862b63f5692998810a1b0d53ef942a62a1190cb1af57c5db6fa1c47 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 5 May 2023 07:29:50 +0000 Subject: [PATCH 3/4] Accepting request 1084729 from home:fcrozat:branches:security:SELinux - Add _multibuild to define additional spec files as additional flavors. Eliminates the need for source package links in OBS. - Add _multibuild to define additional spec files as additional flavors. Eliminates the need for source package links in OBS. OBS-URL: https://build.opensuse.org/request/show/1084729 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=151 --- _multibuild | 4 ++++ libselinux-bindings.changes | 8 ++++++++ libselinux.changes | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..81625e2 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + libselinux-bindings + + diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index e24bda5..d394b63 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu May 4 14:04:04 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + + ------------------------------------------------------------------- Thu Mar 23 15:39:15 UTC 2023 - Martin Liška diff --git a/libselinux.changes b/libselinux.changes index 960e7bc..6d343d2 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 4 14:04:04 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + ------------------------------------------------------------------- Fri Mar 24 13:51:52 UTC 2023 - Johannes Segitz From 781fce764f50d88259ca10e897d440cfd93e85c6d3ea98625316d276536edd8e Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 5 May 2023 13:50:20 +0000 Subject: [PATCH 4/4] Accepting request 1085106 from home:dgarcia:branches:security:SELinux - Add python-wheel build dependency to build correctly with latest python-pip version. Look at staging:H to see the actual problem https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:H/libselinux-bindings/standard/x86_64 OBS-URL: https://build.opensuse.org/request/show/1085106 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=152 --- libselinux-bindings.changes | 6 ++++++ libselinux-bindings.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index d394b63..52b6d28 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 5 12:35:31 UTC 2023 - Daniel Garcia + +- Add python-wheel build dependency to build correctly with latest + python-pip version. + ------------------------------------------------------------------- Thu May 4 14:04:04 UTC 2023 - Frederic Crozat diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index af6cfac..eb12ea1 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -38,6 +38,7 @@ Patch5: python3.8-compat.patch Patch6: swig4_moduleimport.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: libsepol-devel-static >= %{libsepol_ver} BuildRequires: python-rpm-macros BuildRequires: python3-devel