commit: fa1d9bf233a759bf39f7514f996a5f8cca6948ef Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> AuthorDate: Sun Jan 26 13:06:11 2025 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Jan 26 15:00:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa1d9bf2
dev-util/sysprof: Migrate to greadme.eclass Instead of elogging the messages every time the package is rebuilt. Also add forgotten gnome2_schemas_savelist call. Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> dev-util/sysprof/sysprof-47.2.ebuild | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/dev-util/sysprof/sysprof-47.2.ebuild b/dev-util/sysprof/sysprof-47.2.ebuild index 963523b27b02..5b6fd9b96100 100644 --- a/dev-util/sysprof/sysprof-47.2.ebuild +++ b/dev-util/sysprof/sysprof-47.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit gnome.org gnome2-utils meson systemd xdg +inherit gnome.org gnome2-utils greadme meson systemd xdg DESCRIPTION="System-wide Linux Profiler" HOMEPAGE="http://sysprof.com/" @@ -79,21 +79,30 @@ src_install() { # We want to ship org.gnome.Sysprof3.Profiler.xml in sysprof-common for the benefit of x11-wm/mutter rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml || die + + greadme_stdin <<-EOF + On many systems, especially amd64, it is typical that with a modern + toolchain -fomit-frame-pointer for gcc is the default, because + debugging is still possible thanks to gcc/gdb location list feature. + However sysprof is not able to construct call trees if frame pointers + are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested + for the libraries and applications involved in the profiling. That + means a CPU register is used for the frame pointer instead of other + purposes, which means a very minimal performance loss when there is + register pressure. +EOF +} + +pkg_preinst() { + xdg_pkg_preinst + gnome2_schemas_savelist + greadme_pkg_preinst } pkg_postinst() { xdg_pkg_postinst gnome2_schemas_update - - elog "On many systems, especially amd64, it is typical that with a modern" - elog "toolchain -fomit-frame-pointer for gcc is the default, because" - elog "debugging is still possible thanks to gcc4/gdb location list feature." - elog "However sysprof is not able to construct call trees if frame pointers" - elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" - elog "for the libraries and applications involved in the profiling. That" - elog "means a CPU register is used for the frame pointer instead of other" - elog "purposes, which means a very minimal performance loss when there is" - elog "register pressure." + greadme_pkg_postinst } pkg_postrm() {
