summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/liburing/liburing/0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch43
-rw-r--r--meta-oe/recipes-support/liburing/liburing/0001-test-Drop-including-error.h-header.patch27
-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/0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch32
-rw-r--r--meta-oe/recipes-support/liburing/liburing_2.9.bb (renamed from meta-oe/recipes-support/liburing/liburing_2.7.bb)6
5 files changed, 41 insertions, 106 deletions
diff --git a/meta-oe/recipes-support/liburing/liburing/0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch b/meta-oe/recipes-support/liburing/liburing/0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch
deleted file mode 100644
index 90f028b856..0000000000
--- a/meta-oe/recipes-support/liburing/liburing/0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 7ea4e55a91e6d5564c6de762c2d1afc78ff9cfd3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 16 Sep 2024 22:58:38 +0000
4Subject: [PATCH] test: Compile nolibc.c only when CONFIG_NOLIBC is set
5
6building nolibc.c fails for non nolibc targets
7
8Fixes
9In file included from nolibc.c:33:
10./../src/lib.h:20:2: error: "This arch doesn't support building liburing without libc"
11 20 | #error "This arch doesn't support building liburing without libc"
12 | ^
131 error generated.
14
15Upstream-Status: Backport [https://github.com/axboe/liburing/commit/a182f62c01f981cd9dd508ec952fbc975b263e3d]
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 test/Makefile | 5 ++++-
19 1 file changed, 4 insertions(+), 1 deletion(-)
20
21diff --git a/test/Makefile b/test/Makefile
22index 0538a75..0dfecb8 100644
23--- a/test/Makefile
24+++ b/test/Makefile
25@@ -126,7 +126,6 @@ test_srcs := \
26 msg-ring-overflow.c \
27 multicqes_drain.c \
28 no-mmap-inval.c \
29- nolibc.c \
30 nop-all-sizes.c \
31 nop.c \
32 ooo-file-unreg.c \
33@@ -221,6 +220,10 @@ test_srcs := \
34 all_targets :=
35 include ../Makefile.quiet
36
37+ifeq ($(CONFIG_NOLIBC),y)
38+ test_srcs += nolibc.c
39+endif
40+
41 ifdef CONFIG_HAVE_STATX
42 test_srcs += statx.c
43 else ifdef CONFIG_HAVE_GLIBC_STATX
diff --git a/meta-oe/recipes-support/liburing/liburing/0001-test-Drop-including-error.h-header.patch b/meta-oe/recipes-support/liburing/liburing/0001-test-Drop-including-error.h-header.patch
deleted file mode 100644
index 62ca78a1ed..0000000000
--- a/meta-oe/recipes-support/liburing/liburing/0001-test-Drop-including-error.h-header.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From 684bcb2a8795fd399d6c164e51459a2785057b1c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 17 Sep 2024 09:56:42 -0700
4Subject: [PATCH 1/2] test: Drop including error.h header
5
6There is no error APIs being used in this test, therefore
7drop including it, this also makes it portable to musl
8systems which do not have error.h
9
10Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1233]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 test/init-mem.c | 1 -
14 1 file changed, 1 deletion(-)
15
16diff --git a/test/init-mem.c b/test/init-mem.c
17index 6f9a02a..f512190 100644
18--- a/test/init-mem.c
19+++ b/test/init-mem.c
20@@ -13,7 +13,6 @@
21 #include <netinet/udp.h>
22 #include <arpa/inet.h>
23 #include <net/if.h>
24-#include <error.h>
25
26 #include "liburing.h"
27 #include "helpers.h"
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/0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch b/meta-oe/recipes-support/liburing/liburing/0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch
deleted file mode 100644
index 8a1d542502..0000000000
--- a/meta-oe/recipes-support/liburing/liburing/0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From d06433ff1a1905436cfcde80e22ee51bd9591536 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 17 Sep 2024 09:59:31 -0700
4Subject: [PATCH 2/2] ooo-file-unreg.c: Include poll.h instead of sys/poll.h
5
6This fixes a warning e.g.
7
8In file included from ooo-file-unreg.c:12:
9/mnt/b/yoe/master/build/tmp/work/riscv32-yoe-linux-musl/liburing/2.7/recipe-sysroot/usr/include/sys/poll.h:1:2: warning: redirecting incorrect #include <sys/poll.h> to <poll.h> [-W#warnings]
10 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
11 | ^
121 warning generated.
13
14Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1233]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 test/ooo-file-unreg.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/test/ooo-file-unreg.c b/test/ooo-file-unreg.c
21index d76e0fb..dd6ea55 100644
22--- a/test/ooo-file-unreg.c
23+++ b/test/ooo-file-unreg.c
24@@ -9,7 +9,7 @@
25 #include <sys/socket.h>
26 #include <unistd.h>
27 #include <stdlib.h>
28-#include <sys/poll.h>
29+#include <poll.h>
30
31 #include "liburing.h"
32 #include "helpers.h"
diff --git a/meta-oe/recipes-support/liburing/liburing_2.7.bb b/meta-oe/recipes-support/liburing/liburing_2.9.bb
index b10fe40ca0..e17d829c3d 100644
--- a/meta-oe/recipes-support/liburing/liburing_2.7.bb
+++ b/meta-oe/recipes-support/liburing/liburing_2.9.bb
@@ -10,10 +10,8 @@ LICENSE = "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 \
13 file://0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch \ 13 file://0001-test-Including-missing-string.h-for-memcpy.patch"
14 file://0001-test-Drop-including-error.h-header.patch \ 14SRCREV = "08468cc3830185c75f9e7edefd88aa01e5c2f8ab"
15 file://0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch"
16SRCREV = "5227d48b28ad8671e61d444b72678da584d2e6c3"
17 15
18S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
19 17