Accepting request 847547 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/847547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2020-11-17 20:22:40 +00:00 committed by Git OBS Bridge
commit eae1956968
5 changed files with 33 additions and 38 deletions

View File

@ -1,28 +0,0 @@
From ba97eaf8f9ef2030d581be10df9d875dbfadc91d Mon Sep 17 00:00:00 2001
From: Jeff Moyer <jmoyer@redhat.com>
Date: Tue, 5 Nov 2019 10:33:19 -0500
Subject: barrier.h: add generic smp_mb implementation
References: bsc#1159055
Patch-mainline: Queued
This missing define causes build failures on s390:
src/include/liburing.h:298: undefined reference to `io_uring_smp_mb'
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Johannes Thumshirn <jthumshirn@suse.de>
---
src/include/liburing/barrier.h | 1 +
1 file changed, 1 insertion(+)
--- a/src/include/liburing/barrier.h
+++ b/src/include/liburing/barrier.h
@@ -76,6 +76,7 @@ do { \
* Add arch appropriate definitions. Be safe and use full barriers for
* archs we don't have support for.
*/
+#define io_uring_smp_mb() __sync_synchronize()
#define io_uring_smp_rmb() __sync_synchronize()
#define io_uring_smp_wmb() __sync_synchronize()
#endif /* defined(__x86_64__) || defined(__i386__) */

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b3858dd6605ee8222472166f88213f2d48388146f2a7b10c130f3b39a706bb9
size 56951

3
liburing-0.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44c99b9f148a885d882acd7aa63658141675eae251298cbf79bb9a4ab307ef9c
size 103675

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Oct 30 21:42:16 UTC 2020 - Milan Savić <milsav92@outlook.com>
!!IMPORTANT!!
Version 0.7 BREAKS ABI COMPATIBILITY WITHOUT CHANGING THE SONAME!!!
https://github.com/axboe/liburing/issues/228
SONAME is bumped to 2 in commit 25bbcbef3e0a8bfba8044be55d08d5116c51dccd
im master branch.
!!!IMPORTANT!!!
- Update to version 0.6
- removed barrier.h-add-generic-smp_mb-implementation.patch since
it was merged in commit ba97eaf8f9ef2030d581be10df9d875dbfadc91d
- License changed to match upstream
-------------------------------------------------------------------
Thu Dec 12 09:20:32 UTC 2019 - Johannes Thumshirn <jthumshirn@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package liburing
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,15 +19,16 @@
Name: liburing
%define so_ver 1
%define lname %{name}%{so_ver}
Version: 0.2
Version: 0.6
Release: 0
Summary: Linux-native io_uring I/O access library
License: LGPL-2.1-or-later
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.gz
Requires: kernel-default >= 5.1
Patch0: barrier.h-add-generic-smp_mb-implementation.patch
BuildRequires: gcc
BuildRequires: pkg-config
%description
Provides native async IO for the Linux kernel, in a fast and efficient
@ -53,19 +54,26 @@ for the Linux-native io_uring.
%prep
%setup -n %name-%version
%patch0 -p1
%build
./configure --prefix=%{_prefix} --libdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir}
./configure --prefix=%{_prefix} \
--includedir=%{_includedir} \
--libdir=/%{_libdir} \
--libdevdir=/%{_libdir} \
--mandir=%{_mandir} \
--datadir=%{_datadir}
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_libdir}/%{name}.a
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%{_libdir}/liburing.so.*
%license COPYING
%license COPYING COPYING.GPL LICENSE
%files devel
%{_includedir}/liburing/