public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/petsc] rawhide: Account for LD_LIBRARY_PATH in mpi module
@ 2026-10-21  7:28 Cristian Le
  0 siblings, 0 replies; only message in thread
From: Cristian Le @ 2026-10-21  7:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/petsc
Branch : rawhide
Commit : 618898951ad40d2d3c89817337bc5de3de0d037c
Author : Cristian Le <git@lecris.dev>
Date   : 2026-10-20T15:52:11+02:00
Stats  : +8/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/petsc/c/618898951ad40d2d3c89817337bc5de3de0d037c?branch=rawhide

Log:
Account for LD_LIBRARY_PATH in mpi module

---
diff --git a/petsc.spec b/petsc.spec
index 317f139..fb0cd29 100644
--- a/petsc.spec
+++ b/petsc.spec
@@ -1036,7 +1036,7 @@ pushd buildopenmpi_dir
 export PETSC_ARCH=%{_arch}
 export PETSC_DIR=./
 export PYTHONPATH=%{buildroot}$MPI_PYTHON3_SITEARCH
-export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
+export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB:${LD_LIBRARY_PATH}
 export MPIEXEC=lib/petsc/bin/petscmpiexec
 export PMIX_MCA_gds=hash
 export PMIX_MCA_psec=native
@@ -1044,6 +1044,7 @@ make V=1 petsc4pytest PETSC4PY_NP=2
 unset PETSC_ARCH
 unset PETSC_DIR
 %{_openmpi_unload}
+unset LD_LIBRARY_PATH
 popd
 %endif
 %endif
@@ -1054,7 +1055,7 @@ pushd buildopenmpi_dir
 export PETSC_DIR=%{_builddir}/%{name}-%{version}/buildopenmpi_dir
 export PETSC_ARCH=%{_arch}
 export PYTHONPATH=%{buildroot}$MPI_PYTHON3_SITEARCH
-export LD_LIBRARY_PATH=${PETSC_DIR}/${PETSC_ARCH}/lib
+export LD_LIBRARY_PATH=${PETSC_DIR}/${PETSC_ARCH}/lib:${LD_LIBRARY_PATH}
 export MPI_INTERFACE_HOSTNAME=localhost
 export OMPI_MCA_btl_base_warn_component_unused=0
 export wPETSC_DIR=./
@@ -1076,6 +1077,7 @@ make print-test test-fail=1 | tr ' ' '\n' | sort
 make check V=0 NP=2
 %endif
 %{_openmpi_unload}
+unset LD_LIBRARY_PATH
 popd
 %endif
 %endif
@@ -1088,7 +1090,7 @@ pushd buildmpich_dir
 export PETSC_ARCH=%{_arch}
 export PETSC_DIR=./
 export PYTHONPATH=%{buildroot}$MPI_PYTHON3_SITEARCH
-export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB
+export LD_LIBRARY_PATH=%{buildroot}$MPI_LIB:${LD_LIBRARY_PATH}
 export MPIEXEC=lib/petsc/bin/petscmpiexec
 export PMIX_MCA_gds=hash
 export PMIX_MCA_psec=native
@@ -1097,6 +1099,7 @@ export PMIX_MCA_psec=native
 unset PETSC_ARCH
 unset PETSC_DIR
 %{_mpich_unload}
+unset LD_LIBRARY_PATH
 popd
 %endif
 %endif
@@ -1106,7 +1109,7 @@ pushd buildmpich_dir
 %{_mpich_load}
 export PETSC_DIR=%{_builddir}/%{name}-%{version}/buildmpich_dir
 export PETSC_ARCH=%{_arch}
-export LD_LIBRARY_PATH=${PETSC_DIR}/${PETSC_ARCH}/lib
+export LD_LIBRARY_PATH=${PETSC_DIR}/${PETSC_ARCH}/lib:${LD_LIBRARY_PATH}
 export PYTHONPATH=%{buildroot}$MPI_PYTHON3_SITEARCH
 export MPI_INTERFACE_HOSTNAME=localhost
 export OMPI_MCA_btl_base_warn_component_unused=0
@@ -1127,6 +1130,7 @@ make print-test test-fail=1 | tr ' ' '\n' | sort
 make check V=0 NP=2
 %endif
 %{_mpich_unload}
+unset LD_LIBRARY_PATH
 popd
 %endif
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-21  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21  7:28 [rpms/petsc] rawhide: Account for LD_LIBRARY_PATH in mpi module Cristian Le

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox