diff --git a/0001-fix-build-error-for-ucx.patch b/0001-fix-build-error-for-ucx.patch new file mode 100644 index 0000000000000000000000000000000000000000..bf27090d43034d53626ea35120e5fcbfe47a309d --- /dev/null +++ b/0001-fix-build-error-for-ucx.patch @@ -0,0 +1,26 @@ +From 63a1803b8661d5e3ca6115410df3669b8be20f9b Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Wed, 20 Dec 2023 02:39:35 +0000 +Subject: [PATCH] fix build error for ucx + +--- + src/ucm/bistro/bistro_loongarch64.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/ucm/bistro/bistro_loongarch64.c b/src/ucm/bistro/bistro_loongarch64.c +index 0e1fbff..b72e8d5 100644 +--- a/src/ucm/bistro/bistro_loongarch64.c ++++ b/src/ucm/bistro/bistro_loongarch64.c +@@ -77,5 +77,8 @@ ucs_status_t ucm_bistro_patch(void *func_ptr, void *hook, const char *symbol, + + return ucm_bistro_apply_patch(func_ptr, &patch, sizeof(patch)); + } +- ++ucs_status_t ucm_bistro_relocate_one(ucm_bistro_relocate_context_t *ctx) ++{ ++ return UCS_ERR_UNSUPPORTED; ++} + #endif +-- +2.41.0 + diff --git a/ucx.spec b/ucx.spec index afa0b95065c0ac57c5eb3247a53f8f4fb37dc198..c7ec0bd003cd0d7693f2232681ae1c52bb02af6c 100644 --- a/ucx.spec +++ b/ucx.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %{!?configure_options: %global configure_options %{nil}} %bcond_without cma @@ -31,6 +31,7 @@ License: BSD-3-Clause AND MIT AND CC-PDDC AND (BSD-3-Clause OR Apache-2.0) URL: http://www.openucx.org Source: https://github.com/openucx/%{name}/releases/download/v%{version}/ucx-%{version}.tar.gz Patch001: 0001-add-loongarch64-support-for-ucx.patch +Patch002: 0001-fix-build-error-for-ucx.patch %if %{defined extra_deps} Requires: %{?extra_deps} @@ -83,6 +84,7 @@ Provides header files and examples for developing with UCX. %prep %setup -q %patch001 -p1 +%patch002 -p1 %build # Remove these fixes when upgrading to version 1.14 @@ -308,6 +310,9 @@ status, and more. %endif %changelog +* Wed Dec 20 2023 Wenlong Zhang - 1.15.0-2 +- fix build error for ucx + * Sat Nov 18 2023 Liwei Ge - 1.15.0-1 - Update to 1.15.0