mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/trace-cmd: new package
This commit is contained in:
parent
9da277bcda
commit
3e6745c377
@ -0,0 +1,28 @@
|
|||||||
|
From 61cf0eafa27e57206f3b55d8498f2cc0eb861cd9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fiona Klute <fiona.klute@gmx.de>
|
||||||
|
Date: Sun, 11 Aug 2024 15:46:36 +0200
|
||||||
|
Subject: [PATCH] trace-cmd: utest: include libgen.h for POSIX basename()
|
||||||
|
|
||||||
|
This fixes building utest/trace-utest.c with musl (e.g. on Alpine),
|
||||||
|
which doesn't provide the GNU version.
|
||||||
|
|
||||||
|
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
|
||||||
|
---
|
||||||
|
utest/trace-utest.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/utest/trace-utest.c b/utest/trace-utest.c
|
||||||
|
index 051a0285..6bb190ee 100644
|
||||||
|
--- a/utest/trace-utest.c
|
||||||
|
+++ b/utest/trace-utest.c
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <getopt.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
+#include <libgen.h>
|
||||||
|
|
||||||
|
#include <CUnit/CUnit.h>
|
||||||
|
#include <CUnit/Basic.h>
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
49
testing/trace-cmd/APKBUILD
Normal file
49
testing/trace-cmd/APKBUILD
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# Maintainer: Fiona Klute <fiona.klute@gmx.de>
|
||||||
|
pkgname=trace-cmd
|
||||||
|
pkgver=3.3
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Tool to interact with Ftrace Linux kernel tracer"
|
||||||
|
url="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/"
|
||||||
|
arch="all"
|
||||||
|
license="GPL-2.0-only AND LGPL-2.1-only"
|
||||||
|
makedepends="
|
||||||
|
asciidoc
|
||||||
|
audit-dev
|
||||||
|
gcc
|
||||||
|
libtraceevent-dev
|
||||||
|
libtracefs-dev
|
||||||
|
meson
|
||||||
|
pkgconf
|
||||||
|
source-highlight
|
||||||
|
xmlto
|
||||||
|
zstd-dev
|
||||||
|
"
|
||||||
|
subpackages="
|
||||||
|
$pkgname-doc
|
||||||
|
$pkgname-bash-completion
|
||||||
|
"
|
||||||
|
source="
|
||||||
|
https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-v$pkgver.tar.gz
|
||||||
|
0001-trace-cmd-utest-include-libgen.h-for-POSIX-basename.patch
|
||||||
|
"
|
||||||
|
# trace-cmd tests would need to run as root, because they try to run
|
||||||
|
# actual traces and fail if they can't
|
||||||
|
options="
|
||||||
|
!check
|
||||||
|
"
|
||||||
|
builddir="$srcdir/$pkgname-v$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
abuild-meson -Db_colorout=auto . output
|
||||||
|
meson compile -C output
|
||||||
|
meson compile -C output docs
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
0857bea0bceb196bdb44164eefb8a05384c640f5a4d569dcbf26d80302b21bf17880eaba07c3da81c8812abe0f451219c26ba02b7bf9103eb1d0e88f1da84703 trace-cmd-v3.3.tar.gz
|
||||||
|
d0ceb422b4d108f42666c276d20e243c8f73cccf95e8e9cbd942e73cc122d5c514ec31544014a3d6f1d1c26d1e773e96d0f68985d271c2ca95fda3c218ded05f 0001-trace-cmd-utest-include-libgen.h-for-POSIX-basename.patch
|
||||||
|
"
|
Loading…
Reference in New Issue
Block a user