diff --git a/fix-build-error-with-glibc.patch b/fix-build-error-with-glibc.patch new file mode 100644 index 0000000000000000000000000000000000000000..6c9af3a7ef20604b23fd81199408c38394439c99 --- /dev/null +++ b/fix-build-error-with-glibc.patch @@ -0,0 +1,25 @@ +From c61c1e5d88709e8a8567fae70dbc6ff94b949d29 Mon Sep 17 00:00:00 2001 +From: zhangtao2020 <18066722603@163.com> +Date: Tue, 10 Aug 2021 16:34:56 +0800 +Subject: [PATCH] fix build error with glibc + +--- + src/vma/iomux/epfd_info.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/vma/iomux/epfd_info.cpp b/src/vma/iomux/epfd_info.cpp +index f7107a4..a340dec 100644 +--- a/src/vma/iomux/epfd_info.cpp ++++ b/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); +-- +2.27.0 + diff --git a/libvma.spec b/libvma.spec index af6c4a115fe1fe1585d77c2c5d099592cd91f717..28378242e49908d61d9e37cfa8db5745ee1e204b 100644 --- a/libvma.spec +++ b/libvma.spec @@ -1,12 +1,13 @@ Name: libvma Version: 8.9.4 -Release: 11 +Release: 12 Summary: A library that boosts performance for message-based and streaming applications License: GPLv2 or BSD URL: https://github.com/Mellanox/libvma Source: https://github.com/Mellanox/libvma/archive/%{version}.tar.gz Patch0000: Resolve-gcc-9.x-issues.patch Patch0001: 0001-Remove-ExecReload-that-is-not-supported.patch +Patch0002: fix-build-error-with-glibc.patch ExcludeArch: %{arm} Requires: pam Requires(post): /sbin/ldconfig @@ -69,6 +70,9 @@ Headers files for libvma. %{_pkgdocdir}/VMA_VERSION %changelog +* Tue Aug 10 2021 zhangtao - 8.9.4-12 +- fixes build error with glibc + * Tue Jun 08 2021 wulei - 8.9.4-11 - fixes failed: g++: No such file or directory