Skip to contentSkip to conversation

liburing: Upgrade to 2.4 release

PATCH New Khem Raj 1 participant 1 message Aug 21, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 liburing: Upgrade to 2.4 release

- Upgrade to latest release 2.4 [1]
- Drop a patch available in 2.4 release
- Backport a parallel build race fix

[1] https://github.com/axboe/liburing/releases/tag/liburing-2.4

---
 ...ure-on-.-configure-make-shuffle-2836.patch | 34 ++++++++++++++
 ...-test-Remove-unused-linux-errqueue.h.patch | 47 -------------------
 .../{liburing_2.3.bb => liburing_2.4.bb}      |  5 +-
 3 files changed, 36 insertions(+), 50 deletions(-)
 create mode 100644 meta-oe/recipes-support/liburing/liburing/0001-Fixes-build-failure-on-.-configure-make-shuffle-2836.patch
 delete mode 100644 meta-oe/recipes-support/liburing/liburing/0001-examples-test-Remove-unused-linux-errqueue.h.patch
 rename meta-oe/recipes-support/liburing/{liburing_2.3.bb => liburing_2.4.bb} (89%)
meta-oe/recipes-support/liburing/liburing/0001-Fixes-build-failure-on-.-configure-make-shuffle-2836.patch new file +34 -0
new file mode 100644
index 0000000000..0cf8548e4c
@@ -0,0 +1,34 @@
+From c34dca74854cb6e7f2b09affa2a4ab0145e62371 Mon Sep 17 00:00:00 2001
+From: Kartik Mahajan <[email protected]>
+Date: Fri, 30 Jun 2023 11:34:07 +0530
+Subject: [PATCH] Fixes build failure on ./configure && make
+ --shuffle=2836571325
+
+./configure && make --shuffle=2836571325 fails.
+The build fails on parallel builds for me and above command reproduces it.
+Note that --shuffle options is available on make version >= 4.4
+Target ffi_libname in src/Makefile should have a additional dependency
+upon $(liburing_sobjs)
+
+Upstream-Status: Backport [https://github.com/axboe/liburing/commit/c34dca74854cb6e7f2b09affa2a4ab0145e62371]
+Signed-off-by: Kartik Mahajan <[email protected]>
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index c4c28cb..7832095 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -81,7 +81,7 @@ liburing-ffi.a: $(liburing_objs) $(liburing_ffi_objs)
+ $(libname): $(liburing_sobjs) liburing.map
+ 	$(QUIET_CC)$(CC) $(SO_CFLAGS) -shared -Wl,--version-script=liburing.map -Wl,-soname=$(soname) -o $@ $(liburing_sobjs) $(LINK_FLAGS)
+ 
+-$(ffi_libname): $(liburing_ffi_objs) $(liburing_ffi_sobjs) liburing-ffi.map
++$(ffi_libname): $(liburing_ffi_objs) $(liburing_ffi_sobjs) $(liburing_sobjs) liburing-ffi.map
+ 	$(QUIET_CC)$(CC) $(SO_CFLAGS) -shared -Wl,--version-script=liburing-ffi.map -Wl,-soname=$(ffi_soname) -o $@ $(liburing_sobjs) $(liburing_ffi_sobjs) $(LINK_FLAGS)
+ 
+ install: $(all_targets)
+-- 
+2.41.0
+
meta-oe/recipes-support/liburing/liburing/0001-examples-test-Remove-unused-linux-errqueue.h.patch deleted +0 -47

47 lines not on this page · raw message

meta-oe/recipes-support/liburing/liburing_2.4.bb renamed from meta-oe/recipes-support/liburing/liburing_2.3.bb +2 -3
similarity index 89%
rename from meta-oe/recipes-support/liburing/liburing_2.3.bb
rename to meta-oe/recipes-support/liburing/liburing_2.4.bb
index 7d8c2f596d..e5dba70df0 100644
@@ -10,12 +10,11 @@ LICENSE = "LGPL-2.1-only | MIT"
 LIC_FILES_CHKSUM = "file://README;beginline=41;endline=44;md5=2b0e9926530c269f5ae95560370195af"
 
 SRC_URI = "git://github.com/axboe/liburing.git;branch=master;protocol=https \
-           file://0001-examples-test-Remove-unused-linux-errqueue.h.patch"
+           file://0001-Fixes-build-failure-on-.-configure-make-shuffle-2836.patch"
 SRC_URI:append:libc-musl:riscv64 = " file://0001-do-not-build-examples.patch "
 SRC_URI:append:libc-musl:riscv32 = " file://0001-do-not-build-examples.patch "
-SRCREV = "f5cac78e621ab452d3035902085f66d2bf73243b"
+SRCREV = "298c083d75ecde5a8833366167b3b6abff0c8d39"
 
-PV .= "+2.4+git${SRCPV}"
 S = "${WORKDIR}/git"
 
 DEPENDS:append:libc-musl = " libucontext"
Signature · 1 line
2.41.0