diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /sys-process/tiptop | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'sys-process/tiptop')
6 files changed, 139 insertions, 0 deletions
diff --git a/sys-process/tiptop/Manifest b/sys-process/tiptop/Manifest new file mode 100644 index 000000000000..7c501b9d66e9 --- /dev/null +++ b/sys-process/tiptop/Manifest @@ -0,0 +1,2 @@ +DIST tiptop-2.3.1_p4_p20221211.tar.gz 931179 BLAKE2B bc9bccf2c8146c60200304975cb900b455c5f2c0c410ff010fc785709ed468fe3c01b8ac8f4809a1f067cc67fb7a5a6d33739de1b650f447ebe90a9b21a032ee SHA512 c848513a1ccd8c367aa1edd91cfe6f27245710d6b32ff6e1f81a6694c8e21cb41d53e0bc00a18eadf0877600fa29b1defbd0db6165591a8d34887d11ca1af7f2 +DIST tiptop_2.3.1-4.debian.tar.xz 3716 BLAKE2B 14e5192888b99681f8114fd9abcafb4c2fc00b1923560ea93ba4c714dc1164731cdf16d42d73946413f743fe48b6d27151804f5f6e65cab7afa8834f54c683e1 SHA512 45d34abc16327bc443387c941c0477b2c491510c7cda1da8a7f7a704c8b891ef07c96122be46c501e55e471df5bcfd50919f586a67d8b91b764d3bdefa599872 diff --git a/sys-process/tiptop/files/tiptop-2.3.1-advise-user-to-run-as-root-when-paranoid_level-3.patch b/sys-process/tiptop/files/tiptop-2.3.1-advise-user-to-run-as-root-when-paranoid_level-3.patch new file mode 100644 index 000000000000..4607f4f8bbe5 --- /dev/null +++ b/sys-process/tiptop/files/tiptop-2.3.1-advise-user-to-run-as-root-when-paranoid_level-3.patch @@ -0,0 +1,46 @@ +Subject: [PATCH] advice user to run as root when paranoid_level==3 + +Corresponds with Debian patch 0003_Report_root_needed +https://sources.debian.org/patches/tiptop/2.3.1-4/0003-Report_root_needed.patch/ + +Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> +--- a/src/requisite.c ++++ b/src/requisite.c +@@ -17,13 +17,34 @@ + #include "pmc.h" + #include "requisite.h" + ++#define PARANOID1 "/proc/sys/kernel/perf_counter_paranoid" ++#define PARANOID2 "/proc/sys/kernel/perf_event_paranoid" + + void check() + { + int fd, cpu, grp, flags, pid; ++ FILE* paranoid; ++ int paranoia_level = 999; + struct utsname os; + struct STRUCT_NAME events = {0, }; ++ int n; + ++ paranoid = fopen(PARANOID1, "r"); ++ if (!paranoid) ++ paranoid = fopen(PARANOID2, "r"); ++ ++ if (!paranoid) { ++ fprintf(stderr, "System does not support performance events.\n"); ++ fprintf(stderr, "File '/proc/sys/kernel/perf_*_paranoid' is missing.\n"); ++ exit(EXIT_FAILURE); ++ } ++ n = fscanf(paranoid, "%d", ¶noia_level); ++ if (n != 1) { ++ fprintf(stderr, "Could not read '/proc/sys/kernel/perf_*_paranoid'.\n"); ++ fprintf(stderr, "Trying to proceed anyway...\n"); ++ } ++ ++ fclose(paranoid); + events.disabled = 0; + events.exclude_hv = 1; + events.exclude_kernel = 1; +-- +2.38.1 + diff --git a/sys-process/tiptop/files/tiptop-2.3.1-implicit-function-declaration.patch b/sys-process/tiptop/files/tiptop-2.3.1-implicit-function-declaration.patch new file mode 100644 index 000000000000..b6e3abdd727b --- /dev/null +++ b/sys-process/tiptop/files/tiptop-2.3.1-implicit-function-declaration.patch @@ -0,0 +1,35 @@ +Date: Sun, 11 Dec 2022 22:11:42 +0100 +Subject: [PATCH] Fix build for sys-devel/reflex + +When LEX=reflex is used, this compiling calc.lex fails with a +implicit function declaration error when +Werror=implicit-function-declaration. (Like with clang16) + +Bug: https://bugs.gentoo.org/884361 +PR to upstream this: https://github.com/FeCastle/tiptop/pull/9 + +Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> + +Clang16 will not allow implicit function declarations by default +--- a/src/calc.lex ++++ b/src/calc.lex +@@ -11,6 +11,7 @@ + %{ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + + #include "formula-parser.h" + #include "y.tab.h" +--- a/src/process.h ++++ b/src/process.h +@@ -95,4 +95,6 @@ void reset_values(const struct process_list* const); + + void update_name_cmdline(int pid, int name_only); + ++void handle_error(int retval); ++ + #endif /* _PROCESS_H */ +-- +2.38.1 + diff --git a/sys-process/tiptop/files/tiptop-2.3.1-tinfo.patch b/sys-process/tiptop/files/tiptop-2.3.1-tinfo.patch new file mode 100644 index 000000000000..0f6c3c740a1e --- /dev/null +++ b/sys-process/tiptop/files/tiptop-2.3.1-tinfo.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/618124 + +--- tiptop-2.3.1/configure.ac ++++ tiptop-2.3.1/configure.ac +@@ -24,6 +24,7 @@ + AC_DEFINE([HAVE_LIBCURSES], [1], [Define to 1 if you have the `curses' library (-lcurses).]) + LIBS="-lcurses $LIBS"], + [have_curses=no]) ++AC_CHECK_LIB([tinfo], [keypad], LIBS="-ltinfo $LIBS") + fi + + if test ! x$disable_libxml2 = xno; then # check only if not disabled diff --git a/sys-process/tiptop/metadata.xml b/sys-process/tiptop/metadata.xml new file mode 100644 index 000000000000..5f33304011d5 --- /dev/null +++ b/sys-process/tiptop/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sys-process/tiptop/tiptop-2.3.1_p4_p20221211-r1.ebuild b/sys-process/tiptop/tiptop-2.3.1_p4_p20221211-r1.ebuild new file mode 100644 index 000000000000..f563621c5bc9 --- /dev/null +++ b/sys-process/tiptop/tiptop-2.3.1_p4_p20221211-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +GIT_COMMIT="529886d445ec32febad14246245372a8f244b3eb" + +DESCRIPTION="top for performance counters" +HOMEPAGE="https://github.com/FeCastle/tiptop" +SRC_URI="https://github.com/FeCastle/tiptop/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" http://deb.debian.org/debian/pool/main/t/tiptop/tiptop_$(ver_cut 1-3)-$(ver_cut 5).debian.tar.xz" +S="${WORKDIR}/${PN}-${GIT_COMMIT}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=" + dev-libs/libxml2:2= + dev-libs/papi + sys-libs/ncurses:= +" +DEPEND="${RDEPEND}" +# drop when patch$ tiptop-2.3.1-implicit-function-declaration.patch is merged upstream +BDEPEND="app-alternatives/lex" + +PATCHES=( + "${WORKDIR}"/debian/patches + "${FILESDIR}"/${PN}-2.3.1-tinfo.patch #618124 + "${FILESDIR}"/${PN}-2.3.1-advise-user-to-run-as-root-when-paranoid_level-3.patch + "${FILESDIR}"/${PN}-2.3.1-implicit-function-declaration.patch +) + +src_prepare() { + default + eautoreconf #618124 +} |
