summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-12-21 09:55:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-22 23:05:50 +0000
commit7235079983af24c432fd9324df12f292089af1b0 (patch)
tree3ba0b113530de0852800cf9d9ae1d537ac96ed61 /meta/recipes-kernel
parente97b449532fd942ea55f1089f471f38ebac33099 (diff)
downloadpoky-7235079983af24c432fd9324df12f292089af1b0.tar.gz
lttng-tools: Fix build with largefile support
(From OE-Core rev: ec0bfa21e2bae82b0218f75c0010be64dcdd99d4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools/0001-compat-Define-off64_t-as-off_t-on-linux.patch35
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools_2.13.8.bb1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-compat-Define-off64_t-as-off_t-on-linux.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-compat-Define-off64_t-as-off_t-on-linux.patch
new file mode 100644
index 0000000000..e3d421f730
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-tools/0001-compat-Define-off64_t-as-off_t-on-linux.patch
@@ -0,0 +1,35 @@
1From cc3e1abaa1e7ad85c6a299fe30a36e0cb732e1c8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 15 Dec 2022 14:51:20 -0800
4Subject: [PATCH] compat: Define off64_t as off_t on linux
5
6This helps compile with latest musl, where off64_t is not defined
7unless _LARGEFILE64_SOURCE is defined, on glibc _LARGEFILE64_SOURCE is
8defined if _GNU_SOURCE is defined, so the problem is only seen with musl
9
10Upstream-Status: Submitted [https://github.com/lttng/lttng-tools/pull/164]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/common/compat/fcntl.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h
17index 5e566e50..d19a6ece 100644
18--- a/src/common/compat/fcntl.h
19+++ b/src/common/compat/fcntl.h
20@@ -7,7 +7,6 @@
21
22 #ifndef _COMPAT_FCNTL_H
23 #define _COMPAT_FCNTL_H
24-
25 #include <fcntl.h>
26 #include <sys/types.h>
27
28@@ -22,6 +21,7 @@ typedef off64_t loff_t;
29 #endif
30
31 #ifdef __linux__
32+typedef off_t off64_t;
33 extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
34 unsigned int flags);
35 #define lttng_sync_file_range(fd, offset, nbytes, flags) \
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.13.8.bb b/meta/recipes-kernel/lttng/lttng-tools_2.13.8.bb
index a814eb79f9..e64eeba635 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.13.8.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.13.8.bb
@@ -37,6 +37,7 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
37 file://lttng-sessiond.service \ 37 file://lttng-sessiond.service \
38 file://determinism.patch \ 38 file://determinism.patch \
39 file://disable-tests.patch \ 39 file://disable-tests.patch \
40 file://0001-compat-Define-off64_t-as-off_t-on-linux.patch \
40 " 41 "
41 42
42SRC_URI[sha256sum] = "b1e959579b260790930b20f3c7aa7cefb8a40e0de80d4a777c2bf78c6b353dc1" 43SRC_URI[sha256sum] = "b1e959579b260790930b20f3c7aa7cefb8a40e0de80d4a777c2bf78c6b353dc1"