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 1EC13138334 for ; Sat, 27 Oct 2018 20:08:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27494E07F2; Sat, 27 Oct 2018 20:08:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E11D2E07F2 for ; Sat, 27 Oct 2018 20:08:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 B0121335C06 for ; Sat, 27 Oct 2018 20:08:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DA5D43D for ; Sat, 27 Oct 2018 20:08:34 +0000 (UTC) From: "Andrew Savchenko" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Savchenko" Message-ID: <1540670905.8d7ea59d2cef367fe5c7131773e5225954bd5ee6.bircoph@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/oprofile/Manifest dev-util/oprofile/oprofile-1.3.0.ebuild X-VCS-Directories: dev-util/oprofile/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: 8d7ea59d2cef367fe5c7131773e5225954bd5ee6 X-VCS-Branch: master Date: Sat, 27 Oct 2018 20:08:34 +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: 6c294215-aea3-4208-94ea-c3508f4f6589 X-Archives-Hash: 2314fff1a69b5dc9963c5ccbbe05c829 commit: 8d7ea59d2cef367fe5c7131773e5225954bd5ee6 Author: Andrew Savchenko gentoo org> AuthorDate: Sat Oct 27 20:07:10 2018 +0000 Commit: Andrew Savchenko gentoo org> CommitDate: Sat Oct 27 20:08:25 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d7ea59d dev-util/oprofile: version bump Signed-off-by: Andrew Savchenko gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-util/oprofile/Manifest | 1 + dev-util/oprofile/oprofile-1.3.0.ebuild | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest index 0bb84cb8e05..9485fee3e1b 100644 --- a/dev-util/oprofile/Manifest +++ b/dev-util/oprofile/Manifest @@ -1,2 +1,3 @@ DIST oprofile-1.1.0.tar.gz 1468502 BLAKE2B 5c0abdf1ce6f3fa9b7140036ff654b2f5d5e29d996afec834014c141a4669e57c1d4ac60d6705c35ee1dce23ce790e07063b58508abd39b6562b7298744e2eb4 SHA512 b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758 DIST oprofile-1.2.0.tar.gz 1533343 BLAKE2B 873433ddba11389a221ff3b6eb6b8b19748ac4989232bda7d9af698b95dedf8ecd1112dce3accab5e1b40c87287901c015eec167713b9ad11daa0a0f0e3255f9 SHA512 d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d +DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1 SHA512 02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild b/dev-util/oprofile/oprofile-1.3.0.ebuild new file mode 100644 index 00000000000..c7b531f0ad3 --- /dev/null +++ b/dev-util/oprofile/oprofile-1.3.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit java-pkg-opt-2 linux-info user + +DESCRIPTION="A transparent low-overhead system-wide profiler" +HOMEPAGE="http://oprofile.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="java pch" + +RDEPEND=">=dev-libs/popt-1.7-r1 + sys-libs/binutils-libs:= + >=sys-libs/glibc-2.3.2-r1 + java? ( >=virtual/jdk-1.5:= ) + ppc64? ( dev-libs/libpfm )" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.31" + +CONFIG_CHECK="PERF_EVENTS" +ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work." + +pkg_setup() { + linux-info_pkg_setup + if ! kernel_is -ge 2 6 31; then + echo + ewarn "Support for kernels before 2.6.31 has been dropped in ${PN}-1.0.0." + echo + fi + + # Required for JIT support, see README_PACKAGERS + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} + + use java && java-pkg_init +} + +src_configure() { + econf \ + --disable-werror \ + $(use_enable pch) \ + $(use_with java java ${JAVA_HOME}) +} + +src_install() { + emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install + + dodoc ChangeLog* README TODO + echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die + doenvd "${T}/10${PN}" +} + +pkg_postinst() { + echo + elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead." + elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels." + elog "Please read manpages and this html doc:" + elog " /usr/share/doc/${PF}/${PN}.html" + echo +}