forked from pool/liburing
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:
commit
eae1956968
@ -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__) */
|
|
@ -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
3
liburing-0.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:44c99b9f148a885d882acd7aa63658141675eae251298cbf79bb9a4ab307ef9c
|
||||||
|
size 103675
|
@ -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>
|
Thu Dec 12 09:20:32 UTC 2019 - Johannes Thumshirn <jthumshirn@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package liburing
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,15 +19,16 @@
|
|||||||
Name: liburing
|
Name: liburing
|
||||||
%define so_ver 1
|
%define so_ver 1
|
||||||
%define lname %{name}%{so_ver}
|
%define lname %{name}%{so_ver}
|
||||||
Version: 0.2
|
Version: 0.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Linux-native io_uring I/O access library
|
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++
|
Group: Development/Libraries/C and C++
|
||||||
URL: https://git.kernel.dk/cgit/liburing
|
URL: https://git.kernel.dk/cgit/liburing
|
||||||
Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz
|
Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz
|
||||||
Requires: kernel-default >= 5.1
|
Requires: kernel-default >= 5.1
|
||||||
Patch0: barrier.h-add-generic-smp_mb-implementation.patch
|
BuildRequires: gcc
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Provides native async IO for the Linux kernel, in a fast and efficient
|
Provides native async IO for the Linux kernel, in a fast and efficient
|
||||||
@ -53,19 +54,26 @@ for the Linux-native io_uring.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %name-%version
|
%setup -n %name-%version
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%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}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm %{buildroot}%{_libdir}/%{name}.a
|
rm %{buildroot}%{_libdir}/%{name}.a
|
||||||
|
|
||||||
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{lname}
|
%files -n %{lname}
|
||||||
%{_libdir}/liburing.so.*
|
%{_libdir}/liburing.so.*
|
||||||
%license COPYING
|
%license COPYING COPYING.GPL LICENSE
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/liburing/
|
%{_includedir}/liburing/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user