Accepting request 756021 from home:morbidrsa:branches:devel:libraries:c_c++
- Fix builds on ppc64le and s390x (bsc#1159055) + barrier.h-add-generic-smp_mb-implementation.patch OBS-URL: https://build.opensuse.org/request/show/756021 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=5
This commit is contained in:
parent
42a438071a
commit
6aed128f1d
28
barrier.h-add-generic-smp_mb-implementation.patch
Normal file
28
barrier.h-add-generic-smp_mb-implementation.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
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 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 12 09:20:32 UTC 2019 - Johannes Thumshirn <jthumshirn@suse.com>
|
||||||
|
|
||||||
|
- Fix builds on ppc64le and s390x (bsc#1159055)
|
||||||
|
+ barrier.h-add-generic-smp_mb-implementation.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 27 08:18:20 UTC 2019 - Johannes Thumshirn <jthumshirn@suse.com>
|
Wed Nov 27 08:18:20 UTC 2019 - Johannes Thumshirn <jthumshirn@suse.com>
|
||||||
|
|
||||||
|
@ -23,9 +23,11 @@ Version: 0.2
|
|||||||
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: LGPL-2.1-or-later
|
||||||
|
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
|
||||||
|
|
||||||
%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
|
||||||
@ -41,6 +43,7 @@ manner, for both buffered and O_DIRECT.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for Linux-native io_uring I/O access library
|
Summary: Development files for Linux-native io_uring I/O access library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}%{so_ver} = %{version}
|
Requires: %{name}%{so_ver} = %{version}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
@ -49,7 +52,8 @@ This package provides header files to include and libraries to link with
|
|||||||
for the Linux-native io_uring.
|
for the Linux-native io_uring.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%setup -n %name-%version
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --prefix=%{_prefix} --libdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir}
|
./configure --prefix=%{_prefix} --libdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir}
|
||||||
|
Loading…
Reference in New Issue
Block a user