summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-12-21 09:55:43 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-22 23:05:50 +0000
commite842e4fdbd05f9a0d9439c98ed32277d60119e3f (patch)
tree3b796f9e8ecb1ef6c0577cb419bf0d7e0a9389aa /meta
parent31d920465a0e166b631964d309eb4ff1ae9b1c9d (diff)
downloadpoky-e842e4fdbd05f9a0d9439c98ed32277d60119e3f.tar.gz
libbsd: Fix build with largefile support
(From OE-Core rev: 7cb6242f82cc5ba7c1960045282fab5486fca05b) 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')
-rw-r--r--meta/recipes-support/libbsd/libbsd/0001-funopen-Replace-off64_t-with-off_t-in-funopen_seek.patch34
-rw-r--r--meta/recipes-support/libbsd/libbsd_0.11.7.bb4
2 files changed, 37 insertions, 1 deletions
diff --git a/meta/recipes-support/libbsd/libbsd/0001-funopen-Replace-off64_t-with-off_t-in-funopen_seek.patch b/meta/recipes-support/libbsd/libbsd/0001-funopen-Replace-off64_t-with-off_t-in-funopen_seek.patch
new file mode 100644
index 0000000000..45ecef041b
--- /dev/null
+++ b/meta/recipes-support/libbsd/libbsd/0001-funopen-Replace-off64_t-with-off_t-in-funopen_seek.patch
@@ -0,0 +1,34 @@
1From 9c4e5f8984e46344c9e150764b8aa0a7a70b6cb5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 15 Dec 2022 09:02:22 -0800
4Subject: [PATCH] funopen: Replace off64_t with off_t in funopen_seek
5
6AC_SYS_LARGEFILE in configure.ac is setting needed defines to make
764bit off_t on relevant platforms.
8
9Fixes build on musl
10
11| ../../../../../../../../workspace/sources/libbsd/src/funopen.c:68:28: error: unknown type name 'off64_t'; did you mean 'off_t'?
12| funopen_seek(void *cookie, off64_t *offset, int whence)
13| ^~~~~~~
14| off_t
15
16Upstream-Status: Submitted [https://gitlab.freedesktop.org/libbsd/libbsd/-/merge_requests/24]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 src/funopen.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/funopen.c b/src/funopen.c
23index 1e6f43a..a9b40e8 100644
24--- a/src/funopen.c
25+++ b/src/funopen.c
26@@ -65,7 +65,7 @@ funopen_write(void *cookie, const char *buf, size_t size)
27 }
28
29 static int
30-funopen_seek(void *cookie, off64_t *offset, int whence)
31+funopen_seek(void *cookie, off_t *offset, int whence)
32 {
33 struct funopen_cookie *cookiewrap = cookie;
34 off_t soff = *offset;
diff --git a/meta/recipes-support/libbsd/libbsd_0.11.7.bb b/meta/recipes-support/libbsd/libbsd_0.11.7.bb
index 7a1deed1f6..a9f7a00469 100644
--- a/meta/recipes-support/libbsd/libbsd_0.11.7.bb
+++ b/meta/recipes-support/libbsd/libbsd_0.11.7.bb
@@ -32,7 +32,9 @@ LICENSE:${PN} = "BSD-3-Clause & ISC & PD"
32LIC_FILES_CHKSUM = "file://COPYING;md5=75e85c5a558f86d10fbd5abc567ea5e6" 32LIC_FILES_CHKSUM = "file://COPYING;md5=75e85c5a558f86d10fbd5abc567ea5e6"
33SECTION = "libs" 33SECTION = "libs"
34 34
35SRC_URI = "https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz" 35SRC_URI = "https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
36 file://0001-funopen-Replace-off64_t-with-off_t-in-funopen_seek.patch \
37 "
36 38
37SRC_URI[sha256sum] = "9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261" 39SRC_URI[sha256sum] = "9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261"
38 40