summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-01-02 21:45:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:28 +0000
commit9f40dba1fcbd5dcad733117d4fd562cb26e35cc6 (patch)
tree989bb7ca942e86cba2db344bbaa3a0afde1c578a
parent245885063e6b2aa1c66d32458217546892768894 (diff)
downloadpoky-9f40dba1fcbd5dcad733117d4fd562cb26e35cc6.tar.gz
babeltrace: Add missing header for MAXNAMLEN define
Fix bug exposed on musl (From OE-Core rev: cc4f9860332300925d93e2607d675509fc002be4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/lttng/babeltrace/0001-lttng-live-Include-sys-param.h-for-MAXNAMLEN-definti.patch29
-rw-r--r--meta/recipes-kernel/lttng/babeltrace_1.3.1.bb5
2 files changed, 32 insertions, 2 deletions
diff --git a/meta/recipes-kernel/lttng/babeltrace/0001-lttng-live-Include-sys-param.h-for-MAXNAMLEN-definti.patch b/meta/recipes-kernel/lttng/babeltrace/0001-lttng-live-Include-sys-param.h-for-MAXNAMLEN-definti.patch
new file mode 100644
index 0000000000..eb16cd1d2e
--- /dev/null
+++ b/meta/recipes-kernel/lttng/babeltrace/0001-lttng-live-Include-sys-param.h-for-MAXNAMLEN-definti.patch
@@ -0,0 +1,29 @@
1From 8331b87845cafdda40e59a682f2ca8120ed0c472 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 31 Dec 2015 08:17:40 +0000
4Subject: [PATCH] lttng-live: Include sys/param.h for MAXNAMLEN defintion
5
6exposed on musl based systems
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10Upstream-Status: pending
11
12 formats/lttng-live/lttng-live.h | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/formats/lttng-live/lttng-live.h b/formats/lttng-live/lttng-live.h
16index 4ab641d..808ed2b 100644
17--- a/formats/lttng-live/lttng-live.h
18+++ b/formats/lttng-live/lttng-live.h
19@@ -25,6 +25,7 @@
20 */
21
22 #include <stdint.h>
23+#include <sys/param.h>
24 #include "lttng-viewer-abi.h"
25
26 #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344
27--
282.6.4
29
diff --git a/meta/recipes-kernel/lttng/babeltrace_1.3.1.bb b/meta/recipes-kernel/lttng/babeltrace_1.3.1.bb
index 36345e3c10..176602632b 100644
--- a/meta/recipes-kernel/lttng/babeltrace_1.3.1.bb
+++ b/meta/recipes-kernel/lttng/babeltrace_1.3.1.bb
@@ -6,14 +6,15 @@ BUGTRACKER = "https://bugs.lttng.org/projects/babeltrace"
6LICENSE = "MIT & GPLv2" 6LICENSE = "MIT & GPLv2"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=76ba15dd76a248e1dd526bca0e2125fa" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=76ba15dd76a248e1dd526bca0e2125fa"
8 8
9inherit autotools pkgconfig
10
11DEPENDS = "glib-2.0 util-linux popt bison-native flex-native" 9DEPENDS = "glib-2.0 util-linux popt bison-native flex-native"
12 10
11inherit autotools pkgconfig
12
13SRCREV = "6e2b9096c77138593097335b9b27202d98918089" 13SRCREV = "6e2b9096c77138593097335b9b27202d98918089"
14 14
15SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.3 \ 15SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.3 \
16 file://0001-Fix-invalid-pointer-free-with-trace-collection.patch \ 16 file://0001-Fix-invalid-pointer-free-with-trace-collection.patch \
17 file://0001-lttng-live-Include-sys-param.h-for-MAXNAMLEN-definti.patch \
17" 18"
18 19
19S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"