Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package liburing for openSUSE:Factory checked in at 2022-07-26 19:42:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/liburing (Old) and /work/SRC/openSUSE:Factory/.liburing.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "liburing" Tue Jul 26 19:42:48 2022 rev:10 rq:989441 version:2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/liburing/liburing.changes 2022-05-01 18:53:40.423167699 +0200 +++ /work/SRC/openSUSE:Factory/.liburing.new.1533/liburing.changes 2022-07-26 19:42:59.985013799 +0200 @@ -1,0 +2,42 @@ +Fri Jul 8 12:40:13 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- add handle-eintr.patch, enable tests everywhere + +------------------------------------------------------------------- +Wed Jun 29 11:28:10 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- enable tests for != ppc64le + +------------------------------------------------------------------- +Tue Jun 28 13:40:10 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- update to 2.2: + * Support non-libc builds. + * Optimized syscall handling for x86-64/x86/aarch64. + * Enable non-lib function calls for fast path functions. + * Add support for multishot accept. + * io_uring_register_files() will set RLIMIT_NOFILE if necessary. + * Add support for registered ring fds, io_uring_register_ring_fd(), + reducingthe overhead of an io_uring_enter() system call. + * Add support for the message ring opcode. + * Add support for newer request cancelation features. + * Add support for IORING_SETUP_COOP_TASKRUN, which can help reduce the + overhead of io_uring in general. Most applications should set this flag, + see the io_uring_setup.2 man page for details. + * Add support for registering a sparse buffer and file set. + * Add support for a new buffer provide scheme, see + io_uring_register_buf_ring.3 for details. + * Add io_uring_submit_and_wait_timeout() for submitting IO and waiting + for completions with a timeout. + * Add io_uring_prep_{read,write}v2 prep helpers. + * Add io_uring_prep_close_direct() helper. + * Add support for SQE128 and CQE32, which are doubly sized SQE and CQE + rings. This is needed for some cases of the new IORING_OP_URING_CMD, + notably for NVMe passthrough. + * ~5500 lines of man page additions, including adding ~90 new man pages. + * Synced with the 5.19 kernel release, supporting all the features of + 5.19 and earlier. + * 24 new regression test cases, and ~7000 lines of new tests in general. + * General optimizations and fixes. + +------------------------------------------------------------------- Old: ---- liburing-2.1.tar.bz2 New: ---- handle-eintr.patch liburing-2.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ liburing.spec ++++++ --- /var/tmp/diff_new_pack.OYKqfn/_old 2022-07-26 19:43:00.472938403 +0200 +++ /var/tmp/diff_new_pack.OYKqfn/_new 2022-07-26 19:43:00.476937785 +0200 @@ -18,15 +18,20 @@ %define lname liburing2 Name: liburing -Version: 2.1 +Version: 2.2 Release: 0 Summary: Linux-native io_uring I/O access library License: (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT Group: Development/Libraries/C and C++ URL: https://git.kernel.dk/cgit/liburing Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.bz2 -BuildRequires: gcc +# PATCH-FIX-UPSTREAM: has been accepted upstream +# [1/1] Handle EINTR in tests +# commit: fa67f6aedcfdaffc14cbf0b631253477b2565ef0 +Patch2: handle-eintr.patch +BuildRequires: gcc-c++ BuildRequires: pkgconfig +BuildRequires: procps # Kernel part has landed in 5.1 Conflicts: kernel < 5.1 @@ -55,7 +60,7 @@ for the Linux-native io_uring. %prep -%setup -q +%autosetup -p1 %build # not autotools, so configure macro doesn't work @@ -67,6 +72,9 @@ --datadir=%{_datadir} %make_build -C src +%check +/usr/bin/make runtests + %install %make_install rm -v %{buildroot}%{_libdir}/%{name}.a ++++++ handle-eintr.patch ++++++ --- liburing-2.2/test/ce593a6c480a.c +++ liburing-2.2/test/ce593a6c480a.c @@ -111,15 +111,16 @@ (void*) (intptr_t) other_fd); /* Wait on the event fd for an event to be ready */ - ret = read(loop_fd, buf, 8); - if (ret < 0) { - perror("read"); - return 1; - } else if (ret != 8) { - fprintf(stderr, "Odd-sized eventfd read: %d\n", ret); - return 1; - } - + do { + ret = read(loop_fd, buf, 8); + if (ret < 0 && errno != EINTR) { + perror("read"); + return 1; + } else if (ret > 0 && ret != 8) { + fprintf(stderr, "Odd-sized eventfd read: %d\n", ret); + return 1; + } + } while (ret < 0); ret = io_uring_wait_cqe(&ring, &cqe); if (ret) { --- liburing-2.2/test/io-cancel.c +++ liburing-2.2/test/io-cancel.c @@ -366,10 +366,17 @@ } else { int wstatus; - if (waitpid(p, &wstatus, 0) == (pid_t)-1) { - perror("waitpid()"); - return 1; - } + do { + if (waitpid(p, &wstatus, 0) == (pid_t)-1) { + if (errno == EINTR) { + continue; + } + perror("waitpid()"); + return 1; + } + break; + } while (1); + if (!WIFEXITED(wstatus) || WEXITSTATUS(wstatus)) { fprintf(stderr, "child failed %i\n", WEXITSTATUS(wstatus)); return 1; ++++++ liburing-2.1.tar.bz2 -> liburing-2.2.tar.bz2 ++++++ ++++ 25223 lines of diff (skipped)