RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1274839 - Missing buildrequire libpsm2-devel
Summary: Missing buildrequire libpsm2-devel
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openmpi
Version: 7.2
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: 7.3
Assignee: Michal Schmidt
QA Contact: Mike Stowell
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-23 15:39 UTC by Branislav Náter
Modified: 2017-03-22 16:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-22 16:50:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Branislav Náter 2015-10-23 15:39:44 UTC
Description of problem:
yum-buildep fails to install all build requires.

Version-Release number of selected component (if applicable):
openmpi-1.10.0-10.el7


Steps to Reproduce:
1. yum-builddep openmpi-1.10.0-10.el7.src.rpm
Loaded plugins: product-id
Enabling rhel-source repository
Enabling rhel-opt-source repository
Getting requirements for openmpi-1.10.0-10.el7.src
 --> Already installed : gcc-gfortran-4.8.5-4.el7.x86_64
 --> Already installed : 1:valgrind-devel-3.10.0-16.el7.x86_64
 --> Already installed : libibverbs-devel-1.1.8-8.el7.x86_64
 --> Already installed : opensm-devel-3.3.19-1.el7.x86_64
 --> Already installed : librdmacm-devel-1.0.21-1.el7.x86_64
 --> Already installed : hwloc-devel-1.7-5.el7.x86_64
 --> Already installed : python-2.7.5-34.el7.x86_64
 --> Already installed : libtool-ltdl-devel-2.4.2-20.el7.x86_64
 --> Already installed : libesmtp-devel-1.0.6-7.el7.x86_64
 --> Already installed : libfabric-devel-1.1.0-2.el7.x86_64
No uninstalled build requires

2. su test -c 'rpmbuild --rebuild  openmpi-1.10.0-10.el7.src.rpm*''

Actual results:
warning: user mockbuild does not exist - using root
<snip>
error: Failed build dependencies:
	libpsm2-devel is needed by openmpi-1.10.0-10.el7.x86_64


Expected results:
all build requires are installed and package is successfully rebuilded.

Additional info:
Not sure if a spec issue or yum-buildep bug...

Comment 2 Michal Schmidt 2016-01-15 18:03:12 UTC
The libpsm2 source package surely generates the libpsm2-devel binary package. Need to check if it appears in the expected repositories...

Comment 3 Michal Schmidt 2017-03-22 16:50:51 UTC
libpsm2-devel is in the optional channel, but that was not the issue.

The problem is due to a known limitation in how a src.rpm can express BuildRequires that are arch-specific. openmpi.spec has:

%ifarch x86_64
BuildRequires:          infinipath-psm-devel libpsm2-devel
%endif

If Koji/Brew chooses to create the src.rpm on an x86_64 host, the resulting src.rpm will have libpsm2-devel listed among its Requires. Otherwise it will not.

For instance:
# rpm -qip openmpi-1.10.3-3.el7.src.rpm | grep Arch
Architecture: ppc

This src.srpm was created on a ppc machine. And indeed there is no mention of libpsm2-devel in its Requires:
# rpm -qRp openmpi-1.10.3-3.el7.src.rpm | grep psm
#

If however I first install the src.rpm, and recreate it from the spec file on my local x86_64 host, it will have the Requires recorded:
# rpm -i openmpi-1.10.3-3.el7.src.rpm
...
# cd ~/rpmbuild/SPECS
# rpmbuild -bs openmpi.spec
Wrote: /root/rpmbuild/SRPMS/openmpi-1.10.3-3.el7.src.rpm
# rpm -qRp ../SRPMS/openmpi-1.10.3-3.el7.src.rpm | grep psm
infinipath-psm-devel
libpsm2-devel

For an older discussion about this topic with RPM developers, see bug 948709.


Note You need to log in before you can comment on or make changes to this bug.