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 0865bd
index 1a0998d213..c8241056bc 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 0865bd
@@ -79,10 +79,13 @@ const char plugin_name[] = "PMIx plugin";
Philip Kovacs bff578
 
Philip Kovacs bff578
 #if (HAVE_PMIX_VER == 1)
Philip Kovacs bff578
 const char plugin_type[] = "mpi/pmix_v1";
Philip Kovacs bff578
+const char libpmix_soname[] = "libpmix.so.1";
Philip Kovacs bff578
 #elif (HAVE_PMIX_VER == 2)
Philip Kovacs bff578
 const char plugin_type[] = "mpi/pmix_v2";
Philip Kovacs bff578
+const char libpmix_soname[] = "libpmix.so.2";
Philip Kovacs 0865bd
 #elif (HAVE_PMIX_VER == 3)
Philip Kovacs 0865bd
 const char plugin_type[] = "mpi/pmix_v3";
Philip Kovacs 0865bd
+const char libpmix_soname[] = "libpmix.so.3";
Philip Kovacs bff578
 #endif
Philip Kovacs bff578
 
Philip Kovacs bff578
 const uint32_t plugin_version = SLURM_VERSION_NUMBER;
Philip Kovacs 0865bd
@@ -105,7 +108,7 @@ static void *_libpmix_open(void)
Philip Kovacs bff578
 #elif defined PMIXP_V2_LIBPATH
Philip Kovacs bff578
 	xstrfmtcat(full_path, "%s/", PMIXP_V2_LIBPATH);
Philip Kovacs bff578
 #endif
Philip Kovacs bff578
-	xstrfmtcat(full_path, "libpmix.so");
Philip Kovacs bff578
+	xstrfmtcat(full_path, libpmix_soname);
Philip Kovacs bff578
 	lib_plug = dlopen(full_path, RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs bff578
 	xfree(full_path);
Philip Kovacs bff578