Bug 1485693

Summary: papi is FTBFS on armv7hl because libibmad is not available
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: papiAssignee: William Cohen <wcohen>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: honli, lberk, wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: papi-5.5.1-6.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-28 15:01:55 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:
Bug Depends On:    
Bug Blocks: 1472725, 1484155    

Description Igor Gnatenko 2017-08-27 09:13:22 UTC
Since recently, rdma-core became non available on armv7hl arch, libibmad did so as well... So papi is FTBFS now..

Comment 1 Honggang LI 2017-08-28 03:04:40 UTC
Following simple patch disables rdma support for ARM32. Please consider apply it. I had a working scratch building for it. Thanks.

https://koji.fedoraproject.org/koji/taskinfo?taskID=21506257

diff --git a/papi.spec b/papi.spec
index e751041..70cbf53 100644
--- a/papi.spec
+++ b/papi.spec
@@ -2,7 +2,7 @@
 Summary: Performance Application Programming Interface
 Name: papi
 Version: 5.5.1
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: BSD
 Group: Development/System
 Requires: papi-libs = %{version}-%{release}
@@ -22,8 +22,10 @@ BuildRequires: libpfm-static >= 4.6.0-1
 %endif
 # Following required for net component
 BuildRequires: net-tools
+%ifnarch %{arm}
 # Following required for inifiband component
 BuildRequires: libibmad-devel
+%endif
 BuildRequires: perl-generators
 #Right now libpfm does not know anything about s390 and will fail
 ExcludeArch: s390 s390x
@@ -87,7 +89,9 @@ autoconf
 pushd components
 #pushd cuda; ./configure; popd
 #pushd host_micpower; ./configure; popd
+%ifnarch %{arm}
 pushd infiniband_umad; %configure; popd
+%endif

Comment 2 William Cohen 2017-08-28 15:01:55 UTC
This fix looks reasonable. papi is back to building on rawhide (https://koji.fedoraproject.org/koji/buildinfo?buildID=962325). Thanks.

Comment 3 Honggang LI 2017-08-29 01:22:26 UTC
(In reply to William Cohen from comment #2)
> This fix looks reasonable. papi is back to building on rawhide
> (https://koji.fedoraproject.org/koji/buildinfo?buildID=962325). Thanks.

This is a f28 build. Could you please backport this patch to f27 branch of papi?

Comment 4 William Cohen 2017-09-11 13:56:18 UTC
Fedora 27 papi has also been rebuilt with this patch:

https://koji.fedoraproject.org/koji/buildinfo?buildID=962646