diff options
author | Yixun Lan <dlan@gentoo.org> | 2024-01-24 09:29:45 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2024-05-30 01:35:41 +0000 |
commit | 9219b2f0c7714280769956b831dc7807b279e6cc (patch) | |
tree | 848ed66d72349cd94e233fe3c1901b5d255a0287 /dev-util/kernelshark | |
parent | dev-libs/libtracefs: add 1.8.0 (diff) | |
download | gentoo-9219b2f0c7714280769956b831dc7807b279e6cc.tar.gz gentoo-9219b2f0c7714280769956b831dc7807b279e6cc.tar.bz2 gentoo-9219b2f0c7714280769956b831dc7807b279e6cc.zip |
dev-util/kernelshark: add 2.3.1
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-util/kernelshark')
-rw-r--r-- | dev-util/kernelshark/Manifest | 1 | ||||
-rw-r--r-- | dev-util/kernelshark/files/kernelshark-2.3.1-algorithm.patch | 12 | ||||
-rw-r--r-- | dev-util/kernelshark/kernelshark-2.3.1.ebuild | 59 |
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-util/kernelshark/Manifest b/dev-util/kernelshark/Manifest index f3b6bab4411a..5db8967c1806 100644 --- a/dev-util/kernelshark/Manifest +++ b/dev-util/kernelshark/Manifest @@ -1,2 +1,3 @@ DIST kernelshark-2.2.0.tar.gz 4100601 BLAKE2B e68275b91a5a629a868e95c9b5f807c46e445e9d6e131093eb38b5a350af47dec5da9d4ec24a4b60a90ac6b3c70438236f6cd7d80fabccf420bae1603fc13338 SHA512 a2d2d2c9494189322ddb45eabe3aded8db9c72eca3d5afefc8d97b4b5011e9f93a3324aeabe19bc1917c3dbf67c75dcefbda831a2e82722bde5599f01e88c047 DIST kernelshark-2.2.1.tar.gz 4100400 BLAKE2B a11e61660cbf98bbbb7c5060014b4de8e05f6957f2eb5519c3a109d91e5297a4532af3c958471ab181ddc8cbb061d1a493b3f40b71efb3abe3d47640a4ab87cc SHA512 1e0b17de02b82a20f6f78ebbfe61c63550947c3275e1262ae6edfd4675f7d1f976955ed37b14f2a214675a83e43135e605c244b4a5f920ebcdeaabcda7510d10 +DIST kernelshark-2.3.1.tar.gz 4100178 BLAKE2B 818448c3d2e01412e12fc3406b13ffd4d6ab7d442aef7867048913996edbc7f64b2c2c9e88810d6c0bd9e8a6ee9726369ab097d2164ec9966660f098e123c702 SHA512 ba5e7ebc713d296bef211174869445ccb3dffb8a96d0634776bd28c183487225e7c8082c8be5957795973833d6ac67851fb46f75cf68aae66eb3e5e06c081f5f diff --git a/dev-util/kernelshark/files/kernelshark-2.3.1-algorithm.patch b/dev-util/kernelshark/files/kernelshark-2.3.1-algorithm.patch new file mode 100644 index 000000000000..8a007bb02bc2 --- /dev/null +++ b/dev-util/kernelshark/files/kernelshark-2.3.1-algorithm.patch @@ -0,0 +1,12 @@ +diff --git a/src/plugins/LatencyPlot.cpp b/src/plugins/LatencyPlot.cpp +index d412917..3597f5d 100644 +--- a/src/plugins/LatencyPlot.cpp ++++ b/src/plugins/LatencyPlot.cpp +@@ -13,6 +13,7 @@ + #include <math.h> + + // C++ ++#include <algorithm> + #include <unordered_map> + #include <iostream> + diff --git a/dev-util/kernelshark/kernelshark-2.3.1.ebuild b/dev-util/kernelshark/kernelshark-2.3.1.ebuild new file mode 100644 index 000000000000..dccf255b4d8c --- /dev/null +++ b/dev-util/kernelshark/kernelshark-2.3.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic cmake + +DESCRIPTION="Graphical reader for trace-cmd output" +HOMEPAGE="https://kernelshark.org/" + +if [[ ${PV} =~ [9]{4,} ]]; then + EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/" + inherit git-r3 + S="${WORKDIR}/${P}/kernel-shark" + +else + MY_P="kernel-shark-${PN}-v${PV}" + SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/${MY_P}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +IUSE="custom-optimization doc" + +DEPEND=" + || ( dev-libs/libtracecmd <dev-util/trace-cmd-3.2 ) + dev-libs/json-c:= + dev-qt/qtbase:6=[network,widgets] + dev-qt/qtscxml:6= + >=media-libs/freeglut-3.0.0:= + x11-libs/libXmu:= + x11-libs/libXi:= + >=dev-libs/libtracefs-1.3 + >=dev-libs/libtraceevent-1.5 + media-fonts/freefont +" +RDEPEND="${DEPEND}" +BDEPEND=" + doc? ( + media-gfx/graphviz + app-text/doxygen + )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.0-no-ldconfig.patch + "${FILESDIR}"/${PN}-2.3.1-algorithm.patch +) + +src_configure() { + local mycmakeargs=( + -D_INSTALL_PREFIX="${EPREFIX}/usr" + -D_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -D_DOXYGEN_DOC=$(usex doc) + ) + use custom-optimization || replace-flags -O? -O3 + cmake_src_configure +} |