Blame slurm_pmix_soname.patch

Philip Kovacs bff578
diff --git a/src/plugins/mpi/pmix/mpi_pmix.c b/src/plugins/mpi/pmix/mpi_pmix.c
Philip Kovacs b8027d
index 1bf287ff44..8702a2bd17 100644
Philip Kovacs bff578
--- a/src/plugins/mpi/pmix/mpi_pmix.c
Philip Kovacs bff578
+++ b/src/plugins/mpi/pmix/mpi_pmix.c
Philip Kovacs b8027d
@@ -109,7 +109,7 @@ static void *_libpmix_open(void)
Philip Kovacs b8027d
 #elif defined PMIXP_V3_LIBPATH
Philip Kovacs b8027d
 	xstrfmtcat(full_path, "%s/", PMIXP_V3_LIBPATH);
Philip Kovacs b8027d
 #endif
Philip Kovacs b8027d
-	xstrfmtcat(full_path, "libpmix.so");
Philip Kovacs b8027d
+	xstrfmtcat(full_path, "libpmix.so.2");
Philip Kovacs 8a8ef7
 
Philip Kovacs c00dbe
 	lib_plug = dlopen(full_path, RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs c00dbe
 	xfree(full_path);
Philip Kovacs 8a8ef7
diff --git a/src/plugins/mpi/pmix/pmixp_dconn_ucx.c b/src/plugins/mpi/pmix/pmixp_dconn_ucx.c
Philip Kovacs b8027d
index f6c91adc93..6021faa01e 100644
Philip Kovacs 8a8ef7
--- a/src/plugins/mpi/pmix/pmixp_dconn_ucx.c
Philip Kovacs 8a8ef7
+++ b/src/plugins/mpi/pmix/pmixp_dconn_ucx.c
Philip Kovacs b8027d
@@ -167,7 +167,7 @@ static int _load_ucx_lib()
Philip Kovacs b8027d
 	 * we have from autoconf
Philip Kovacs b8027d
 	 */
Philip Kovacs b8027d
 	char *full_path = NULL;
Philip Kovacs b8027d
-	xstrfmtcat(full_path, "%s/libucp.so", PMIXP_UCX_LIBPATH);
Philip Kovacs b8027d
+	xstrfmtcat(full_path, "%s/libucp.so.0", PMIXP_UCX_LIBPATH);
Philip Kovacs c00dbe
 	_ucx_lib_handler = dlopen(full_path, RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs c00dbe
 	xfree(full_path);
Philip Kovacs 8a8ef7
 	if (_ucx_lib_handler) {
Philip Kovacs b8027d
@@ -178,7 +178,7 @@ static int _load_ucx_lib()
Philip Kovacs b8027d
 	 * known by dynamic linker.
Philip Kovacs 8a8ef7
 	 */
Philip Kovacs 8a8ef7
 #endif
Philip Kovacs b8027d
-	_ucx_lib_handler = dlopen("libucp.so", RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs b8027d
+	_ucx_lib_handler = dlopen("libucp.so.0", RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs 8a8ef7
 	if (!_ucx_lib_handler) {
Philip Kovacs 8a8ef7
 		char *err = dlerror();
Philip Kovacs 8a8ef7
 		PMIXP_ERROR("Cannot open UCX lib: %s", (err) ? err : "unknown");