File bsc1239810_06-configure-use-mpicc4-to-replace-mpicc1.patch of Package ocfs2-test
From 730f5163e2be2e5954236fd4fe2fe94676b85dce Mon Sep 17 00:00:00 2001
From: Heming Zhao <heming.zhao@suse.com>
Date: Fri, 28 Mar 2025 14:36:15 +0800
Subject: [PATCH 6/6] configure: use mpicc4 to replace mpicc1
mpicc1 is too old to use. This commit update configure.ac to use
mpicc4 to set up $PATH.
Signed-off-by: Heming Zhao <heming.zhao@suse.com>
---
configure.ac | 2 +-
programs/python_common/setup.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 019707149edb..bd9e5085b9ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ PACKAGE=ocfs2-test
AC_SUBST(PACKAGE)
-MPICC=`PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin:/usr/lib64/mpi/gcc/openmpi1/bin which mpicc`
+MPICC=`PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin:/usr/lib64/mpi/gcc/openmpi4/bin which mpicc`
INSTALLDIR=/usr/local
# Adjust these for the software version.
MAJOR_VERSION=1
diff --git a/programs/python_common/setup.sh b/programs/python_common/setup.sh
index 0ada8ea0af60..ea9866125039 100755
--- a/programs/python_common/setup.sh
+++ b/programs/python_common/setup.sh
@@ -23,7 +23,7 @@ if [ $# -ne 1 -a $# -ne 2 ]; then
exit 1;
fi;
-MPIRUN=`PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin:/usr/lib64/mpi/gcc/openmpi1/bin which mpirun`
+MPIRUN=`PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin:/usr/lib64/mpi/gcc/openmpi4/bin which mpirun`
RC=$?
if [ "$RC" != "0" ];then
MPIRUN=`rpm -ql openmpi|grep bin|grep mpirun`
--
2.43.0