From 494ca58c9f5243dd4b56557aa8c41bce76e95ec3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Dec 2024 02:01:11 +0000 Subject: gentoo auto-resync : 11:12:2024 - 02:01:11 --- dev-util/oprofile/Manifest | 2 +- dev-util/oprofile/oprofile-1.4.0-r1.ebuild | 91 ++++++++++++++++++++++++++++++ dev-util/oprofile/oprofile-1.4.0.ebuild | 90 ----------------------------- 3 files changed, 92 insertions(+), 91 deletions(-) create mode 100644 dev-util/oprofile/oprofile-1.4.0-r1.ebuild delete mode 100644 dev-util/oprofile/oprofile-1.4.0.ebuild (limited to 'dev-util/oprofile') diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest index a425b785604f..3126bd32e5c1 100644 --- a/dev-util/oprofile/Manifest +++ b/dev-util/oprofile/Manifest @@ -2,5 +2,5 @@ AUX config-implicit.patch 413 BLAKE2B ecb45d5d2b84d60a8df8cfe90b73725114f36c99d3 AUX gcc12.patch 904 BLAKE2B d71bd4c721f2720a54254bba39a5683c8e9945da31eb879f421f4d24c198334a3ec2a8eca3059a21152adec825e620f93398ba2bb49f503e233af653f8bb0e52 SHA512 4dcb8894ba19fd5fa03d5dcbc2f23933d5909cf4f1a325569020ad2d20ccdc7fb0e56fdb81d2856997dba1665f15cc591fd74ca1086770423c206cb3871618fa AUX musl.patch 632 BLAKE2B fcaff5d665639ee365d51171024b98f58a431668dc36e829267ca7773b53b0efd1557f3e2366110685d673e2140e15855bee4220c6306a06d9ff1358bf6cbfd2 SHA512 fb9515de16bfa621fbb2f83a446b976ea8c123f779c2955a8740234310fdca66e1ea005d1c5a643b785ecf3797f658eec1a96b673b3cb534a55f30b182444a72 DIST oprofile-1.4.0.tar.gz 1557625 BLAKE2B fe1a725b713da0e06d3876c52f001163965c1b0dd8ccbb271ef6924525ac6ca342d55172c06cc21681b441c744780d5cb523be08562952c5916005ec67734221 SHA512 44c0ae55d20d623ea8b4245bfe3e208813dbb8778d7e320378ffe70538ef6af1a6ddaf5d110e29751c216879543f13121dd71cb320023205622b3f0cd6b157df -EBUILD oprofile-1.4.0.ebuild 2111 BLAKE2B 6f5b1440b563bf11247519cbc21a77193e234446e74ee32ab9073a8584f0a99c261fb1fa0986d45009805f20e22a604e58bfe24d109317972da543a37e052d7a SHA512 094f09e938515c700a66b2643646e3b8557dfd368aac3636fc70285621379a9adf3397fbfa2cbe1a7a9c8953dedea7c775507b689be4280c779c1e45224f7972 +EBUILD oprofile-1.4.0-r1.ebuild 2184 BLAKE2B a397e60e29ebd956bf12a9355267639c0170b6ff67867acdd9bd9f0b1c4aa6d646e8d783719deae0c64fa64c502d14ebcade7d67483f82200f1a3d9331354e07 SHA512 1967f149bcdde01d90ccfc9310f9dbd5d980f626644a683b4859ad69860942a08e38d8f66707c51716caec93a1e90e73bdfca399b79c9db47aea1e9a58838484 MISC metadata.xml 336 BLAKE2B f5e9d50cb4e6f284d64fbda76a3145a85f027010edf70534aec1eb64d674b62dab8fedbac52f62c6d08efaf085c17891e92c34c3e9ba5fbdfa91774ac8f02735 SHA512 ff258de478d2b98e8906ec036bc9cfa13907cb2c2dc7d4b70d1b8cc008510741fb2780b813b7c203ca86a8df89e4bd2bf22a26d4f5732c8dc49cb5f51cb5d0d8 diff --git a/dev-util/oprofile/oprofile-1.4.0-r1.ebuild b/dev-util/oprofile/oprofile-1.4.0-r1.ebuild new file mode 100644 index 000000000000..44788d7acaae --- /dev/null +++ b/dev-util/oprofile/oprofile-1.4.0-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools java-pkg-opt-2 linux-info + +DESCRIPTION="A transparent low-overhead system-wide profiler" +HOMEPAGE="https://oprofile.sourceforge.io/news/" +SRC_URI="https://downloads.sourceforge.net/project/oprofile/oprofile/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86" +IUSE="apidoc java pch static-libs" + +BDEPEND=" + apidoc? ( app-text/doxygen[dot] ) +" +CDEPEND=" + >=dev-libs/popt-1.7-r1 + sys-libs/binutils-libs:= + elibc_glibc? ( >=sys-libs/glibc-2.3.2-r1 ) + ppc64? ( dev-libs/libpfm ) +" +DEPEND="${CDEPEND} + >=sys-kernel/linux-headers-2.6.31 + java? ( >=virtual/jdk-1.8:* ) +" +RDEPEND="${CDEPEND} + acct-user/oprofile + acct-group/oprofile + java? ( >=virtual/jre-1.8:* ) +" + +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 + + use java && java-pkg-opt-2_pkg_setup +} + +src_prepare() { + eapply "${FILESDIR}/musl.patch" + eapply "${FILESDIR}/gcc12.patch" + eapply "${FILESDIR}/config-implicit.patch" + # bug 723092 + sed -i 's/==/=/g' configure.ac || die + + java-pkg-opt-2_src_prepare + eautoreconf +} + +src_configure() { + local jh="" + use java && jh="$(java-config -O)" + econf \ + --disable-werror \ + $(use_enable pch) \ + $(use_with java java "${jh}") +} + +src_compile() { + default + use apidoc && emake -C doc/srcdoc +} + +src_install() { + emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install + use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}/*.{a,la} + use apidoc && dodoc -r doc/srcdoc/html + + 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 +} diff --git a/dev-util/oprofile/oprofile-1.4.0.ebuild b/dev-util/oprofile/oprofile-1.4.0.ebuild deleted file mode 100644 index e4667ded8841..000000000000 --- a/dev-util/oprofile/oprofile-1.4.0.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit autotools java-pkg-opt-2 linux-info - -DESCRIPTION="A transparent low-overhead system-wide profiler" -HOMEPAGE="http://oprofile.sourceforge.net" -SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~sparc x86" -IUSE="apidoc java pch static-libs" - -BDEPEND=" - apidoc? ( app-text/doxygen[dot] ) - java? ( >=virtual/jdk-1.8:= ) -" -CDEPEND=" - >=dev-libs/popt-1.7-r1 - sys-libs/binutils-libs:= - elibc_glibc? ( >=sys-libs/glibc-2.3.2-r1 ) - ppc64? ( dev-libs/libpfm ) -" -DEPEND="${CDEPEND} - >=sys-kernel/linux-headers-2.6.31 -" -RDEPEND="${CDEPEND} - acct-user/oprofile - acct-group/oprofile -" - -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 - - use java && java-pkg_init -} - -src_prepare() { - eapply "${FILESDIR}/musl.patch" - eapply "${FILESDIR}/gcc12.patch" - eapply "${FILESDIR}/config-implicit.patch" - # bug 723092 - sed -i 's/==/=/g' configure.ac || die - - java-pkg-opt-2_src_prepare - eautoreconf -} - -src_configure() { - local jh="" - use java && jh="$(java-config -O)" - econf \ - --disable-werror \ - $(use_enable pch) \ - $(use_with java java "${jh}") -} - -src_compile() { - default - use apidoc && emake -C doc/srcdoc -} - -src_install() { - emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install - use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}/*.{a,la} - use apidoc && dodoc -r doc/srcdoc/html - - 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 -} -- cgit v1.2.3