summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2015-01-27 02:56:24 +0000
committerPatrick McLean <chutzpah@gentoo.org>2015-01-27 02:56:24 +0000
commit00dd4411b3b00795cf09abc51c621783d807eb55 (patch)
treeebc9610250cc14b87f157674b41394810e823ef3 /dev-util/trace-cmd
parentNew package, User-space front-end for Ftrace (diff)
downloadhistorical-00dd4411b3b00795cf09abc51c621783d807eb55.tar.gz
historical-00dd4411b3b00795cf09abc51c621783d807eb55.tar.bz2
historical-00dd4411b3b00795cf09abc51c621783d807eb55.zip
New package, User-space front-end for Ftrace
Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0xE3F69979BB4B8928DA78E3D17CBF44EF
Diffstat (limited to 'dev-util/trace-cmd')
-rw-r--r--dev-util/trace-cmd/Manifest24
-rw-r--r--dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch34
-rw-r--r--dev-util/trace-cmd/metadata.xml11
-rw-r--r--dev-util/trace-cmd/trace-cmd-2.5.1.ebuild62
4 files changed, 129 insertions, 2 deletions
diff --git a/dev-util/trace-cmd/Manifest b/dev-util/trace-cmd/Manifest
index d93cba8397c5..5e33d2940af6 100644
--- a/dev-util/trace-cmd/Manifest
+++ b/dev-util/trace-cmd/Manifest
@@ -1,5 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX trace-cmd-2.5.1-makefile.patch 1152 SHA256 991083db0f9a4ec10fbcd18a4d5b002faf8eec3ac592a09ef1b2d290fff74275 SHA512 e74742d3c050f9e7bdb566a82a5212e6474b34ee6fc46e9ffa313ad3f2c323f55b63521ec857ae44f39ef168135fcdf733314fb3e04709e51f03ef7aed99c416 WHIRLPOOL 02e21d94c957110bf9fa0c309d3e1ac86323c30f6ef70d7d82bd2f62ea5deb9a28f66026e61dc2b47f64e4599e0fb24fbf2b36a1b317bdb82d2c81953f2654d8
DIST trace-cmd-2.5.1.tar.xz 1577148 SHA256 591aa00ff90a60fa2bce8637392126623511fd7629a771c7e3276137b31b3966 SHA512 2280eefa130a3914c34798f8bd4097a55f7f4fa4632b3d26ee1317bba54625d259ac61c6576dd3051fb2be48fb593fa54a4203d1828b7fec5fd196de00491ea2 WHIRLPOOL 4185a05c96204fb5ec8256620af53ec4c4bb2e0f7e2f268c7a6814ed788b1ce256f2dba429eef80dcf2b2409b3cd1ff11bed9bae43da558de9f6d3bb2c7c654c
-EBUILD trace-cmd-2.5.1.ebuild 1332 SHA256 9ad4f575f4d78ebe8c72b43df2969beae7c9dd44a846da27219b11d0c6593aad SHA512 298e236b80ec172d2363e6a59a97b3143fa1fdcd6a6ec4e2d832d514e0a87052b0e798061ffdc6c2a72307fd4747efda316fa192ecc0a7bbb664eab513d1b3f5 WHIRLPOOL 77b75a2d4d778def04cfd133b915f6b21aa57d54955ab80245ccb04f0e9738ab619982b470b1617098cc55a47568f32ce0e4660ffae0c9e6172222e82068048c
-MISC ChangeLog 304 SHA256 be7236ee8bb99594e5f8469d969bdf3344ff96de3344b796a95dcd7e89fc09ea SHA512 372e10fa08f692526302be7918afe7635a4691c20bfe57e3b8b35568086c0a05fc13128e286ea6815c682b222da92d38c2acd8bc3751b3e702c65a51652495bd WHIRLPOOL 7ec879fb356c69b2e3f10894bfd7979db19d3591f5e8cdcc7d4f12f99f6cef08277367c397e541e5e2abcf0b6b762e4cfc289c534d06e9c509a14862a8b8b90b
+EBUILD trace-cmd-2.5.1.ebuild 1437 SHA256 1e69ba2331f5599e0edac073a8311c05809819d888970197f4a3647e6a24b10f SHA512 fdb3981cfde68c9dbcfddc1d995a93b750cdfbffced7e43d72f7b42bb5a303f821f9a717db6c3e1b03907637ead9f73ff54766c6f9576cc3b525e073b5af640f WHIRLPOOL ce30750e8c41bd3d031123fd7b54af0036303c779de21bea4ab9afb293285d6f9dd081a665fd718f863371621234b9c7c7b98be995c4fe632ddd9c2fca12c962
+MISC ChangeLog 396 SHA256 c6a29344fc36fb19ae198d3ee692400cc148d40a29e9d4bc6900d246ac4dc100 SHA512 b633ff74a243f455128f0927348a717931b794160d44ead753c2e8510adde8c0d97dcf09a57da580b96259049208e1d8332d4c0305fef3784345d213c39d3285 WHIRLPOOL 6cf184f5286ce79b144c8c914ab1cd0e9850ec108013f7ccd78a804044a5f77d37257a7422bad90a9f18d774191d6e68590c2235d576a261d44ca4b676d1c26d
MISC metadata.xml 335 SHA256 786523556f11437f520933b9406487a7f46fd31f9f6c2140233cd99625631e2c SHA512 bde8b87ff4fb471d67a50a7863818b2c10dfdb28c449922e0ff7943efb11b15f3f050b90cbb5c67c82a99d16b2bc8c8ba4e04cfad9678cd5e5e0d18f04536d3a WHIRLPOOL a4b287f8204bbd984b539500614cd486e5891b3ff41e7d1da44666ae58c57f1cda1f5486ad9c3d1c5dd34774bf807a0c72236e70961dbb902c72510cfd1182f4
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAEBCAAGBQJUxv5TAAoJEHy/RO9cNQiDRuQP/1M3n+SHZp6sVNm8rqP2/zd9
+f1+RM1IGoNngaudqAMxlSLNfzfeB0FHuNqyZQwuDZr+JVnd8bs7r72TyyQl7y0fF
+yTXSVz88JvXXBL3+Cn0zrkBCv9p06//Al7RNjkBRtQtcW0bHjnA9e3C2zuttPSgu
+GaInJu4vnXcK6lkPwr+sT19Pi+/L5gPpN2W+rBVEO8T3wvxNiwEGKd49BcsTQqDh
+bMr6DD1le+DpWfadC6kJc5v6lnZSoL+nKnxE0K4rF+/7TtopWEOjZOMsq8YD+PWV
+3JWJiaFSI1jR6w3pHWRlPDnaWzKO3jrxS2YDLw8/lkMZZdBMeSIHpGSFYbjxKE/2
+Som9TWlGGNFbYqEgXa2icXTFrgz7a8uYgBFHry4/YbhEd7b9W53Gl80jTmzX3uoZ
+Yun9lh7H03JGu2Tu7zU+jsDi3rs7pD6c0/NGgPFOVSlBU1V5RqPDBGEUiXEfCj7N
+7n4r6Ozvo4uOcVh1yiHtVf9WrUfOHlAANlUx/RmeZqdEzinxelKzwBVYHIPishSY
+Ftg+NuFUrhMzTbydTcm9B4U7vqPWbK+5kcynhyJ/Kka58uyF1Z9I199+ZJcwytlb
+QjMe4Zwr1sK8B9uXrC1nWcGiEWxpNAnmbiLU5jFN3uW2DezRDFo6I2GKUabIsNuc
+QtZBqAJeJSX6VmPEhriE
+=0bHY
+-----END PGP SIGNATURE-----
diff --git a/dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch b/dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch
new file mode 100644
index 000000000000..ec9fb1774a3a
--- /dev/null
+++ b/dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch
@@ -0,0 +1,34 @@
+diff --git a/Makefile b/Makefile
+index 186e245..9127f23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -58,7 +58,7 @@ plugin_dir = $(HOME)/.trace-cmd/plugins
+ python_dir = $(HOME)/.trace-cmd/python
+ else
+ plugin_dir = $(prefix)/$(libdir)/trace-cmd/plugins
+-python_dir = $(prefix)/$(libdir)/trace-cmd/python
++python_dir ?= $(prefix)/$(libdir)/trace-cmd/python
+ PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
+ PYTHON_DIR = -DPYTHON_DIR="$(python_dir)"
+ PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
+@@ -98,8 +98,11 @@ endif # NO_PYTHON
+ test-build = $(if $(shell sh -c 'echo "$(1)" | \
+ $(CC) -o /dev/null -c -x c - > /dev/null 2>&1 && echo y'), $2)
+
++ifndef NO_UDIS86
+ # have udis86 disassembler library?
+-udis86-flags := $(call test-build,\#include <udis86.h>,-DHAVE_UDIS86 -ludis86)
++udis86-flags := -DHAVE_UDIS86
++udis86-ldflags := -ludis86
++endif # NO_UDIS86
+
+ define BLK_TC_FLUSH_SOURCE
+ #include <linux/blktrace_api.h>
+@@ -242,6 +245,7 @@ endif
+ # Append required CFLAGS
+ override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ)
+ override CFLAGS += $(udis86-flags) $(blk-flags)
++override LDFLAGS += $(udis86-ldflags)
+
+ ifeq ($(VERBOSE),1)
+ Q =
diff --git a/dev-util/trace-cmd/metadata.xml b/dev-util/trace-cmd/metadata.xml
new file mode 100644
index 000000000000..2bd7dc23471b
--- /dev/null
+++ b/dev-util/trace-cmd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <use>
+ <flag name="udis86">Enable support for dev-libs/udis86 disassembler library</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild b/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild
new file mode 100644
index 000000000000..cb6a1bff8cea
--- /dev/null
+++ b/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild,v 1.1 2015/01/27 02:56:08 chutzpah Exp $
+
+EAPI=5
+PYTHON_COMPAT=(python2_7)
+
+inherit toolchain-funcs python-single-r1
+
+DESCRIPTION="User-space front-end for Ftrace"
+HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc gtk python udis86"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ udis86? ( dev-libs/udis86 )
+ gtk? (
+ ${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ python? (
+ virtual/pkgconfig
+ dev-lang/swig
+ )
+ gtk? ( virtual/pkgconfig )
+ doc? ( app-text/asciidoc )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch_user
+}
+
+src_configure() {
+ MAKEOPTS+=" V=1 prefix=/usr libdir=$(get_libdir) CC=$(tc-getCC) AR=$(tc-getAR)"
+
+ if use python; then
+ MAKEOPTS+=" PYTHON_VERS=${EPYTHON//python/python-}"
+ MAKEOPTS+=" python_dir=$(python_get_sitedir)/${PN}"
+ else
+ MAKEOPTS+=" NO_PYTHON=1"
+ fi
+
+ use udis86 || MAKEOPTS+=" NO_UDIS86=1"
+}
+
+src_compile() {
+ emake all_cmd
+ use doc && emake doc
+ use gtk && emake -j1 gui
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use doc && emake DESTDIR="${D}" install_doc
+ use gtk && emake DESTDIR="${D}" install_gui
+}