Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysprof/
Date: Sun, 01 Mar 2020 16:19:00
Message-Id: 1583079463.4bf1c50c0f6f86935a054e295da32c9db847c3c7.leio@gentoo
1 commit: 4bf1c50c0f6f86935a054e295da32c9db847c3c7
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 16:16:57 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 16:17:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bf1c50c
7
8 dev-util/sysprof: bump to 3.34.1
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 dev-util/sysprof/Manifest | 1 +
14 dev-util/sysprof/metadata.xml | 3 ++
15 dev-util/sysprof/sysprof-3.34.1.ebuild | 74 ++++++++++++++++++++++++++++++++++
16 3 files changed, 78 insertions(+)
17
18 diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest
19 index d1fc06eee56..ca9f0fa9840 100644
20 --- a/dev-util/sysprof/Manifest
21 +++ b/dev-util/sysprof/Manifest
22 @@ -1 +1,2 @@
23 DIST sysprof-3.32.0.tar.xz 296052 BLAKE2B f409c64d40bd3451037e601683f270ff93ea2a60a2c104d22edc6bad5ff3f5c974f80137776b6329dae932852fa0871f2b7b9960a282147ddef5402ad840d9ef SHA512 7b9d84ac241d376a5e545082b1224e7db96af26ae0ee297d5f0b2d45abc4676e23009dbd560085e5d4879378a8dd79eefb4449df3961fbfd09238bd2056061d0
24 +DIST sysprof-3.34.1.tar.xz 372612 BLAKE2B 3a50a00f29866ae8bf03cc7a57b598e40a6a37ad88ac2159087e4f2a8a6a5cef09b345dc5332fb1df9036c4e159e98f19adda45588150b059af313878b9b554c SHA512 5f2d820935291a3b578222d5daa87b0a2f74cd16d14daca19065495be61cf7359f00f12f452a5c0b4e05dfeb94e2376017c2288cad92dc0c4bb9bca51b903d19
25
26 diff --git a/dev-util/sysprof/metadata.xml b/dev-util/sysprof/metadata.xml
27 index 70135f65443..2511f1c9437 100644
28 --- a/dev-util/sysprof/metadata.xml
29 +++ b/dev-util/sysprof/metadata.xml
30 @@ -17,4 +17,7 @@
31 <flag name="systemd">Build the sysprofd daemon service, required to run the UI without root permissions.
32 Relies on <pkg>sys-apps/systemd</pkg> for sd-bus API.</flag>
33 </use>
34 +<slots>
35 + <subslots>sysprof and sysprof-ui API version</subslots>
36 +</slots>
37 </pkgmetadata>
38
39 diff --git a/dev-util/sysprof/sysprof-3.34.1.ebuild b/dev-util/sysprof/sysprof-3.34.1.ebuild
40 new file mode 100644
41 index 00000000000..069a3186fe3
42 --- /dev/null
43 +++ b/dev-util/sysprof/sysprof-3.34.1.ebuild
44 @@ -0,0 +1,74 @@
45 +# Copyright 1999-2020 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +
50 +inherit gnome.org gnome2-utils meson systemd xdg
51 +
52 +DESCRIPTION="System-wide Linux Profiler"
53 +HOMEPAGE="http://sysprof.com/"
54 +
55 +LICENSE="GPL-3+ GPL-2+"
56 +API_VERSION="3"
57 +SLOT="0/${API_VERSION}"
58 +KEYWORDS="~amd64 ~x86"
59 +IUSE="gtk"
60 +
61 +RDEPEND="
62 + >=dev-libs/glib-2.61.3:2
63 + gtk? (
64 + >=x11-libs/gtk+-3.22.0:3
65 + >=dev-libs/libdazzle-3.30.0
66 + )
67 + >=sys-auth/polkit-0.114
68 + dev-util/sysprof-capture:${API_VERSION}
69 +"
70 +DEPEND="${RDEPEND}"
71 +BDEPEND="
72 + dev-libs/appstream-glib
73 + dev-util/gdbus-codegen
74 + dev-util/itstool
75 + >=sys-devel/gettext-0.19.8
76 + >=sys-kernel/linux-headers-2.6.32
77 + virtual/pkgconfig
78 +"
79 +
80 +src_prepare() {
81 + xdg_src_prepare
82 + # These are installed by dev-util/sysprof-capture
83 + sed -i -e '/install/d' src/libsysprof-capture/meson.build || die
84 + sed -i -e 's/pkgconfig\.generate/subdir_done()\npkgconfig\.generate/' src/libsysprof-capture/meson.build || die
85 +}
86 +
87 +src_configure() {
88 + # -Dwith_sysprofd=host currently unavailable from ebuild
89 + local emesonargs=(
90 + $(meson_use gtk enable_gtk)
91 + -Dlibsysprof=true
92 + -Dwith_sysprofd=bundled
93 + -Dsystemdunitdir=$(systemd_get_systemunitdir)
94 + # -Ddebugdir
95 + -Dhelp=true
96 + )
97 + meson_src_configure
98 +}
99 +
100 +pkg_postinst() {
101 + xdg_pkg_postinst
102 + gnome2_schemas_update
103 +
104 + elog "On many systems, especially amd64, it is typical that with a modern"
105 + elog "toolchain -fomit-frame-pointer for gcc is the default, because"
106 + elog "debugging is still possible thanks to gcc4/gdb location list feature."
107 + elog "However sysprof is not able to construct call trees if frame pointers"
108 + elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
109 + elog "for the libraries and applications involved in the profiling. That"
110 + elog "means a CPU register is used for the frame pointer instead of other"
111 + elog "purposes, which means a very minimal performance loss when there is"
112 + elog "register pressure."
113 +}
114 +
115 +pkg_postrm() {
116 + xdg_pkg_postrm
117 + gnome2_schemas_update
118 +}