diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-05 02:47:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-05 02:47:11 +0000 |
commit | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (patch) | |
tree | c8af0fd04194aed03cf067d44e53c7edd3e9ab84 /sys-libs/liburing/files | |
parent | e9d044d4b9b71200a96adfa280848858c0f468c9 (diff) |
gentoo resync : 05.12.2021
Diffstat (limited to 'sys-libs/liburing/files')
-rw-r--r-- | sys-libs/liburing/files/liburing-0.7-ucontext_h-detection.patch | 72 | ||||
-rw-r--r-- | sys-libs/liburing/files/liburing-2.0-spec_version.patch | 29 |
2 files changed, 0 insertions, 101 deletions
diff --git a/sys-libs/liburing/files/liburing-0.7-ucontext_h-detection.patch b/sys-libs/liburing/files/liburing-0.7-ucontext_h-detection.patch deleted file mode 100644 index 24b847d919df..000000000000 --- a/sys-libs/liburing/files/liburing-0.7-ucontext_h-detection.patch +++ /dev/null @@ -1,72 +0,0 @@ -From 1cf969dfcba797a02d74540965677b92d3884cfa Mon Sep 17 00:00:00 2001 -From: Simon Zeni <simon@bl4ckb0ne.ca> -Date: Tue, 27 Oct 2020 22:31:21 -0400 -Subject: [PATCH] examples: disable ucontext-cp if ucontext.h is not available - -The header file `ucontext.h` is not available on musl based distros. The -example `ucontext-cp` is not built if `configure` fails to locate the -header. - -Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca> -Signed-off-by: Jens Axboe <axboe@kernel.dk> ---- - configure | 21 +++++++++++++++++++++ - examples/Makefile | 6 +++++- - 2 files changed, 26 insertions(+), 1 deletion(-) - -diff --git a/configure b/configure -index c911f59..3b96cde 100755 ---- a/configure -+++ b/configure -@@ -287,6 +287,24 @@ if compile_prog_cxx "" "" "C++"; then - fi - print_config "C++" "$has_cxx" - -+########################################## -+# check for ucontext support -+has_ucontext="no" -+cat > $TMPC << EOF -+#include <ucontext.h> -+int main(int argc, char **argv) -+{ -+ ucontext_t ctx; -+ getcontext(&ctx); -+ return 0; -+} -+EOF -+if compile_prog "" "" "has_ucontext"; then -+ has_ucontext="yes" -+fi -+print_config "has_ucontext" "$has_ucontext" -+ -+ - ############################################################################# - - if test "$__kernel_rwf_t" = "yes"; then -@@ -304,6 +322,9 @@ fi - if test "$has_cxx" = "yes"; then - output_sym "CONFIG_HAVE_CXX" - fi -+if test "$has_ucontext" = "yes"; then -+ output_sym "CONFIG_HAVE_UCONTEXT" -+fi - - echo "CC=$cc" >> $config_host_mak - print_config "CC" "$cc" -diff --git a/examples/Makefile b/examples/Makefile -index 0eec627..60c1b71 100644 ---- a/examples/Makefile -+++ b/examples/Makefile -@@ -10,7 +10,11 @@ ifneq ($(MAKECMDGOALS),clean) - include ../config-host.mak - endif - --all_targets += io_uring-test io_uring-cp link-cp ucontext-cp -+all_targets += io_uring-test io_uring-cp link-cp -+ -+ifdef CONFIG_HAVE_UCONTEXT -+all_targets += ucontext-cp -+endif - - all: $(all_targets) - diff --git a/sys-libs/liburing/files/liburing-2.0-spec_version.patch b/sys-libs/liburing/files/liburing-2.0-spec_version.patch deleted file mode 100644 index fab05916c366..000000000000 --- a/sys-libs/liburing/files/liburing-2.0-spec_version.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 1815337f7dbb530ae3e3bc1175d8da214cf76eb5 Mon Sep 17 00:00:00 2001 -From: Stefan Hajnoczi <stefanha@redhat.com> -Date: Tue, 9 Mar 2021 14:19:12 +0000 -Subject: [PATCH] spec: bump version to 2.0 - -The shared library is now liburing.so.2 but the pkgconfig and rpm files -still say 0.7. Existing binaries link against liburing.so.1 and will not -automatically pick up the new liburing.so.2 shared library. - -Update the version number in liburing.spec so - -Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> -Link: https://lore.kernel.org/r/20210309141913.262131-2-stefanha@redhat.com -Signed-off-by: Jens Axboe <axboe@kernel.dk> ---- - liburing.spec | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/liburing.spec b/liburing.spec -index fa4d9704..8607074c 100644 ---- a/liburing.spec -+++ b/liburing.spec -@@ -1,5 +1,5 @@ - Name: liburing --Version: 0.7 -+Version: 2.0 - Release: 1%{?dist} - Summary: Linux-native io_uring I/O access library - License: (GPLv2 with exceptions and LGPLv2+) or MIT |