diff options
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.patch | 39 | ||||
-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 @@ | |||
1 | From c55874bc28f66d606527b940d4bd0f266bbaaa2c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 17 Feb 2025 11:51:19 -0800 | ||
4 | Subject: [PATCH] test: Including missing string.h for memcpy | ||
5 | |||
6 | Fixes | ||
7 | accept-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 | |||
9 | Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1351] | ||
10 | Signed-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 | |||
16 | diff --git a/test/232c93d07b74.c b/test/232c93d07b74.c | ||
17 | index 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> | ||
28 | diff --git a/test/accept-test.c b/test/accept-test.c | ||
29 | index 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" | |||
9 | LICENSE = "LGPL-2.1-only | MIT" | 9 | LICENSE = "LGPL-2.1-only | MIT" |
10 | LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af" | 10 | LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af" |
11 | 11 | ||
12 | SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https" | 12 | SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https \ |
13 | SRCREV = "f4e42a515cd78c8c9cac2be14222834be5f8df2b" | 13 | file://0001-test-Including-missing-string.h-for-memcpy.patch" |
14 | SRCREV = "08468cc3830185c75f9e7edefd88aa01e5c2f8ab" | ||
14 | 15 | ||
15 | S = "${WORKDIR}/git" | ||
16 | 16 | ||
17 | DEPENDS:append:libc-musl = " libucontext" | 17 | DEPENDS:append:libc-musl = " libucontext" |
18 | XCFLAGS = "-pthread" | 18 | XCFLAGS = "-pthread" |
19 | XCFLAGS:append:libc-musl = " -lucontext" | 19 | XCFLAGS:append:libc-musl = " -lucontext" |
20 | 20 | ||
21 | USELIBC = "" | ||
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 | ||
25 | USELIBC:riscv64:toolchain-clang = "--use-libc" | ||
26 | USELIBC:riscv32 = "--use-libc" | ||
21 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'" | 27 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'LDFLAGS=${LDFLAGS}' 'XCFLAGS=${XCFLAGS}' 'BUILDDIR=${S}'" |
22 | do_configure() { | 28 | do_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 | } |
25 | do_install () { | 31 | do_install () { |
26 | oe_runmake install DESTDIR=${D} | 32 | oe_runmake install DESTDIR=${D} |