FS#80101 - [fftw] Make openmpi an optional dependency

Attached to Project: Arch Linux
Opened by loqs (loqs) - Sunday, 29 October 2023, 22:13 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:26 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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:
* fftw 3.3.10-4
[1] https://sources.debian.org/src/fftw3/3.3.10-1/debian/rules/#L63
[2] https://src.fedoraproject.org/rpms/fftw/blob/1f685fa2628e8eb660e945acb14daf5b20f9dbb4/f/fftw.spec#_350

This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:26 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/fftw/issues/1
Comment by Toolybird (Toolybird) - Sunday, 29 October 2023, 22:28 GMT
Well spotted @loqs. Also,

$ namcap /var/cache/pacman/pkg/fftw-3.3.10-4-x86_64.pkg.tar.zst
fftw W: Dependency included, but may not be needed ('openmpi')

Loading...