Make openmpi an optional dependency

Task Info (Flyspray)
Opened By loqs (loqs)
Task ID 80101
Type Feature Request
Project Arch Linux
Category Packages: Extra
Version None
OS All
Opened 2023-10-29 22:13:49 UTC
Status Assigned
Assignee David Runge (dvzrv)

Details

Description: fftw is built with support for parallelism using either threads or openmpi but neither is required to use fftw. Nothing in the repositories appears to currently be using fftw's openmpi support: $ sogrep all libfftw3_mpi.so.3 $ sogrep all libfftw3f_mpi.so.3 $ sogrep all libfftw3l_mpi.so.3 Additionally the openmpi based libraries may currently be broken as they do not link to libmpi.so. The attached diff moves openmpi from depends to makedepends and optdepends. It also links the openmpi based libraries with the flags from mpicc --showme:link [1] an alternative would be setting CC=mpicc [2].

Additional info:

Attachments

PKGBUILD.diff