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: Thu, 02 Aug 2018 20:59:05
Message-Id: 1533243471.cea5597de59543f5fc712d45b2cb2ea671b00ce5.leio@gentoo
1 commit: cea5597de59543f5fc712d45b2cb2ea671b00ce5
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 2 20:53:06 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 2 20:57:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cea5597d
7
8 dev-util/sysprof: bump to 3.26.1
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 dev-util/sysprof/Manifest | 1 +
13 dev-util/sysprof/sysprof-3.26.1.ebuild | 63 ++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest
17 index 048dac70a65..684b0f5ef58 100644
18 --- a/dev-util/sysprof/Manifest
19 +++ b/dev-util/sysprof/Manifest
20 @@ -1 +1,2 @@
21 DIST sysprof-3.24.1.tar.xz 595920 BLAKE2B 90582eab3fc12a0169c151ce0fad20b839841f77a31e5858f8d660f9b0f2630396bec3b239dd88baa3f6e3dd936bdd6d63a652e491a1d32f966a755f9099f160 SHA512 5d323bcb9923c511065132711963dc8856c4d837b4d7ccfae5cc5794be5ac8ad1dc42504025469199f4bfd6a6fad4d8f49b7b21cab6f0c9a954820182e75c7d0
22 +DIST sysprof-3.26.1.tar.xz 609076 BLAKE2B fd10ce27b224100558ff5bb9c75cfffcb76b2331d2c4056bd73a9ace1ea155e61d705240acf6fefa805fba2333f6d439369d5b1cc16e0c537ab9fed408bf6d85 SHA512 ee03360e4971cd91129bac3cc9d2cf292d29aafe1cdacd078e404ee15c3ff02bcd0c0159502605c00eb2abd3a46917cf70458ad05e48b594eeb2835ead55c34c
23
24 diff --git a/dev-util/sysprof/sysprof-3.26.1.ebuild b/dev-util/sysprof/sysprof-3.26.1.ebuild
25 new file mode 100644
26 index 00000000000..144b2c9fcad
27 --- /dev/null
28 +++ b/dev-util/sysprof/sysprof-3.26.1.ebuild
29 @@ -0,0 +1,63 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit gnome2 linux-info systemd
36 +
37 +DESCRIPTION="System-wide Linux Profiler"
38 +HOMEPAGE="http://sysprof.com/"
39 +
40 +LICENSE="GPL-2+"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +IUSE="debug gtk systemd"
44 +
45 +RDEPEND="
46 + >=dev-libs/glib-2.44:2
47 + gtk? (
48 + sys-auth/polkit
49 + >=x11-libs/gtk+-3.22.0:3 )
50 + systemd? (
51 + sys-auth/polkit
52 + >=sys-apps/systemd-222 )
53 +"
54 +DEPEND="${RDEPEND}
55 + app-text/yelp-tools
56 + >=sys-devel/gettext-0.19.6
57 + >=sys-kernel/linux-headers-2.6.32
58 + dev-libs/appstream-glib
59 + virtual/pkgconfig
60 +"
61 +
62 +pkg_pretend() {
63 + kernel_is -ge 2 6 31 && return
64 + die "Sysprof will not work with a kernel version less than 2.6.31"
65 +}
66 +
67 +src_configure() {
68 + # introspection & vala not use in build system
69 + # --with-sysprofd=host currently unavailable from ebuild
70 + gnome2_src_configure \
71 + $(use_enable debug) \
72 + $(use_enable gtk) \
73 + --disable-introspection \
74 + --disable-static \
75 + --disable-vala \
76 + --with-sysprofd=$(usex systemd bundled no) \
77 + --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
78 +}
79 +
80 +pkg_postinst() {
81 + gnome2_pkg_postinst
82 +
83 + elog "On many systems, especially amd64, it is typical that with a modern"
84 + elog "toolchain -fomit-frame-pointer for gcc is the default, because"
85 + elog "debugging is still possible thanks to gcc4/gdb location list feature."
86 + elog "However sysprof is not able to construct call trees if frame pointers"
87 + elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
88 + elog "for the libraries and applications involved in the profiling. That"
89 + elog "means a CPU register is used for the frame pointer instead of other"
90 + elog "purposes, which means a very minimal performance loss when there is"
91 + elog "register pressure."
92 +}