Accepting request 921694 from science:HPC
OBS-URL: https://build.opensuse.org/request/show/921694 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvma?expand=0&rev=11
This commit is contained in:
commit
83175831b4
25
issue-2485156-Fix-fc35-issues.patch
Normal file
25
issue-2485156-Fix-fc35-issues.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
commit e4660f93007e41c7dbfdb5e3e166c3a9e84a5ae6
|
||||||
|
Author: Igor Ivanov <igori@nvidia.com>
|
||||||
|
Date: Thu Jun 17 16:07:31 2021 +0300
|
||||||
|
|
||||||
|
issue: 2485156 Fix fc35 issues
|
||||||
|
|
||||||
|
- glibc:
|
||||||
|
The function pthread_yield has been deprecated; programs should use
|
||||||
|
the equivalent standard function sched_yield instead.
|
||||||
|
|
||||||
|
Signed-off-by: Igor Ivanov <igori@nvidia.com>
|
||||||
|
|
||||||
|
diff --git src/vma/iomux/epfd_info.cpp src/vma/iomux/epfd_info.cpp
|
||||||
|
index c7670c7b36b4..d7c6c4fcdf9e 100644
|
||||||
|
--- src/vma/iomux/epfd_info.cpp
|
||||||
|
+++ src/vma/iomux/epfd_info.cpp
|
||||||
|
@@ -624,7 +624,7 @@ int epfd_info::ring_poll_and_process_element(uint64_t *p_poll_sn, void* pv_fd_re
|
||||||
|
|
||||||
|
m_ring_map_lock.unlock();
|
||||||
|
|
||||||
|
- if (m_sysvar_thread_mode == THREAD_MODE_PLENTY && ret_total == 0 && errno == EAGAIN) pthread_yield();
|
||||||
|
+ if (m_sysvar_thread_mode == THREAD_MODE_PLENTY && ret_total == 0 && errno == EAGAIN) sched_yield();
|
||||||
|
|
||||||
|
if (ret_total) {
|
||||||
|
__log_func("ret_total=%d", ret_total);
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 26 11:11:24 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
- Add issue-2485156-Fix-fc35-issues.patch from upstream to fix
|
||||||
|
compilation with newer glibc (deprecated pthread_yield)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 28 12:54:15 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
Mon Jun 28 12:54:15 UTC 2021 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ Version: 9.3.1
|
|||||||
Release: 0
|
Release: 0
|
||||||
Source0: %{name}-%{version}%{git_ver}.tar.gz
|
Source0: %{name}-%{version}%{git_ver}.tar.gz
|
||||||
Source1: vma.service
|
Source1: vma.service
|
||||||
|
Patch1: issue-2485156-Fix-fc35-issues.patch
|
||||||
URL: https://github.com/Mellanox/libvma
|
URL: https://github.com/Mellanox/libvma
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -70,6 +71,7 @@ Headers and symbolink link required to compile and link with the Libvma library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{git_ver}
|
%setup -q -n %{name}-%{version}%{git_ver}
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user