diff options
| -rw-r--r-- | meta-oe/recipes-support/liburing/liburing/0001-test-Compile-nolibc.c-only-when-CONFIG_NOLIBC-is-set.patch | 43 | ||||
| -rw-r--r-- | meta-oe/recipes-support/liburing/liburing/0001-test-Drop-including-error.h-header.patch | 27 | ||||
| -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/0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch | 32 | ||||
| -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 @@ | |||
| 1 | From 7ea4e55a91e6d5564c6de762c2d1afc78ff9cfd3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 16 Sep 2024 22:58:38 +0000 | ||
| 4 | Subject: [PATCH] test: Compile nolibc.c only when CONFIG_NOLIBC is set | ||
| 5 | |||
| 6 | building nolibc.c fails for non nolibc targets | ||
| 7 | |||
| 8 | Fixes | ||
| 9 | In 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 | | ^ | ||
| 13 | 1 error generated. | ||
| 14 | |||
| 15 | Upstream-Status: Backport [https://github.com/axboe/liburing/commit/a182f62c01f981cd9dd508ec952fbc975b263e3d] | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | test/Makefile | 5 ++++- | ||
| 19 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/test/Makefile b/test/Makefile | ||
| 22 | index 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 @@ | |||
| 1 | From 684bcb2a8795fd399d6c164e51459a2785057b1c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 17 Sep 2024 09:56:42 -0700 | ||
| 4 | Subject: [PATCH 1/2] test: Drop including error.h header | ||
| 5 | |||
| 6 | There is no error APIs being used in this test, therefore | ||
| 7 | drop including it, this also makes it portable to musl | ||
| 8 | systems which do not have error.h | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1233] | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | test/init-mem.c | 1 - | ||
| 14 | 1 file changed, 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/test/init-mem.c b/test/init-mem.c | ||
| 17 | index 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 @@ | |||
| 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/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 @@ | |||
| 1 | From d06433ff1a1905436cfcde80e22ee51bd9591536 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 17 Sep 2024 09:59:31 -0700 | ||
| 4 | Subject: [PATCH 2/2] ooo-file-unreg.c: Include poll.h instead of sys/poll.h | ||
| 5 | |||
| 6 | This fixes a warning e.g. | ||
| 7 | |||
| 8 | In 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 | | ^ | ||
| 12 | 1 warning generated. | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/1233] | ||
| 15 | Signed-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 | |||
| 20 | diff --git a/test/ooo-file-unreg.c b/test/ooo-file-unreg.c | ||
| 21 | index 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" | |||
| 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 | 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 \ | 14 | SRCREV = "08468cc3830185c75f9e7edefd88aa01e5c2f8ab" |
| 15 | file://0002-ooo-file-unreg.c-Include-poll.h-instead-of-sys-poll..patch" | ||
| 16 | SRCREV = "5227d48b28ad8671e61d444b72678da584d2e6c3" | ||
| 17 | 15 | ||
| 18 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 19 | 17 | ||
