public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Cristian Le <git@lecris.dev>
To: git-commits@fedoraproject.org
Subject: [rpms/petsc] rawhide: Account for LD_LIBRARY_PATH in mpi module
Date: Wed, 21 Oct 2026 07:28:26 GMT	[thread overview]
Message-ID: <179256770643.1.7666569046447124252.rpms-petsc-618898951ad4@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-21  7:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179256770643.1.7666569046447124252.rpms-petsc-618898951ad4@fedoraproject.org \
    --to=git@lecris.dev \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox