Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysprof/
Date: Sat, 24 Sep 2022 20:05:24
Message-Id: 1664049907.6a3d479ffabfed6eee98f487401c86c1302a26ae.mattst88@gentoo
1 commit: 6a3d479ffabfed6eee98f487401c86c1302a26ae
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 19:40:09 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 20:05:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a3d479f
7
8 dev-util/sysprof: Version bump to 3.46.0
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 dev-util/sysprof/Manifest | 1 +
13 dev-util/sysprof/sysprof-3.46.0.ebuild | 98 ++++++++++++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest
17 index b2b2c1794cb2..ce0ab8a4aa6c 100644
18 --- a/dev-util/sysprof/Manifest
19 +++ b/dev-util/sysprof/Manifest
20 @@ -1 +1,2 @@
21 DIST sysprof-3.44.0.tar.xz 493924 BLAKE2B c3d9558df99ba23f63fbde0df54e201afce83da8f7d64166b44fcc2c70ec9e54a4abfbd0ac64171b1538af7e9d608b0f618559aba9444a3d884cd4944c4d595f SHA512 64bfe4d39e71954f7982ef06caffc39ff60d2d6005f8392a7918f83263d7c5b11bafdf7234ed86d52063586919a4dbe742c498b6f1f9db91d481337cf568451c
22 +DIST sysprof-3.46.0.tar.xz 518536 BLAKE2B 8925f0cbe34411cce6bd86e9f4a924d3ff627429812682898fffe0a08c2dab9228e5d8bde44b460404f90fb29961a30154af1e8240df24bfa20b70cc7a36448e SHA512 ac248e2a06d2f7905bebae4e685dd320e3ac85097e33b9c6b8482a4647a5bfcaadc4d9a1fe117b3a74cb855d6c72d9a1453a37d7b64762a223c0fe5da2653a87
23
24 diff --git a/dev-util/sysprof/sysprof-3.46.0.ebuild b/dev-util/sysprof/sysprof-3.46.0.ebuild
25 new file mode 100644
26 index 000000000000..679912d796cb
27 --- /dev/null
28 +++ b/dev-util/sysprof/sysprof-3.46.0.ebuild
29 @@ -0,0 +1,98 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit gnome.org gnome2-utils meson systemd xdg
36 +
37 +DESCRIPTION="System-wide Linux Profiler"
38 +HOMEPAGE="http://sysprof.com/"
39 +
40 +LICENSE="GPL-3+ GPL-2+"
41 +API_VERSION="4"
42 +SLOT="0/${API_VERSION}"
43 +KEYWORDS="~amd64 ~arm64 ~x86"
44 +IUSE="gtk test +unwind"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="
48 + >=dev-libs/glib-2.73.0:2
49 + gtk? (
50 + >=gui-libs/gtk-4.6:4
51 + gui-libs/libadwaita:1
52 + x11-libs/cairo
53 + x11-libs/pango
54 + )
55 + dev-libs/json-glib
56 + >=sys-auth/polkit-0.114
57 + unwind? ( sys-libs/libunwind:= )
58 + >=dev-util/sysprof-common-${PV}
59 + >=dev-util/sysprof-capture-${PV}:${API_VERSION}
60 +"
61 +DEPEND="${RDEPEND}"
62 +BDEPEND="
63 + dev-libs/appstream-glib
64 + dev-util/gdbus-codegen
65 + dev-util/itstool
66 + >=sys-devel/gettext-0.19.8
67 + >=sys-kernel/linux-headers-2.6.32
68 + virtual/pkgconfig
69 +"
70 +
71 +src_prepare() {
72 + default
73 + xdg_environment_reset
74 +
75 + # These are installed by dev-util/sysprof-capture
76 + sed -i \
77 + -e '/install: not meson.is_subproject/d' \
78 + -e '/install.*sysprof_header_subdir/d' \
79 + -e 's/pkgconfig\.generate/subdir_done()\npkgconfig\.generate/' \
80 + src/libsysprof-capture/meson.build || die
81 +}
82 +
83 +src_configure() {
84 + # -Dsysprofd=host currently unavailable from ebuild
85 + local emesonargs=(
86 + $(meson_use gtk)
87 + -Dlibsysprof=true
88 + -Dinstall-static=false
89 + -Dsysprofd=bundled
90 + -Dsystemdunitdir=$(systemd_get_systemunitdir)
91 + # -Ddebugdir
92 + -Dhelp=true
93 + $(meson_use unwind libunwind)
94 + -Dtools=true
95 + $(meson_use test tests)
96 + -Dexamples=false
97 + -Dagent=true
98 + )
99 + meson_src_configure
100 +}
101 +
102 +src_install() {
103 + meson_src_install
104 +
105 + # We want to ship org.gnome.Sysprof3.Profiler.xml in sysprof-common for the benefit of x11-wm/mutter
106 + rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml || die
107 +}
108 +
109 +pkg_postinst() {
110 + xdg_pkg_postinst
111 + gnome2_schemas_update
112 +
113 + elog "On many systems, especially amd64, it is typical that with a modern"
114 + elog "toolchain -fomit-frame-pointer for gcc is the default, because"
115 + elog "debugging is still possible thanks to gcc4/gdb location list feature."
116 + elog "However sysprof is not able to construct call trees if frame pointers"
117 + elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
118 + elog "for the libraries and applications involved in the profiling. That"
119 + elog "means a CPU register is used for the frame pointer instead of other"
120 + elog "purposes, which means a very minimal performance loss when there is"
121 + elog "register pressure."
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_pkg_postrm
126 + gnome2_schemas_update
127 +}