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: Mon, 07 Jun 2021 01:06:35
Message-Id: 1623027976.42a11d14ad7d1482d99e012567e0fe9f913f9f40.mattst88@gentoo
1 commit: 42a11d14ad7d1482d99e012567e0fe9f913f9f40
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 7 00:58:30 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 7 01:06:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42a11d14
7
8 dev-util/sysprof: Version bump to 3.40.1
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 dev-util/sysprof/Manifest | 1 +
13 dev-util/sysprof/sysprof-3.40.1.ebuild | 80 ++++++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest
17 index 833ac962838..26ead59a532 100644
18 --- a/dev-util/sysprof/Manifest
19 +++ b/dev-util/sysprof/Manifest
20 @@ -1 +1,2 @@
21 DIST sysprof-3.38.1.tar.xz 458572 BLAKE2B 68c219a6c80ed070314fc7718a2995c49821cc7c761b277fdd29c233da9d81b561b6c68cd0d0a42cc3e4c150e3de438322f7d418140ce19f3381f4ffac78aa1a SHA512 7ba3dd51bd4055dcdf4d46ff87e46537afe42ba009809fdee5ba0ebcdf70776d9e1ff812714096d33b09ac57d459707b92b1ca07682e2f3888b612ca74820442
22 +DIST sysprof-3.40.1.tar.xz 468320 BLAKE2B fcba3b627ea32c38e621046027fced7478b6c57ba5487834d35fdde45a38bf4df66e5d696e93627217fa237978a6e7074b9e92ae89f963db7b6fca4482b59053 SHA512 ad07fd21066dfa6c7be81acdb720d97f392e1bbd05e71dd45d743b10a631b2b2c4c1177086f28e7f500271add79aa3356dd2aebdb97604357c4fef43809ead87
23
24 diff --git a/dev-util/sysprof/sysprof-3.40.1.ebuild b/dev-util/sysprof/sysprof-3.40.1.ebuild
25 new file mode 100644
26 index 00000000000..bbcfc1400ed
27 --- /dev/null
28 +++ b/dev-util/sysprof/sysprof-3.40.1.ebuild
29 @@ -0,0 +1,80 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
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 ~x86"
44 +IUSE="gtk +unwind"
45 +
46 +RDEPEND="
47 + >=dev-libs/glib-2.67.4:2
48 + gtk? (
49 + >=x11-libs/gtk+-3.22.0:3
50 + >=dev-libs/libdazzle-3.30.0
51 + )
52 + dev-libs/json-glib
53 + >=sys-auth/polkit-0.114
54 + unwind? ( sys-libs/libunwind:= )
55 + >=dev-util/sysprof-common-${PV}
56 + >=dev-util/sysprof-capture-${PV}:${API_VERSION}
57 +"
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="
60 + dev-libs/appstream-glib
61 + dev-util/gdbus-codegen
62 + dev-util/itstool
63 + >=sys-devel/gettext-0.19.8
64 + >=sys-kernel/linux-headers-2.6.32
65 + virtual/pkgconfig
66 +"
67 +
68 +src_prepare() {
69 + xdg_src_prepare
70 + # These are installed by dev-util/sysprof-capture
71 + sed -i -e '/install/d' src/libsysprof-capture/meson.build || die
72 + sed -i -e 's/pkgconfig\.generate/subdir_done()\npkgconfig\.generate/' src/libsysprof-capture/meson.build || die
73 + # We want to ship org.gnome.Sysprof3.Profiler.xml in sysprof-common for the benefit of x11-wm/mutter
74 + sed -i -e "s|if get_option('libsysprof')|if false|g" src/meson.build || die
75 +}
76 +
77 +src_configure() {
78 + # -Dwith_sysprofd=host currently unavailable from ebuild
79 + local emesonargs=(
80 + $(meson_use gtk enable_gtk)
81 + -Dlibsysprof=true
82 + -Dwith_sysprofd=bundled
83 + -Dsystemdunitdir=$(systemd_get_systemunitdir)
84 + # -Ddebugdir
85 + -Dhelp=true
86 + $(meson_use unwind libunwind)
87 + )
88 + meson_src_configure
89 +}
90 +
91 +pkg_postinst() {
92 + xdg_pkg_postinst
93 + gnome2_schemas_update
94 +
95 + elog "On many systems, especially amd64, it is typical that with a modern"
96 + elog "toolchain -fomit-frame-pointer for gcc is the default, because"
97 + elog "debugging is still possible thanks to gcc4/gdb location list feature."
98 + elog "However sysprof is not able to construct call trees if frame pointers"
99 + elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
100 + elog "for the libraries and applications involved in the profiling. That"
101 + elog "means a CPU register is used for the frame pointer instead of other"
102 + elog "purposes, which means a very minimal performance loss when there is"
103 + elog "register pressure."
104 +}
105 +
106 +pkg_postrm() {
107 + xdg_pkg_postrm
108 + gnome2_schemas_update
109 +}