Explorar el Código

build: Remove rdma/ibverbs

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse hace 8 años
padre
commit
589ed92505
Se han modificado 4 ficheros con 3 adiciones y 56 borrados
  1. 1 37
      INSTALL
  2. 0 13
      corosync.spec.in
  3. 2 3
      exec/Makefile.am
  4. 0 3
      exec/totemnet.c

+ 1 - 37
INSTALL

@@ -45,48 +45,12 @@ balance:~/corosync# make install
 We have strived very hard to avoid dependencies as much as possible, but there
 We have strived very hard to avoid dependencies as much as possible, but there
 are two required libraries: LibQB and NSS.
 are two required libraries: LibQB and NSS.
 
 
-Optional dependencies are support for Infiniband RDMA, DBUS, SNMP and libstatgrab.
+Optional dependencies are support for DBUS, SNMP and libstatgrab.
 
 
 The nss packages required to build corosync can usually be found by
 The nss packages required to build corosync can usually be found by
 installing the "nss-devel" and "nspr-devel" packages (names may vary, please use
 installing the "nss-devel" and "nspr-devel" packages (names may vary, please use
 distribution's package manager). Also don't forget to install pkgconfig.
 distribution's package manager). Also don't forget to install pkgconfig.
 
 
------------------------------------------
-* Building with Infiniband RDMA support *
------------------------------------------
-Infiniband RDMA build support is disabled by default.  To enable rdma during
-building:
-balance:~/corosync% ./configure --enable-rdma
-
-Infiniband rdma support requires the libibverbs and librdmacm packages (and
-their -devel counterparts).  Corosync requires the use of pkgconfig in these
-packages.  The Corosync maintainers have sent patches for this feature upstream
-to the Infiniband maintainers.
-
-If your version of these packages don't have pkgconfig support, you will see an
-error during configure such as:
-
-checking for ibverbs... configure: error: Package requirements (ibverbs) were not met:
-
-No package 'ibverbs' found
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-Alternatively, you may set the environment variables ibverbs_CFLAGS
-and ibverbs_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.
-
-** Follow the directions:
-balance:~/corosync/trunk% export ibverbs_CFLAGS=-I/usr/include/infiniband
-balance:~/corosync/trunk% export ibverbs_LIBS=-libverbs
-balance:~/corosync/trunk% export rdmacm_CFLAGS=-I/usr/include/rdma
-balance:~/corosync/trunk% export rdmacm_LIBS=-lrdmacm
-balance:~/corosync/trunk% ./configure --enable-rdma
-
-Hopefully pkgconfig support is added in your distribution's version of
-libibverbs and librdmacm soon if you run into this problem.
-
 -----------------------------------------
 -----------------------------------------
 * Building with SNMP/DBUS support *
 * Building with SNMP/DBUS support *
 -----------------------------------------
 -----------------------------------------

+ 0 - 13
corosync.spec.in

@@ -10,7 +10,6 @@
 %bcond_with monitoring
 %bcond_with monitoring
 %bcond_with snmp
 %bcond_with snmp
 %bcond_with dbus
 %bcond_with dbus
-%bcond_with rdma
 %bcond_with systemd
 %bcond_with systemd
 %bcond_with upstart
 %bcond_with upstart
 %bcond_with xmlconf
 %bcond_with xmlconf
@@ -50,9 +49,6 @@ BuildRequires: autoconf automake libtool
 %if %{with monitoring}
 %if %{with monitoring}
 BuildRequires: libstatgrab-devel
 BuildRequires: libstatgrab-devel
 %endif
 %endif
-%if %{with rdma}
-BuildRequires: libibverbs-devel librdmacm-devel
-%endif
 %if %{with snmp}
 %if %{with snmp}
 BuildRequires: net-snmp-devel
 BuildRequires: net-snmp-devel
 %endif
 %endif
@@ -83,12 +79,6 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 ./autogen.sh
 ./autogen.sh
 %endif
 %endif
 
 
-%if %{with rdma}
-export ibverbs_CFLAGS=-I/usr/include/infiniband \
-export ibverbs_LIBS=-libverbs \
-export rdmacm_CFLAGS=-I/usr/include/rdma \
-export rdmacm_LIBS=-lrdmacm \
-%endif
 %{configure} \
 %{configure} \
 %if %{with testagents}
 %if %{with testagents}
 	--enable-testagents \
 	--enable-testagents \
@@ -105,9 +95,6 @@ export rdmacm_LIBS=-lrdmacm \
 %if %{with dbus}
 %if %{with dbus}
 	--enable-dbus \
 	--enable-dbus \
 %endif
 %endif
-%if %{with rdma}
-	--enable-rdma \
-%endif
 %if %{with systemd}
 %if %{with systemd}
 	--enable-systemd \
 	--enable-systemd \
 %endif
 %endif

+ 2 - 3
exec/Makefile.am

@@ -45,10 +45,9 @@ TOTEM_SRC		= totemip.c totemnet.c totemudp.c \
 
 
 lib_LTLIBRARIES		= libtotem_pg.la
 lib_LTLIBRARIES		= libtotem_pg.la
 libtotem_pg_la_SOURCES	= $(TOTEM_SRC)
 libtotem_pg_la_SOURCES	= $(TOTEM_SRC)
-libtotem_pg_la_CFLAGS	= $(nss_CFLAGS) $(rdmacm_CFLAGS) $(ibverbs_CFLAGS)
+libtotem_pg_la_CFLAGS	= $(nss_CFLAGS)
 libtotem_pg_la_LDFLAGS	= -version-number $(subst .,:,$(SONAME))
 libtotem_pg_la_LDFLAGS	= -version-number $(subst .,:,$(SONAME))
-libtotem_pg_la_LIBADD	= -lpthread $(LIBQB_LIBS) $(nss_LIBS) \
-			  $(rdmacm_LIBS) $(ibverbs_LIBS) -lknet
+libtotem_pg_la_LIBADD	= -lpthread $(LIBQB_LIBS) $(nss_LIBS) -lknet
 
 
 sbin_PROGRAMS		= corosync
 sbin_PROGRAMS		= corosync
 
 

+ 0 - 3
exec/totemnet.c

@@ -37,9 +37,6 @@
 
 
 #include <assert.h>
 #include <assert.h>
 
 
-#ifdef HAVE_RDMA
-#include <totemiba.h>
-#endif
 #include <totemudp.h>
 #include <totemudp.h>
 #include <totemudpu.h>
 #include <totemudpu.h>
 #include <totemknet.h>
 #include <totemknet.h>