mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: libtracefs-1.6.1
This commit is contained in:
parent
94e9bc70a2
commit
66eebb462a
5 changed files with 71 additions and 0 deletions
|
@ -4203,3 +4203,4 @@ libabsl_time_zone.so.2206.0.0 abseil-cpp-20220623.1_1
|
||||||
libabsl_spinlock_wait.so.2206.0.0 abseil-cpp-20220623.1_1
|
libabsl_spinlock_wait.so.2206.0.0 abseil-cpp-20220623.1_1
|
||||||
libairspyhf.so.0 libairspyhf-1.6.8_1
|
libairspyhf.so.0 libairspyhf-1.6.8_1
|
||||||
libtraceevent.so.1 libtraceevent-1.6.2_1
|
libtraceevent.so.1 libtraceevent-1.6.2_1
|
||||||
|
libtracefs.so.1 libtracefs-1.4.2_1
|
||||||
|
|
1
srcpkgs/libtracefs-devel
Symbolic link
1
srcpkgs/libtracefs-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libtracefs
|
10
srcpkgs/libtracefs/patches/musl-limits_h.patch
Normal file
10
srcpkgs/libtracefs/patches/musl-limits_h.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/utest/tracefs-utest.c
|
||||||
|
+++ b/utest/tracefs-utest.c
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
#include <libgen.h>
|
||||||
|
#include <kbuffer.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
+#include <limits.h>
|
||||||
|
|
||||||
|
#include <CUnit/CUnit.h>
|
||||||
|
#include <CUnit/Basic.h>
|
17
srcpkgs/libtracefs/patches/musl.patch
Normal file
17
srcpkgs/libtracefs/patches/musl.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
--- a/include/tracefs.h
|
||||||
|
+++ b/include/tracefs.h
|
||||||
|
@@ -10,6 +10,14 @@
|
||||||
|
#include <sched.h>
|
||||||
|
#include <event-parse.h>
|
||||||
|
|
||||||
|
+#ifndef _GNU_SOURCE
|
||||||
|
+#if !__GLIBC__
|
||||||
|
+/* See CPU_SET(3) */
|
||||||
|
+struct cpu_set_t;
|
||||||
|
+typedef struct cpu_set_t cpu_set_t;
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
char *tracefs_get_tracing_file(const char *name);
|
||||||
|
void tracefs_put_tracing_file(char *name);
|
||||||
|
|
42
srcpkgs/libtracefs/template
Normal file
42
srcpkgs/libtracefs/template
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Template file for 'libtracefs'
|
||||||
|
pkgname=libtracefs
|
||||||
|
version=1.6.1
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
make_build_args="libdir_relative=lib${XBPS_TARGET_WORDSIZE}"
|
||||||
|
make_build_target="all doc"
|
||||||
|
make_install_args="$make_build_args pkgconfig_dir=/usr/lib/pkgconfig"
|
||||||
|
make_install_target="install install_doc"
|
||||||
|
make_use_env=yes
|
||||||
|
hostmakedepends="asciidoc xmlto source-highlight pkg-config"
|
||||||
|
makedepends="libtraceevent-devel"
|
||||||
|
checkdepends="CUnit-devel"
|
||||||
|
short_desc="Linux kernel trace file system library"
|
||||||
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
license="GPL-2.0-only, LGPL-2.1-only"
|
||||||
|
homepage="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/"
|
||||||
|
distfiles="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-${version}.tar.gz"
|
||||||
|
checksum=215a5182ee7d5a813ff84d290bb8988aa4c04cc16bb837780f61b0f5bf7494ab
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
make ${makejobs} test
|
||||||
|
utest/trace-utest
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# manpage for sample program
|
||||||
|
rm ${DESTDIR}/usr/share/man/man1/sqlhist.1
|
||||||
|
}
|
||||||
|
|
||||||
|
libtracefs-devel_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/share/doc
|
||||||
|
vmove usr/share/man/man3
|
||||||
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.a"
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue