[packages/glusterfs] - updated to 3.3.1 (now builds with current glibc/linux headers) - updated parallel-build,workdir pa

qboosh qboosh at pld-linux.org
Tue Dec 18 22:04:38 CET 2012


commit 4d40ce33f454852a263964b2f718a2de5bdff89c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 18 22:05:44 2012 +0100

    - updated to 3.3.1 (now builds with current glibc/linux headers)
    - updated parallel-build,workdir patches
    - added link patch (fixes mistaken xdr/rpc libs linking)
    - obsolete -static, libglusterfs relies on dlopening

 glusterfs-link.patch           |  28 +++++++
 glusterfs-parallel-build.patch |  13 ----
 glusterfs-workdir.patch        |  22 ++----
 glusterfs.spec                 | 169 ++++++++++++++++++++---------------------
 4 files changed, 116 insertions(+), 116 deletions(-)
---
diff --git a/glusterfs.spec b/glusterfs.spec
index 30de4d5..5645bf8 100644
--- a/glusterfs.spec
+++ b/glusterfs.spec
@@ -1,36 +1,38 @@
 # TODO: Find pidfiles killproc --pidfile ${PIDFILE} -TERM
 #       instead of kill -TERM ${PID}
-# TODO: Decide what to do with -static
-#       Obsolete it, fix build ?
 # TODO: Check transport-ibverbs package and ibverbs bcond
 # TODO: Add passing options from /etc/sysconfig/glusterfsd
 #       to glusterfsd
-
+#
+# Conditional build:
 %bcond_without	ibverbs		# ib-verbs transport
 #
 Summary:	Clustered File Storage that can scale to peta bytes
 Summary(pl.UTF-8):	Klastrowy system przechowywania plików skalujący się do petabajtów
 Name:		glusterfs
-Version:	3.1.2
-#%%define	_rc	{rc2}
-%define		_version	%{version}
+Version:	3.3.1
 Release:	1
-License:	AGPLv3
+License:	LGPL v3+ or GPL v2 (libraries), GPL v3+ (programs)
 Group:		Applications/System
-# http://download.gluster.com/pub/gluster/glusterfs/3.1/LATEST/glusterfs-3.1.1.tar.gz
-Source0:	http://ftp.gluster.com/pub/gluster/glusterfs/3.1/LATEST/glusterfs-%{version}.tar.gz
-# Source0-md5:	9dee75180db951cde971722f80779769
+Source0:	http://download.gluster.org/pub/gluster/glusterfs/LATEST/glusterfs-%{version}.tar.gz
+# Source0-md5:	4c9f291de887b1193d5d1acac4003360
 Source1:	glusterfsd.init
 Patch0:		%{name}-parallel-build.patch
 Patch1:		%{name}-workdir.patch
+Patch2:		%{name}-link.patch
 URL:		http://www.gluster.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	bison
 BuildRequires:	flex
+BuildRequires:	libaio-devel
 BuildRequires:	libfuse-devel >= 2.6
 %{?with_ibverbs:BuildRequires:	libibverbs-devel >= 1.0.4}
 BuildRequires:	libtool
+BuildRequires:	libxml2-devel >= 1:2.6.19
+BuildRequires:	openssl-devel
+BuildRequires:	pkgconfig
+BuildRequires:	python >= 1:2.4
 BuildRequires:	readline-devel
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.228
@@ -58,6 +60,7 @@ jest łatwo zarządzalna.
 Summary:	GlusterFS Library and Translators
 Summary(pl.UTF-8):	Biblioteka i translatory GlusterFS-a
 Group:		Libraries
+Requires:	libxml2 >= 1:2.6.19
 
 %description common
 GlusterFS is a clustered file-system capable of scaling to several
@@ -88,6 +91,10 @@ Summary:	GlusterFS development files
 Summary(pl.UTF-8):	Pliki programistyczne GlusterFS-a
 Group:		Development/Libraries
 Requires:	%{name}-common = %{version}-%{release}
+# -lfl
+Requires:	flex
+Requires:	openssl-devel
+Obsoletes:	glusterfs-static
 
 %description devel
 This package provides the development files for GlusterFS library.
@@ -95,18 +102,6 @@ This package provides the development files for GlusterFS library.
 %description devel -l pl.UTF-8
 Ten pakiet udostępnia pliki programistyczne biblioteki GlusterFS-a.
 
-# %package static
-# Summary:	Static GlusterFS library
-# Summary(pl.UTF-8):	Statyczna biblioteka GlusterFS-a
-# Group:		Development/Libraries
-# Requires:	%{name}-devel = %{version}-%{release}
-#
-# %description static
-# Static GlusterFS library.
-# 
-# %description static -l pl.UTF-8
-# Statyczna biblioteka GlusterFS-a.
-
 %package transport-ibverbs
 Summary:	InfiniBand "verbs" transport plugins for GlusterFS
 Summary(pl.UTF-8):	Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a
@@ -149,12 +144,11 @@ This package provides the FUSE based GlusterFS client.
 Ten pakiet udostępnia opartego na FUSE klienta GlusterFS-a.
 
 %prep
-%setup -q -n %{name}-%{_version}
+%setup -q
 %patch0 -p0
 %patch1 -p1
-%{__sed} -i -e 's|-avoidversion|-avoid-version|g'  */*/*/Makefile.am  */*/*/*/Makefile.am
-cp -l doc/examples/README README.examples
-
+%patch2 -p1
+find xlators rpc -name Makefile.am | xargs %{__sed} -i -e 's|-avoidversion|-avoid-version|g'
 
 %build
 %{__libtoolize}
@@ -162,16 +156,15 @@ cp -l doc/examples/README README.examples
 %{__autoconf}
 %{__automake}
 %configure \
+	--disable-silent-rules \
 	--enable-fusermount \
 	%{!?with_ibverbs:--disable-ibverbs}
 
-# -j8 breaks for 3.0.5
-# %{__make} -j1
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
-install -d $RPM_BUILD_ROOT%{_var}/lib/glusterd/
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/lib/glusterd}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -181,7 +174,9 @@ mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/glusterd.vol $RPM_BUILD_ROOT%{_sysconfd
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/glusterfsd
 
-rm -r $RPM_BUILD_ROOT%{_docdir}/glusterfs/examples
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/glusterfs/%{version}/*/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/glusterfs/%{version}/*/*/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/glusterfs/%{version}/*/*/*/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -191,7 +186,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files common
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog COPYING INSTALL NEWS README README.examples doc/*.vol.sample doc/examples/*.vol
+%doc ChangeLog NEWS README THANKS doc/*.vol.sample
 %dir %{_sysconfdir}/%{name}
 %attr(755,root,root) %{_libdir}/libgfrpc.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libgfrpc.so.0
@@ -204,51 +199,54 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/glusterfsd
 
 %dir %{_libdir}/glusterfs
-# %attr(755,root,root) %{_libdir}/glusterfs/libglusterfs-booster.so.*.*.*
-# %attr(755,root,root) %ghost %{_libdir}/glusterfs/libglusterfs-booster.so.0
-
-%dir %{_libdir}/glusterfs/%{_version}
-%dir %{_libdir}/glusterfs/%{_version}/auth
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/auth/addr.so*
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/auth/login.so*
-
-%dir %{_libdir}/glusterfs/%{_version}/rpc-transport
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/rpc-transport/socket.so
-
-%dir %{_libdir}/glusterfs/%{_version}/xlator
-%dir %{_libdir}/glusterfs/%{_version}/xlator/cluster
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/cluster/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/debug
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/debug/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/encryption
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/encryption/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/features
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/features/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/mount
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/mount/fuse.so
-
-%dir %{_libdir}/glusterfs/%{_version}/xlator/mgmt
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/mgmt/glusterd.so
-
-%dir %{_libdir}/glusterfs/%{_version}/xlator/mount
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/mount/fuse.so
-
-%dir %{_libdir}/glusterfs/%{_version}/xlator/nfs
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/nfs/server.so
-
-%dir %{_libdir}/glusterfs/%{_version}/xlator/performance
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/performance/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/protocol
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/protocol/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/storage
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/storage/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/testing
-%dir %{_libdir}/glusterfs/%{_version}/xlator/testing/features
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/testing/features/*.so
-%dir %{_libdir}/glusterfs/%{_version}/xlator/testing/performance
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/testing/performance/*.so
-
-%{_mandir}/man8/*.8*
+
+%dir %{_libdir}/glusterfs/%{version}
+%dir %{_libdir}/glusterfs/%{version}/auth
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/auth/addr.so
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/auth/login.so
+
+%dir %{_libdir}/glusterfs/%{version}/rpc-transport
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/rpc-transport/socket.so
+
+%dir %{_libdir}/glusterfs/%{version}/xlator
+%dir %{_libdir}/glusterfs/%{version}/xlator/cluster
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/cluster/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/debug
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/debug/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/encryption
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/encryption/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/features
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/features/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/mount
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/mount/fuse.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/mgmt
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/mgmt/glusterd.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/mount
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/mount/fuse.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/nfs
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/nfs/server.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/performance
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/performance/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/protocol
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/protocol/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/storage
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/storage/*.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/system
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/system/posix-acl.so
+%dir %{_libdir}/glusterfs/%{version}/xlator/testing
+%dir %{_libdir}/glusterfs/%{version}/xlator/testing/performance
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/xlator/testing/performance/*.so
+
+%attr(755,root,root) %{_libdir}/glusterfs/gsyncd
+
+%dir %{_libdir}/glusterfs/python
+%dir %{_libdir}/glusterfs/python/syncdaemon
+# gsyncd.py is a script, the rest probably don't require *.py
+%{_libdir}/glusterfs/python/syncdaemon/*.py*
+
+# disabled in sources
+#%{_mandir}/man8/glusterfs.8*
+#%{_mandir}/man8/glusterfsd.8*
 %dir %{_var}/log/glusterfs
 
 %files devel
@@ -260,16 +258,10 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libgfxdr.so
 %{_libdir}/libgfxdr.la
 
-
-# %files static
-# %defattr(644,root,root,755)
-# %{_libdir}/libglusterfs.a
-
-
 %if %{with ibverbs}
 %files transport-ibverbs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/rpc-transport/rdma.so
+%attr(755,root,root) %{_libdir}/glusterfs/%{version}/rpc-transport/rdma.so
 %endif
 
 %files server
@@ -277,12 +269,15 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/glusterfsd.vol
 %attr(754,root,root) /etc/rc.d/init.d/glusterfsd
 %attr(755,root,root) %{_sbindir}/glusterd
-%dir %{_var}/lib/glusterd/
+# disabled in sources
+#%{_mandir}/man8/glusterd.8*
+%dir %{_var}/lib/glusterd
 
 %files client
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/fusermount-glusterfs
-%attr(755,root,root) %{_bindir}/glusterfs-volgen
-%attr(755,root,root) %{_bindir}/glusterfs-defrag
 %attr(755,root,root) /sbin/mount.glusterfs
 %attr(755,root,root) %{_sbindir}/gluster
+%{_mandir}/man8/gluster.8*
+# disabled in sources
+#%{_mandir}/man8/mount.glusterfs.8*
diff --git a/glusterfs-link.patch b/glusterfs-link.patch
new file mode 100644
index 0000000..09f18d8
--- /dev/null
+++ b/glusterfs-link.patch
@@ -0,0 +1,28 @@
+--- glusterfs-3.3.1/rpc/Makefile.am.orig	2012-12-17 22:48:54.435191720 +0100
++++ glusterfs-3.3.1/rpc/Makefile.am	2012-12-17 22:56:20.508515756 +0100
+@@ -1 +1 @@
+-SUBDIRS = rpc-lib rpc-transport xdr
++SUBDIRS = xdr rpc-lib rpc-transport
+--- glusterfs-3.3.1/rpc/rpc-lib/src/Makefile.am.orig	2012-12-17 22:16:10.205232660 +0100
++++ glusterfs-3.3.1/rpc/rpc-lib/src/Makefile.am	2012-12-17 22:48:22.138525726 +0100
+@@ -3,7 +3,7 @@
+ libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
+ 	rpc-transport.c xdr-rpc.c xdr-rpcclnt.c rpc-clnt.c auth-glusterfs.c
+ 
+-libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
++libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(top_builddir)/rpc/xdr/src/libgfxdr.la
+ 
+ noinst_HEADERS = rpcsvc.h rpc-transport.h xdr-common.h xdr-rpc.h xdr-rpcclnt.h \
+ 	rpc-clnt.h rpcsvc-common.h protocol-common.h
+--- glusterfs-3.3.1/rpc/xdr/src/Makefile.am.orig	2012-12-17 22:56:45.071848577 +0100
++++ glusterfs-3.3.1/rpc/xdr/src/Makefile.am	2012-12-17 23:12:22.731829033 +0100
+@@ -6,8 +6,7 @@
+ 			-D_GNU_SOURCE -D$(GF_HOST_OS) \
+ 			-I$(top_srcdir)/libglusterfs/src -I$(top_srcdir)/rpc/rpc-lib/src
+ 
+-libgfxdr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
+-		$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la
++libgfxdr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
+ 
+ libgfxdr_la_SOURCES =  xdr-generic.c rpc-common-xdr.c \
+ 			glusterfs3-xdr.c \
diff --git a/glusterfs-parallel-build.patch b/glusterfs-parallel-build.patch
index 9320c12..11c7875 100644
--- a/glusterfs-parallel-build.patch
+++ b/glusterfs-parallel-build.patch
@@ -7,16 +7,3 @@
 +	$(INSTALL) -d -m 755 $(DESTDIR)$(sbindir)
  	rm -f $(DESTDIR)$(sbindir)/glusterfs
  	ln -s glusterfsd $(DESTDIR)$(sbindir)/glusterfs
---- libglusterfs/src/Makefile.am
-+++ libglusterfs/src/Makefile.am
-@@ -15,7 +15,9 @@
- graph.lex.c: graph.l y.tab.h
- 	$(LEX) -t $(srcdir)/graph.l > $@
- 
--y.tab.c y.tab.h: graph.y
-+y.tab.c: y.tab.h
-+
-+y.tab.h: graph.y
- 	$(YACC) -d $(srcdir)/graph.y
- 
- CLEANFILES = graph.lex.c y.tab.c y.tab.h
diff --git a/glusterfs-workdir.patch b/glusterfs-workdir.patch
index 2851363..1675dc7 100644
--- a/glusterfs-workdir.patch
+++ b/glusterfs-workdir.patch
@@ -15,27 +15,17 @@ Patch by Ultrabug.
  #define GLUSTERD_DEFAULT_PORT    GF_DEFAULT_BASE_PORT
  #define GLUSTERD_INFO_FILE      "glusterd.info"
  #define GLUSTERD_VOLUME_DIR_PREFIX "vols"
---- a/doc/glusterd.vol  2010-10-13 06:20:36.000000000 +0200
-+++ b/doc/glusterd.vol  2010-10-26 10:48:16.487931870 +0200
-@@ -1,6 +1,6 @@
- volume management
-     type mgmt/glusterd
--    option working-directory /etc/glusterd
-+    option working-directory /var/lib/glusterd
-     option transport-type socket,rdma
-     option transport.socket.keepalive-time 10
-     option transport.socket.keepalive-interval 2
---- a/doc/gluster.8  2010-10-13 06:20:36.000000000 +0200
-+++ b/doc/gluster.8  2010-10-26 10:48:36.738500314 +0200
-@@ -118,7 +118,7 @@
- .TP
- .PP
+--- glusterfs-3.3.1/doc/gluster.8.orig	2012-12-17 21:18:56.608637562 +0100
++++ glusterfs-3.3.1/doc/gluster.8	2012-12-17 21:37:38.258614182 +0100
+@@ -160,7 +160,7 @@
+ Exit the gluster command line interface.
+ 
  .SH FILES
 -/etc/glusterd/*
 +/var/lib/glusterd/*
-
  .SH SEE ALSO
  .nf
+ \fBfusermount\fR(1), \fBmount.glusterfs\fR(8), \fBglusterfs\fR(8), \fBglusterd\fR(8)
 --- a/doc/glusterd.8 2010-10-13 06:20:36.000000000 +0200
 +++ b/doc/glusterd.8 2010-10-26 10:48:44.898729373 +0200
 @@ -70,7 +70,7 @@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glusterfs.git/commitdiff/4d40ce33f454852a263964b2f718a2de5bdff89c



More information about the pld-cvs-commit mailing list