This means that USE=static-libs doesn't produce a "broken" library when built w/ LTO.
Bug: https://bugs.gentoo.org/818097 Bug: https://bugs.gentoo.org/889004 Bug: https://bugs.gentoo.org/927994 Bug: https://bugs.gentoo.org/939515 Signed-off-by: Sam James <s...@gentoo.org> --- .../sysprof-capture/sysprof-capture-3.48.0.ebuild | 14 ++++++++++++-- .../sysprof-capture/sysprof-capture-46.0.ebuild | 12 +++++++++++- .../sysprof-capture/sysprof-capture-47.2.ebuild | 12 +++++++++++- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/dev-util/sysprof-capture/sysprof-capture-3.48.0.ebuild b/dev-util/sysprof-capture/sysprof-capture-3.48.0.ebuild index 0502a2eca20da..095cff44673d1 100644 --- a/dev-util/sysprof-capture/sysprof-capture-3.48.0.ebuild +++ b/dev-util/sysprof-capture/sysprof-capture-3.48.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 GNOME_ORG_MODULE="sysprof" -inherit gnome.org meson-multilib systemd +inherit dot-a gnome.org meson-multilib systemd DESCRIPTION="Static library for sysprof capture data generation" HOMEPAGE="http://sysprof.com/" @@ -21,6 +21,11 @@ BDEPEND=" virtual/pkgconfig " +src_configure() { + lto-guarantee-fat + meson-multilib_src_configure +} + multilib_src_configure() { local emesonargs=( -Dgtk=false @@ -38,3 +43,8 @@ multilib_src_configure() { ) meson_src_configure } + +multilib_src_install_all() { + einstalldocs + strip-lto-bytecode +} diff --git a/dev-util/sysprof-capture/sysprof-capture-46.0.ebuild b/dev-util/sysprof-capture/sysprof-capture-46.0.ebuild index 2934a83c17343..c8e9fc6d93a81 100644 --- a/dev-util/sysprof-capture/sysprof-capture-46.0.ebuild +++ b/dev-util/sysprof-capture/sysprof-capture-46.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 GNOME_ORG_MODULE="sysprof" -inherit gnome.org meson-multilib systemd +inherit dot-a gnome.org meson-multilib systemd DESCRIPTION="Static library for sysprof capture data generation" HOMEPAGE="http://sysprof.com/" @@ -21,6 +21,11 @@ BDEPEND=" virtual/pkgconfig " +src_configure() { + lto-guarantee-fat + meson-multilib_src_configure +} + multilib_src_configure() { local emesonargs=( -Dgtk=false @@ -36,3 +41,8 @@ multilib_src_configure() { ) meson_src_configure } + +multilib_src_install_all() { + einstalldocs + strip-lto-bytecode +} diff --git a/dev-util/sysprof-capture/sysprof-capture-47.2.ebuild b/dev-util/sysprof-capture/sysprof-capture-47.2.ebuild index 24b308d6b635e..6618277e10104 100644 --- a/dev-util/sysprof-capture/sysprof-capture-47.2.ebuild +++ b/dev-util/sysprof-capture/sysprof-capture-47.2.ebuild @@ -4,7 +4,7 @@ EAPI=8 GNOME_ORG_MODULE="sysprof" -inherit gnome.org meson-multilib systemd +inherit dot-a gnome.org meson-multilib systemd DESCRIPTION="Static library for sysprof capture data generation" HOMEPAGE="http://sysprof.com/" @@ -21,6 +21,11 @@ BDEPEND=" virtual/pkgconfig " +src_configure() { + lto-guarantee-fat + meson-multilib_src_configure +} + multilib_src_configure() { local emesonargs=( -Dgtk=false @@ -36,3 +41,8 @@ multilib_src_configure() { ) meson_src_configure } + +multilib_src_install_all() { + einstalldocs + strip-lto-bytecode +} -- 2.49.0