From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2842C139694 for ; Wed, 31 May 2017 22:37:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0021A21C097; Wed, 31 May 2017 22:37:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC19521C097 for ; Wed, 31 May 2017 22:37:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 25EB5341730 for ; Wed, 31 May 2017 22:37:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 92C09745F for ; Wed, 31 May 2017 22:37:00 +0000 (UTC) From: "Sven Wegener" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" Message-ID: <1496270216.44dea013934f0c425627dce29e699227acbdee8a.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/systemtap/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/systemtap/metadata.xml dev-util/systemtap/systemtap-3.1-r1.ebuild X-VCS-Directories: dev-util/systemtap/ X-VCS-Committer: swegener X-VCS-Committer-Name: Sven Wegener X-VCS-Revision: 44dea013934f0c425627dce29e699227acbdee8a X-VCS-Branch: master Date: Wed, 31 May 2017 22:37:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 74b2be46-0065-4dc0-94b7-36abca39aa0b X-Archives-Hash: fc11c555aee4fa7bf40a71d4fa033c5c commit: 44dea013934f0c425627dce29e699227acbdee8a Author: Christophe Lermytte lermytte be> AuthorDate: Tue Jan 10 21:46:49 2017 +0000 Commit: Sven Wegener gentoo org> CommitDate: Wed May 31 22:36:56 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44dea013 dev-util/systemtap: make dependency on libvirt explicit Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: gentoo/gentoo#3427 dev-util/systemtap/metadata.xml | 3 ++ dev-util/systemtap/systemtap-3.1-r1.ebuild | 75 ++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/dev-util/systemtap/metadata.xml b/dev-util/systemtap/metadata.xml index 208c069b8e6..25ae3f091ac 100644 --- a/dev-util/systemtap/metadata.xml +++ b/dev-util/systemtap/metadata.xml @@ -4,4 +4,7 @@ swegener@gentoo.org + + Support probing of libvirt domains. + diff --git a/dev-util/systemtap/systemtap-3.1-r1.ebuild b/dev-util/systemtap/systemtap-3.1-r1.ebuild new file mode 100644 index 00000000000..5b890a2b054 --- /dev/null +++ b/dev-util/systemtap/systemtap-3.1-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit linux-info autotools eutils python-single-r1 + +DESCRIPTION="A linux trace/probe tool" +HOMEPAGE="http://www.sourceware.org/systemtap/" +SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="libvirt sqlite" + +RDEPEND=">=dev-libs/elfutils-0.142 + sys-libs/libcap + ${PYTHON_DEPS} + libvirt? ( >=app-emulation/libvirt-1.0.2 ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND} + >=sys-devel/gettext-0.18.2" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS" +ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'." +ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'." +ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'." + +DOCS="AUTHORS HACKING NEWS README" + +pkg_setup() { + linux-info_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + python_fix_shebang . + + sed -i \ + -e 's:-Werror::g' \ + configure.ac \ + Makefile.am \ + staprun/Makefile.am \ + stapdyn/Makefile.am \ + buildrun.cxx \ + testsuite/systemtap.unprivileged/unprivileged_probes.exp \ + testsuite/systemtap.unprivileged/unprivileged_myproc.exp \ + testsuite/systemtap.base/stmt_rel_user.exp \ + testsuite/systemtap.base/sdt_va_args.exp \ + testsuite/systemtap.base/sdt_misc.exp \ + testsuite/systemtap.base/sdt.exp \ + scripts/kprobes_test/gen_code.py \ + || die "Failed to clean up sources" + + default + + eautoreconf +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --without-rpm \ + --disable-server \ + --disable-docs \ + --disable-refdocs \ + --disable-grapher \ + $(use_enable libvirt virt) \ + $(use_enable sqlite) +}