Bug 1839580

Summary: pkg-config error for scalapack with openmpi; requires 'mpi' not 'ompi'
Product: [Fedora] Fedora Reporter: Jonas L. B. <drixi.b>
Component: scalapackAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: dakingun, david.brown, tcallawa, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: scalapack-2.1.0-3.fc32 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-26 00:46:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonas L. B. 2020-05-24 21:42:02 UTC
Description of problem:

Installing scalapack-openmpi-devel provides scalapack.pc in /usr/lib64/openmpi/lib/pkgconfig. In this file, it is specified that scalapack requires 'mpi', but openmpi goes under the name 'ompi' (there's an ompi.pc file). 
This means that when pkg-config is queried eg. for libs or version (with PKG_CONFIG_PATH set to include this directory) for scalapack, an error occurs:

```
Package mpi was not found in the pkg-config search path.
Perhaps you should add the directory containing `mpi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'mpi', required by 'scalapack', not found
```

Changing the requirement from 'mpi' to 'ompi' fixes the issue.

Version-Release number of selected component (if applicable):
2.1.0-2.fc32

How reproducible:
Always

Steps to Reproduce:
Described above

Actual results:
pkg-config error

Expected results:
pkg-config queries on scalapack give results

Additional info:
I am experimenting a bit with meson for a project that uses scalapack. This issue means meson currently cannot find scalapack (without the workaround) as it uses pkg-config.

Comment 1 Fedora Update System 2020-06-17 18:52:51 UTC
FEDORA-2020-5a53f9ed03 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5a53f9ed03

Comment 2 Fedora Update System 2020-06-18 14:14:13 UTC
FEDORA-2020-5a53f9ed03 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-5a53f9ed03`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-5a53f9ed03

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2020-06-26 00:46:09 UTC
FEDORA-2020-5a53f9ed03 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.