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 24291c
index bbb947616c..65ec00ad73 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 24291c
@@ -105,10 +105,17 @@ 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 24291c
+	xstrfmtcat(full_path, "libpmix.so.2");
Philip Kovacs bff578
 	lib_plug = dlopen(full_path, RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs bff578
 	xfree(full_path);
Philip Kovacs bff578
 
Philip Kovacs 24291c
+	if (!lib_plug) {
Philip Kovacs 24291c
+		dlerror();
Philip Kovacs 24291c
+		xstrfmtcat(full_path, "libpmix.so.1");
Philip Kovacs 24291c
+		lib_plug = dlopen(full_path, RTLD_LAZY | RTLD_GLOBAL);
Philip Kovacs 24291c
+		xfree(full_path);
Philip Kovacs 24291c
+	}
Philip Kovacs 24291c
+
Philip Kovacs 24291c
 	if (lib_plug && (HAVE_PMIX_VER != pmixp_lib_get_version())) {
Philip Kovacs 24291c
 		PMIXP_ERROR("pmi/pmix: incorrect PMIx library version loaded %d was loaded, required %d version",
Philip Kovacs 24291c
 			    pmixp_lib_get_version(), (int)HAVE_PMIX_VER);