summaryrefslogtreecommitdiff
path: root/dev-libs/libtracefs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libtracefs')
-rw-r--r--dev-libs/libtracefs/Manifest3
-rw-r--r--dev-libs/libtracefs/files/libtracefs-1.3.1-musl-pthread.patch16
-rw-r--r--dev-libs/libtracefs/libtracefs-1.3.1.ebuild4
3 files changed, 22 insertions, 1 deletions
diff --git a/dev-libs/libtracefs/Manifest b/dev-libs/libtracefs/Manifest
index 4b2f967e9634..9f9d4a5132c2 100644
--- a/dev-libs/libtracefs/Manifest
+++ b/dev-libs/libtracefs/Manifest
@@ -1,3 +1,4 @@
+AUX libtracefs-1.3.1-musl-pthread.patch 505 BLAKE2B 34d07b0d7527d245f459bfb0a8339da56f7deec1a064c74a8419375dcec9b0c46ec7348603689846a60c0afaccc02ee4956cddaff42910d493c44fde343e1a04 SHA512 2d097f71c08625b4d0c49388537a73c06cea7047c34c04bba6bf5053308c49e8cced7da8cb9b173c00b18160de7404ff9f8cbdc5782ec6ef9c2a89b3d4f76790
DIST libtracefs-1.3.1.tar.gz 175453 BLAKE2B d9801c9f50513a8b2d2de57f768aec69c3e47b4c41ba1e887b28465d3a0a6bf10e5d2c60f81615615176bdb65e10ef7e2b7dee5cbb214705cc69e55bb923231c SHA512 1d8423ff1033a4ab601dd8e9fa4a801c27425234505070733641c8c9a4dd382cc6563d3fde89958f18e0bc95e2cbbdf65e69a2935fe208d5de9fd3ac26374ec1
-EBUILD libtracefs-1.3.1.ebuild 1170 BLAKE2B 02aedaf11d51bf049581f9b0dc095730b81c5623ced89f5024f563934d57279e86c1a8db452bac813c703f969a8352058160bf68c928f502b7b1a316ec698abc SHA512 84a2c956168ccf0f0a43c165184163246c31b7fa6ed06f12570a55284710c75032104b4eb1ac3de5c7a27673a408b07d70055886ef5a63ea4be7f445193ddea3
+EBUILD libtracefs-1.3.1.ebuild 1229 BLAKE2B 08d405c80c0fed9ef970dedfe862e94e2671ee95252a2445c78ae5ef63f12ea0fa19b3b4a60a8b9a3e8d6a43e6908b9eeb7832be3c7b3fcded34845e884adf40 SHA512 809b4b115b64c336a6a1d7190b45f6632e0a8439cac5451c8de41b8662231c564ae100b5870cfaa538f4a35ad383ee3a2a285cf3fe13f4321a3016d69d6e7a11
MISC metadata.xml 256 BLAKE2B e4fb7b4732dc88ff20c10bd7e5425beca8310c14d3934046ad6fcd99d8f401ea8610a6df5444d094f5bae4e5120cb7aedc15b45f0862b73f83bd7d5e54617337 SHA512 d37651285ce883fc1c73b41e09e66788d47b2451a4f96ac4237e6bef59643b3171a7a24900f204f0ca1accdbd5961d74e4bd7c8c41e1d29492874e4cbc737611
diff --git a/dev-libs/libtracefs/files/libtracefs-1.3.1-musl-pthread.patch b/dev-libs/libtracefs/files/libtracefs-1.3.1-musl-pthread.patch
new file mode 100644
index 000000000000..0f909111150d
--- /dev/null
+++ b/dev-libs/libtracefs/files/libtracefs-1.3.1-musl-pthread.patch
@@ -0,0 +1,16 @@
+# On musl it is necessary to include pthread header else the compiler cannot
+# identify pthread_mutex_t as a known type
+# Closes: https://bugs.gentoo.org/855893
+diff --git a/include/tracefs-local.h b/include/tracefs-local.h
+index 926fd02..779e853 100644
+--- a/include/tracefs-local.h
++++ b/include/tracefs-local.h
+@@ -6,6 +6,8 @@
+ #ifndef _TRACE_FS_LOCAL_H
+ #define _TRACE_FS_LOCAL_H
+
++#include <pthread.h>
++
+ #define __hidden __attribute__((visibility ("hidden")))
+ #define __weak __attribute__((weak))
+
diff --git a/dev-libs/libtracefs/libtracefs-1.3.1.ebuild b/dev-libs/libtracefs/libtracefs-1.3.1.ebuild
index ae5b3a5331b9..d5ffcefc4d9b 100644
--- a/dev-libs/libtracefs/libtracefs-1.3.1.ebuild
+++ b/dev-libs/libtracefs/libtracefs-1.3.1.ebuild
@@ -28,6 +28,10 @@ BDEPEND="
doc? ( app-text/xmlto app-text/asciidoc )
"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.1-musl-pthread.patch
+)
+
src_configure() {
EMAKE_FLAGS=(
"prefix=${EPREFIX}/usr"