From ce8ba4ac1bd4bcce95d434ba9aac5091efe61ae7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 23 2019 02:04:59 +0000 Subject: import libehca-1.2.2-6.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..828036f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libehca-1.2.2-0.1.g69e1a88.tar.gz diff --git a/.libehca.metadata b/.libehca.metadata new file mode 100644 index 0000000..c947782 --- /dev/null +++ b/.libehca.metadata @@ -0,0 +1 @@ +b788aa25c6188b21ab8918df059c5d8889d0b949 SOURCES/libehca-1.2.2-0.1.g69e1a88.tar.gz diff --git a/SOURCES/libehca-verbs-API.patch b/SOURCES/libehca-verbs-API.patch new file mode 100644 index 0000000..a2d3603 --- /dev/null +++ b/SOURCES/libehca-verbs-API.patch @@ -0,0 +1,112 @@ +diff -uprN libehca-1.2.1.save/src/ehca_uclasses.h libehca-1.2.1/src/ehca_uclasses.h +--- libehca-1.2.1.save/src/ehca_uclasses.h 2009-08-31 07:21:44.000000000 -0400 ++++ libehca-1.2.1/src/ehca_uclasses.h 2009-12-21 22:43:39.980745234 -0500 +@@ -155,7 +155,7 @@ int ehcau_dealloc_pd(struct ibv_pd *pd); + + struct ibv_mr *ehcau_reg_mr(struct ibv_pd *pd, + void *addr, +- size_t length, enum ibv_access_flags access); ++ size_t length, int access); + + int ehcau_dereg_mr(struct ibv_mr *mr); + +@@ -192,7 +192,7 @@ struct ibv_qp *ehcau_create_qp(struct ib + struct ibv_qp_init_attr *attr); + + int ehcau_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, +- enum ibv_qp_attr_mask attr_mask); ++ int attr_mask); + + int ehcau_destroy_qp(struct ibv_qp *qp); + +@@ -208,7 +208,7 @@ struct ibv_srq *ehcau_create_srq(struct + struct ibv_srq_init_attr *attr); + + int ehcau_modify_srq(struct ibv_srq *srq, struct ibv_srq_attr *attr, +- enum ibv_srq_attr_mask attr_mask); ++ int attr_mask); + + int ehcau_query_srq(struct ibv_srq *srq, struct ibv_srq_attr *srq_attr); + +@@ -233,12 +233,14 @@ int ehcau_req_notify_cq(struct ibv_cq *c + + int ehcau_poll_cq(struct ibv_cq *cq, int num_entries, struct ibv_wc *wc); + +-int ehcau_attach_mcast(struct ibv_qp *qp, union ibv_gid *gid, uint16_t lid); ++int ehcau_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, ++ uint16_t lid); + +-int ehcau_detach_mcast(struct ibv_qp *qp, union ibv_gid *gid, uint16_t lid); ++int ehcau_detach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, ++ uint16_t lid); + + int ehcau_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *qp_attr, +- enum ibv_qp_attr_mask attr_mask, ++ int attr_mask, + struct ibv_qp_init_attr* init_attr); + + /* +diff -uprN libehca-1.2.1.save/src/ehca_umain.c libehca-1.2.1/src/ehca_umain.c +--- libehca-1.2.1.save/src/ehca_umain.c 2009-08-31 07:21:44.000000000 -0400 ++++ libehca-1.2.1/src/ehca_umain.c 2009-12-21 22:47:04.090745296 -0500 +@@ -496,8 +496,7 @@ create_qp_exit0: + return NULL; + } + +-int ehcau_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, +- enum ibv_qp_attr_mask attr_mask) ++int ehcau_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, int attr_mask) + { + int ret; + struct ibv_modify_qp cmd; +@@ -654,7 +653,7 @@ create_srq_exit0: + } + + int ehcau_modify_srq(struct ibv_srq *srq, struct ibv_srq_attr *attr, +- enum ibv_srq_attr_mask attr_mask) ++ int attr_mask) + { + int ret; + struct ibv_modify_srq cmd; +@@ -856,7 +855,8 @@ int ehcau_destroy_ah(struct ibv_ah *ah) + return 0; + } + +-int ehcau_attach_mcast(struct ibv_qp *qp, union ibv_gid *gid, uint16_t lid) ++int ehcau_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, ++ uint16_t lid) + { + int ret; + struct ehcau_qp *my_qp; +@@ -874,7 +874,8 @@ int ehcau_attach_mcast(struct ibv_qp *qp + return ret; + } + +-int ehcau_detach_mcast(struct ibv_qp *qp, union ibv_gid *gid, uint16_t lid) ++int ehcau_detach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, ++ uint16_t lid) + { + int ret; + struct ehcau_qp *my_qp; +@@ -894,8 +895,7 @@ int ehcau_detach_mcast(struct ibv_qp *qp + + + int ehcau_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *qp_attr, +- enum ibv_qp_attr_mask attr_mask, +- struct ibv_qp_init_attr* init_attr) ++ int attr_mask, struct ibv_qp_init_attr* init_attr) + { + int ret; + struct ehcau_qp *my_qp; +diff -uprN libehca-1.2.1.save/src/ehca_u_mrmw.c libehca-1.2.1/src/ehca_u_mrmw.c +--- libehca-1.2.1.save/src/ehca_u_mrmw.c 2009-02-27 09:40:46.000000000 -0500 ++++ libehca-1.2.1/src/ehca_u_mrmw.c 2009-12-21 22:44:34.148751215 -0500 +@@ -46,7 +46,7 @@ + struct ibv_mr *ehcau_reg_mr(struct ibv_pd *pd, + void *addr, + size_t length, +- enum ibv_access_flags access) ++ int access) + { + int ret; + struct ibv_mr *mr; diff --git a/SPECS/libehca.spec b/SPECS/libehca.spec new file mode 100644 index 0000000..6540676 --- /dev/null +++ b/SPECS/libehca.spec @@ -0,0 +1,119 @@ +Name: libehca +Version: 1.2.2 +Release: 6%{?dist} +Summary: IBM InfiniBand HCA Userspace Driver +Group: System Environment/Libraries +License: GPLv2 or BSD +Url: http://www.openfabrics.org/ +Source: http://www.openfabrics.org/downloads/%{name}/%{name}-%{version}-0.1.g69e1a88.tar.gz +Patch0: libehca-verbs-API.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libibverbs-devel > 1.1.4, autoconf, libtool +ExclusiveArch: ppc ppc64 +Provides: libibverbs-driver.%{_arch} +Obsoletes: %{name}-devel +%description +IBM hardware driver for use with libibverbs user space verbs access +library. + +%package static +Summary: Static version of the libehca driver +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +%description static +Static version of libehca that may be linked directly to an application. + +%prep +%setup -q +%patch0 -p1 -b .api + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_libdir}/*.so* +%{_sysconfdir}/libibverbs.d/*.driver +%doc COPYING + +%files static +%defattr(-,root,root,-) +%{_libdir}/*.a + +%changelog +* Tue Dec 23 2014 Doug Ledford - 1.2.2-6 +- Add requires on rdma +- Related: bz1164618 + +* Mon Mar 03 2014 Doug Ledford - 1.2.2-5 +- Bump and rebuild against latest libibverbs +- Related: bz1062281 + +* Fri Dec 27 2013 Daniel Mach - 1.2.2-4 +- Mass rebuild 2013-12-27 + +* Mon Jan 23 2012 Doug Ledford - 1.2.2-3 +- Bump and rebuild against latest libibverbs (FDR support) +- Related: bz750609 + +* Mon Jul 25 2011 Doug Ledford - 1.2.2-2 +- Add libibverbs-driver.%%{_arch} provide +- Related: bz725016 + +* Fri Jul 22 2011 Doug Ledford - 1.2.2-1 +- Update to latest upstream source (1.2.1 -> 1.2.2) +- Related: bz725016 + +* Mon Jan 25 2010 Doug Ledford - 1.2.1-6.el6 +- Updates for pkgwrangler issues +- Related: bz543948 + +* Mon Dec 21 2009 Doug Ledford - 1.2.1-5.el5 +- Add API patch for new libibverbs API +- buildrequire a few things that the build logs say it wants + +* Mon Dec 21 2009 Doug Ledford - 1.2.1-4.el5 +- Bump tarball to updated OFED tarball +- Build against latest libibverbs +- Related: bz518218 + +* Mon Jun 22 2009 Doug Ledford - 1.2.1-3.el5 +- Bump buildrequires to a version of libibverbs that has a known good ppc + memory sync +- Related: bz506258 + +* Sun Jun 21 2009 Doug Ledford - 1.2.1-2.el5 +- Rebuild against non-XRC libibverbs +- Related: bz506258 + +* Fri Apr 17 2009 Doug Ledford - 1.2.1-1.el5 +- Update to ofed 1.4.1-rc3 version +- Related: bz459652 + +* Tue Sep 16 2008 Doug Ledford - 1.2-2 +- The libibverbs-1.1.2 package includes a ppc specific barrier fix in its + arch header file, therefore bump and rebuild even though no changes are + present in this library itself. +- Resolves: bz451455 + +* Tue Apr 01 2008 Doug Ledford - 1.2-1 +- Update to OFED 1.3 final bits +- Related: bz428197 + +* Thu Feb 14 2008 Doug Ledford - 1.0-1 +- Bump release to sane value +- Obsolete old -devel package +- Related: bz432765 + +* Tue Jan 15 2008 Doug Ledford - 1.0-0.1 +- Initial import of package