From 255ba588cac9a2f936fbd220a0e16c13d23f68f0 Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 5 Sep 2023 00:00:51 +0530 Subject: [PATCH] liburing: update to 2.4. --- .../liburing/patches/no-stack-protector.patch | 36 +++++++++++++++++++ srcpkgs/liburing/template | 8 +++-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/liburing/patches/no-stack-protector.patch diff --git a/srcpkgs/liburing/patches/no-stack-protector.patch b/srcpkgs/liburing/patches/no-stack-protector.patch new file mode 100644 index 0000000000000..04ba4eb0340d2 --- /dev/null +++ b/srcpkgs/liburing/patches/no-stack-protector.patch @@ -0,0 +1,36 @@ +From 319f4be8bd049055c333185928758d0fb445fc43 Mon Sep 17 00:00:00 2001 +From: Guillem Jover +Date: Tue, 13 Jun 2023 00:36:21 +0200 +Subject: build: Disable stack protector unconditionally + +At least when building with nolibc, we cannot use the stack protector +as we will end up with undefined references to __stack_chk_fail which +is provided by the libc. We need to add the -fno-stack-protector +unconditionally to the CFLAGS append override. + +This seems to have been the intent behind the introduction of this +change in commit 2de98320d5b02951936fc0ab677dd01e4fb2a7a7. + +Signed-off-by: Guillem Jover +--- + src/Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index cba4d27..f57348b 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -10,8 +10,9 @@ CPPFLAGS ?= + override CPPFLAGS += -D_GNU_SOURCE \ + -Iinclude/ -include ../config-host.h \ + -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +-CFLAGS ?= -g -O3 -Wall -Wextra -fno-stack-protector ++CFLAGS ?= -g -O3 -Wall -Wextra + override CFLAGS += -Wno-unused-parameter \ ++ -fno-stack-protector \ + -DLIBURING_INTERNAL \ + $(LIBURING_CFLAGS) + SO_CFLAGS=-fPIC $(CFLAGS) +-- +cgit v1.2.3 + diff --git a/srcpkgs/liburing/template b/srcpkgs/liburing/template index 897f2ca2fdbd1..8ff6e2bf83f7d 100644 --- a/srcpkgs/liburing/template +++ b/srcpkgs/liburing/template @@ -1,6 +1,6 @@ # Template file for 'liburing' pkgname=liburing -version=2.3 +version=2.4 revision=1 build_style=configure configure_args="--mandir=/usr/share/man" @@ -11,7 +11,11 @@ license="LGPL-2.1-only" homepage="https://git.kernel.dk/cgit/liburing" changelog="https://git.kernel.dk/cgit/liburing/plain/CHANGELOG" distfiles="https://git.kernel.dk/cgit/liburing/snapshot/liburing-${version}.tar.gz" -checksum=a65a6adbe80425c1c4d0740532ba42c3d4fd9dadd17a0e0bfd31c29e1c14dba8 +checksum=b5fbb1f6d65d88a8b37cbf3f5d4a7fa38d1d9e928a83df79c6469ed816bbcacc + +do_check() { + make -C test +} liburing-devel_package() { short_desc+=" - development files"