summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-14 00:21:02 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-14 00:21:02 +0000
commit63d1d0217977567cc298e79b6ecb9fef5f488d1d (patch)
treeaa5fdbb6415ad28ad7ef4616ff55b5df4f1c0f14 /dev-util/sysprof
parentVersion bump from upstream (diff)
downloadgentoo-2-63d1d0217977567cc298e79b6ecb9fef5f488d1d.tar.gz
gentoo-2-63d1d0217977567cc298e79b6ecb9fef5f488d1d.tar.bz2
gentoo-2-63d1d0217977567cc298e79b6ecb9fef5f488d1d.zip
Version bump #118890 by TGL.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-util/sysprof')
-rw-r--r--dev-util/sysprof/ChangeLog11
-rw-r--r--dev-util/sysprof/files/digest-sysprof-1.0.11
-rw-r--r--dev-util/sysprof/files/sysprof-1.0.1-INTERVAL_should_not_be_zero.patch17
-rw-r--r--dev-util/sysprof/sysprof-1.0.1.ebuild43
4 files changed, 70 insertions, 2 deletions
diff --git a/dev-util/sysprof/ChangeLog b/dev-util/sysprof/ChangeLog
index 6f6f6187080f..2640de4a8ff7 100644
--- a/dev-util/sysprof/ChangeLog
+++ b/dev-util/sysprof/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/sysprof
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/sysprof/ChangeLog,v 1.2 2005/10/05 08:06:09 eradicator Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/sysprof/ChangeLog,v 1.3 2006/01/14 00:21:02 vapier Exp $
+
+*sysprof-1.0.1 (14 Jan 2006)
+
+ 14 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/sysprof-1.0.1-INTERVAL_should_not_be_zero.patch,
+ +sysprof-1.0.1.ebuild:
+ Version bump #118890 by TGL.
*sysprof-1.0 (05 Oct 2005)
diff --git a/dev-util/sysprof/files/digest-sysprof-1.0.1 b/dev-util/sysprof/files/digest-sysprof-1.0.1
new file mode 100644
index 000000000000..728656acf4c7
--- /dev/null
+++ b/dev-util/sysprof/files/digest-sysprof-1.0.1
@@ -0,0 +1 @@
+MD5 08a4782d6469ede780671feb754bbcb3 sysprof-1.0.1.tar.gz 138055
diff --git a/dev-util/sysprof/files/sysprof-1.0.1-INTERVAL_should_not_be_zero.patch b/dev-util/sysprof/files/sysprof-1.0.1-INTERVAL_should_not_be_zero.patch
new file mode 100644
index 000000000000..7c4bad8508ae
--- /dev/null
+++ b/dev-util/sysprof/files/sysprof-1.0.1-INTERVAL_should_not_be_zero.patch
@@ -0,0 +1,17 @@
+http://bugs.gentoo.org/show_bug.cgi?id=118890#c4
+
+--- module/sysprof-module.c
++++ module/sysprof-module.c
+@@ -50,7 +50,11 @@
+ MODULE_AUTHOR("Soeren Sandmann (sandmann@daimi.au.dk)");
+
+ #define SAMPLES_PER_SECOND (200)
+-#define INTERVAL (HZ / SAMPLES_PER_SECOND)
++#if (HZ > SAMPLES_PER_SECOND)
++# define INTERVAL (HZ / SAMPLES_PER_SECOND)
++#else
++# define INTERVAL 1
++#endif
+ #define N_TRACES 256
+
+ static SysprofStackTrace stack_traces[N_TRACES];
diff --git a/dev-util/sysprof/sysprof-1.0.1.ebuild b/dev-util/sysprof/sysprof-1.0.1.ebuild
new file mode 100644
index 000000000000..69745dcda765
--- /dev/null
+++ b/dev-util/sysprof/sysprof-1.0.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/sysprof/sysprof-1.0.1.ebuild,v 1.1 2006/01/14 00:21:02 vapier Exp $
+
+inherit eutils linux-mod
+
+DESCRIPTION="System-wide Linux Profiler"
+HOMEPAGE="http://www.daimi.au.dk/~sandmann/sysprof/"
+SRC_URI="http://www.daimi.au.dk/~sandmann/sysprof/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=x11-libs/gtk+-2.6"
+
+pkg_setup() {
+ MODULE_NAMES="sysprof-module(misc:${S}/module)"
+ CONFIG_CHECK="PROFILING"
+ PROFILING_ERROR="You need to enable Profiling support in your kernel."
+ BUILD_TARGETS="all"
+ linux-mod_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-INTERVAL_should_not_be_zero.patch
+}
+
+src_compile() {
+ econf --disable-kernel-module || die
+ emake || die
+ linux-mod_src_compile
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ linux-mod_src_install
+ dodoc AUTHORS ChangeLog NEWS README TODO
+ make_desktop_entry sysprof Sysprof sysprof-icon.png
+}