From 8095c985a2924b33c3cabcb090c47b25496231d4a196a3f0ac77c0cacf8f4a92 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Mar 2023 13:25:14 +0000 Subject: [PATCH 1/3] Accepting request 1073971 from home:marxin:branches:security:SELinux - Enable LTO now (boo#1138812). - Enable LTO now (boo#1138812). OBS-URL: https://build.opensuse.org/request/show/1073971 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=100 --- libsemanage.changes | 5 +++++ libsemanage.spec | 1 - python-semanage.changes | 5 +++++ python-semanage.spec | 1 - 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libsemanage.changes b/libsemanage.changes index 2c29e03..5ab5c01 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 13:06:51 UTC 2023 - Martin Liška + +- Enable LTO now (boo#1138812). + ------------------------------------------------------------------- Fri Feb 24 07:48:05 UTC 2023 - Johannes Segitz diff --git a/libsemanage.spec b/libsemanage.spec index 166d49a..93b7061 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -111,7 +111,6 @@ stores must be migrated before any commands that modify or use the store grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" %build -%define _lto_cflags %{nil} %make_build clean %make_build CFLAGS="%{optflags} -fno-semantic-interposition" CC="gcc" %make_build CFLAGS="%{optflags} -fno-semantic-interposition" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_lib}" CC="gcc" all diff --git a/python-semanage.changes b/python-semanage.changes index 6f5f308..bfae58c 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 13:06:51 UTC 2023 - Martin Liška + +- Enable LTO now (boo#1138812). + ------------------------------------------------------------------- Fri Feb 24 07:48:05 UTC 2023 - Johannes Segitz diff --git a/python-semanage.spec b/python-semanage.spec index 7948def..193c3aa 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -60,7 +60,6 @@ SELinux policy management applications. grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" %build -%define _lto_cflags %{nil} %make_build clean %{python_expand # loop over possible pythons %make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition" swigify From 7804debdc062a6903dc8ace7fda969c6c0b588bd28c8665c3b142e041369dc44 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Mar 2023 14:08:46 +0000 Subject: [PATCH 2/3] Accepting request 1074196 from home:jsegitz:branches:security:SELinux - Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because of LTO - Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because of LTO OBS-URL: https://build.opensuse.org/request/show/1074196 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=101 --- libsemanage.changes | 6 ++++++ libsemanage.spec | 4 ++-- python-semanage.changes | 6 ++++++ python-semanage.spec | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/libsemanage.changes b/libsemanage.changes index 5ab5c01..642f81d 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 13:54:12 UTC 2023 - Johannes Segitz + +- Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because + of LTO + ------------------------------------------------------------------- Thu Mar 23 13:06:51 UTC 2023 - Martin Liška diff --git a/libsemanage.spec b/libsemanage.spec index 93b7061..bc69934 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -112,8 +112,8 @@ grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" %build %make_build clean -%make_build CFLAGS="%{optflags} -fno-semantic-interposition" CC="gcc" -%make_build CFLAGS="%{optflags} -fno-semantic-interposition" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_lib}" CC="gcc" all +%make_build CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" CC="gcc" +%make_build CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_lib}" CC="gcc" all %install mkdir -p %{buildroot}/%{_lib} diff --git a/python-semanage.changes b/python-semanage.changes index bfae58c..4ba3a1c 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 13:54:12 UTC 2023 - Johannes Segitz + +- Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because + of LTO + ------------------------------------------------------------------- Thu Mar 23 13:06:51 UTC 2023 - Martin Liška diff --git a/python-semanage.spec b/python-semanage.spec index 193c3aa..561996c 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -62,8 +62,8 @@ grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" %build %make_build clean %{python_expand # loop over possible pythons -%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition" swigify -%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition" \ +%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" swigify +%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" \ LIBDIR="%{_libdir}" \ LIBEXECDIR="%{_libexecdir}" \ SHLIBDIR="%{_lib}" \ From a1df0943f7fdc5c553381947422696cf44928ac6b5b34e7b241e501eb5dfdf19 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 5 May 2023 07:30:02 +0000 Subject: [PATCH 3/3] Accepting request 1084739 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/1084739 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=102 --- _multibuild | 4 ++++ libsemanage.changes | 7 +++++++ python-semanage.changes | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..505095a --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + python-semanage + + diff --git a/libsemanage.changes b/libsemanage.changes index 642f81d..852d4d2 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 4 14:20:40 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:54:12 UTC 2023 - Johannes Segitz diff --git a/python-semanage.changes b/python-semanage.changes index 4ba3a1c..87f4f46 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 4 14:20:40 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:54:12 UTC 2023 - Johannes Segitz