summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/liburing
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/liburing')
-rw-r--r--meta-oe/recipes-support/liburing/liburing/0001-test-Including-missing-string.h-for-memcpy.patch39
-rw-r--r--meta-oe/recipes-support/liburing/liburing_2.9.bb (renamed from meta-oe/recipes-support/liburing/liburing_2.5.bb)14
2 files changed, 49 insertions, 4 deletions
diff --git a/meta-oe/recipes-support/liburing/liburing/0001-test-Including-missing-string.h-for-memcpy.patch b/meta-oe/recipes-support/liburing/liburing/0001-test-Including-missing-string.h-for-memcpy.patch
new file mode 100644
index 0000000000..f744812a3f
--- /dev/null
+++ b/meta-oe/recipes-support/liburing/liburing/0001-test-Including-missing-string.h-for-memcpy.patch
@@ -0,0 +1,39 @@
1From c55874bc28f66d606527b940d4bd0f266bbaaa2c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 17 Feb 2025 11:51:19 -0800
4Subject: [PATCH] test: Including missing string.h for memcpy
5
6Fixes
7accept-test.c:39:2: error: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
8
9Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1351]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 test/232c93d07b74.c | 1 +
13 test/accept-test.c | 1 +
14 2 files changed, 2 insertions(+)
15
16diff --git a/test/232c93d07b74.c b/test/232c93d07b74.c
17index d3053b9..d5677d3 100644
18--- a/test/232c93d07b74.c
19+++ b/test/232c93d07b74.c
20@@ -10,6 +10,7 @@
21 #include <stdlib.h>
22 #include <stdint.h>
23 #include <assert.h>
24+#include <string.h>
25
26 #include <pthread.h>
27 #include <errno.h>
28diff --git a/test/accept-test.c b/test/accept-test.c
29index 99f6080..142b2de 100644
30--- a/test/accept-test.c
31+++ b/test/accept-test.c
32@@ -7,6 +7,7 @@
33 #include <sys/socket.h>
34 #include <sys/un.h>
35 #include <assert.h>
36+#include <string.h>
37 #include "liburing.h"
38 #include "helpers.h"
39
diff --git a/meta-oe/recipes-support/liburing/liburing_2.5.bb b/meta-oe/recipes-support/liburing/liburing_2.9.bb
index 440259ffbd..a645a8e4c4 100644
--- a/meta-oe/recipes-support/liburing/liburing_2.5.bb
+++ b/meta-oe/recipes-support/liburing/liburing_2.9.bb
@@ -9,18 +9,24 @@ SECTION = "libs"
9LICENSE = "LGPL-2.1-only | MIT" 9LICENSE = "LGPL-2.1-only | MIT"
10LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af" 10LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af"
11 11
12SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https" 12SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https \
13SRCREV = "f4e42a515cd78c8c9cac2be14222834be5f8df2b" 13 file://0001-test-Including-missing-string.h-for-memcpy.patch"
14SRCREV = "08468cc3830185c75f9e7edefd88aa01e5c2f8ab"
14 15
15S = "${WORKDIR}/git"
16 16
17DEPENDS:append:libc-musl = " libucontext" 17DEPENDS:append:libc-musl = " libucontext"
18XCFLAGS = "-pthread" 18XCFLAGS = "-pthread"
19XCFLAGS:append:libc-musl = " -lucontext" 19XCFLAGS:append:libc-musl = " -lucontext"
20 20
21USELIBC = ""
22# clang-18+ on RV64 emits memset for arch/riscv64/syscall.h provided __do_syscall4 macro
23# this does not happen for gcc or older clang, so link with libc since we need memset API
24# -fno-builtin-memset does not help
25USELIBC:riscv64:toolchain-clang = "--use-libc"
26USELIBC:riscv32 = "--use-libc"
21EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'" 27EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'"
22do_configure() { 28do_configure() {
23 ${S}/configure --prefix=${prefix} --libdir=${libdir} --libdevdir=${libdir} --mandir=${mandir} --datadir=${datadir} --includedir=${includedir} 29 ${S}/configure --prefix=${prefix} --libdir=${libdir} --libdevdir=${libdir} --mandir=${mandir} --datadir=${datadir} --includedir=${includedir} ${USELIBC}
24} 30}
25do_install () { 31do_install () {
26 oe_runmake install DESTDIR=${D} 32 oe_runmake install DESTDIR=${D}