From 2debc9ade8f51e9af5f89c84807bcc664dc2935d069411789d586fb3671b7c1c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 4 Dec 2017 14:36:03 +0000 Subject: [PATCH] - Update to new release 3.12.3 OBS-URL: https://build.opensuse.org/package/show/filesystems/glusterfs?expand=0&rev=49 --- glusterfs-3.12.3.tar.gz | 3 +++ glusterfs-3.8.15.tar.gz | 3 --- glusterfs-date.diff | 58 ----------------------------------------- glusterfs-tirpc.diff | 17 +++++++++--- glusterfs.changes | 25 ++++++++++++++++++ glusterfs.spec | 53 +++++++++++++------------------------ 6 files changed, 60 insertions(+), 99 deletions(-) create mode 100644 glusterfs-3.12.3.tar.gz delete mode 100644 glusterfs-3.8.15.tar.gz delete mode 100644 glusterfs-date.diff diff --git a/glusterfs-3.12.3.tar.gz b/glusterfs-3.12.3.tar.gz new file mode 100644 index 0000000..584b3db --- /dev/null +++ b/glusterfs-3.12.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3045208401b088414ea7198af3fe5ecbc6833e90f8aea68f318a0d863e76fa9d +size 7187644 diff --git a/glusterfs-3.8.15.tar.gz b/glusterfs-3.8.15.tar.gz deleted file mode 100644 index b4913f4..0000000 --- a/glusterfs-3.8.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22c293cb5d7bb9106dccb0a8e4c446c19f014af0b2c6b37396525819288206bb -size 8570170 diff --git a/glusterfs-date.diff b/glusterfs-date.diff deleted file mode 100644 index fe46231..0000000 --- a/glusterfs-date.diff +++ /dev/null @@ -1,58 +0,0 @@ -From: Jan Engelhardt -Date: 2011-10-05 13:17:29.728670235 +0200 -Upstream: hell yes - -build: remove __DATE__ and __TIME__ flagged by rpmlint - -glusterfs.x86_64: W: file-contains-date-and-time /usr/sbin/glusterfsd -glusterfs.x86_64: W: file-contains-date-and-time /usr/sbin/gluster -Your file uses __DATE and __TIME__ this causes the package to rebuild when -not needed - ---- - cli/src/cli.c | 2 +- - glusterfsd/src/glusterfsd.c | 2 +- - libglusterfs/src/graph.c | 4 ++-- - 3 files changed, 4 insertions(+), 4 deletions(-) - -Index: glusterfs-3.5.0/cli/src/cli.c -=================================================================== ---- glusterfs-3.5.0.orig/cli/src/cli.c -+++ glusterfs-3.5.0/cli/src/cli.c -@@ -71,7 +71,7 @@ extern int connected; - /* using argp for command line parsing */ - - const char *argp_program_version = "" \ -- PACKAGE_NAME" "PACKAGE_VERSION" built on "__DATE__" "__TIME__ \ -+ PACKAGE_NAME" "PACKAGE_VERSION \ - "\nRepository revision: " GLUSTERFS_REPOSITORY_REVISION "\n" \ - "Copyright (c) 2006-2011 Gluster Inc. " \ - "\n" \ -Index: glusterfs-3.5.0/glusterfsd/src/glusterfsd.c -=================================================================== ---- glusterfs-3.5.0.orig/glusterfsd/src/glusterfsd.c -+++ glusterfs-3.5.0/glusterfsd/src/glusterfsd.c -@@ -81,7 +81,7 @@ static char gf_doc[] = ""; - static char argp_doc[] = "--volfile-server=SERVER [MOUNT-POINT]\n" \ - "--volfile=VOLFILE [MOUNT-POINT]"; - const char *argp_program_version = "" -- PACKAGE_NAME" "PACKAGE_VERSION" built on "__DATE__" "__TIME__ -+ PACKAGE_NAME" "PACKAGE_VERSION" built on *bleep* " - "\nRepository revision: " GLUSTERFS_REPOSITORY_REVISION "\n" - "Copyright (c) 2006-2013 Red Hat, Inc. \n" - "GlusterFS comes with ABSOLUTELY NO WARRANTY.\n" -Index: glusterfs-3.5.0/libglusterfs/src/graph.c -=================================================================== ---- glusterfs-3.5.0.orig/libglusterfs/src/graph.c -+++ glusterfs-3.5.0/libglusterfs/src/graph.c -@@ -40,8 +40,8 @@ _gf_dump_details (int argc, char **argv) - fprintf (gf_log_logfile, - "========================================" - "========================================\n"); -- fprintf (gf_log_logfile, "Version : %s %s built on %s %s\n", -- PACKAGE_NAME, PACKAGE_VERSION, __DATE__, __TIME__); -+ fprintf (gf_log_logfile, "Version : %s %s\n", -+ PACKAGE_NAME, PACKAGE_VERSION); - fprintf (gf_log_logfile, "git: %s\n", - GLUSTERFS_REPOSITORY_REVISION); - fprintf (gf_log_logfile, "Starting Time: %s\n", timestr); diff --git a/glusterfs-tirpc.diff b/glusterfs-tirpc.diff index c1ec189..b63b478 100644 --- a/glusterfs-tirpc.diff +++ b/glusterfs-tirpc.diff @@ -1,6 +1,17 @@ ---- configure.ac -+++ configure.ac 2017/11/13 06:44:32 -@@ -399,6 +399,21 @@ +From: kukuk@suse.de +Date: Mon Nov 13 07:49:33 CET 2017 + +Fall back to libtirpc if there is no sunrpc support in glibc. + +--- + configure.ac | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +Index: glusterfs-3.12.3/configure.ac +=================================================================== +--- glusterfs-3.12.3.orig/configure.ac ++++ glusterfs-3.12.3/configure.ac +@@ -431,6 +431,21 @@ AC_CHECK_HEADERS([openssl/dh.h]) AC_CHECK_HEADERS([openssl/ecdh.h]) diff --git a/glusterfs.changes b/glusterfs.changes index ad234dd..54fadde 100644 --- a/glusterfs.changes +++ b/glusterfs.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Dec 4 14:03:38 UTC 2017 - jengelh@inai.de + +- Update to new release 3.12.3 + * -- Features introduced in 3.10 + * Brick multiplexing + * Support to display op-version information from clients + * Support for rebalance time to completion estimation + * Separation of tier as its own service + * Statedump support for gfapi based applications + * Disabled creation of trash directory by default + * Implemented parallel readdirp with distribute xlator + * -- Features introduced in 3.12: + * Ability to mount sub-directories using the Gluster + FUSE protocol + * GFID to path conversion is enabled by default + * Provided an option to set a limit on number of bricks + multiplexed in a processes + * Enhanced the option to export statfs data for bricks + sharing the same backend filesystem + * Provided a means to resolve GFID split-brain using + the gluster CLI + * Introduction of new api glfs_fd_set_lkowner() to set lock owner +- Remove glusterfs-date.diff (no longer applies) + ------------------------------------------------------------------- Mon Nov 13 07:49:33 CET 2017 - kukuk@suse.de diff --git a/glusterfs.spec b/glusterfs.spec index 51202fb..b4c48d9 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -17,7 +17,7 @@ Name: glusterfs -Version: 3.8.15 +Version: 3.12.3 Release: 0 Summary: Aggregating distributed file system License: GPL-2.0 OR LGPL-3.0+ @@ -25,9 +25,8 @@ Group: System/Filesystems Url: http://www.gluster.org/ #Git-Clone: git://github.com/gluster/glusterfs #Git-Clone: git://github.com/fvzwieten/lsgvt -Source: http://download.gluster.org/pub/gluster/glusterfs/3.8/%version/%name-%version.tar.gz -Patch: glusterfs-tirpc.diff -Patch1: glusterfs-date.diff +Source: https://download.gluster.org/pub/gluster/glusterfs/3.12/3.12.3/glusterfs-%version.tar.gz +Patch1: glusterfs-tirpc.diff BuildRequires: acl-devel BuildRequires: autoconf BuildRequires: automake @@ -122,14 +121,6 @@ Group: Development/Languages/Python GlusterFS is a clustered file-system capable of scaling to several petabytes. -%package ganesha -Summary: NFS-Ganesha configuration -Group: System/Libraries - -%description ganesha -GlusterFS is a clustered file-system capable of scaling to several -petabytes. - %package devel Summary: Development files for glusterfs Group: Development/Libraries/C and C++ @@ -150,8 +141,7 @@ links. %prep %setup -q -%patch -p0 -%patch1 -p1 +%patch -P 1 -p1 %build ./autogen.sh @@ -176,9 +166,6 @@ install -pm0644 rpc/rpc-lib/src/*.h rpc/xdr/src/*.h \ "%buildroot/%_includedir/%name/rpc/" install -pm0644 xlators/protocol/server/src/*.h \ "%buildroot/%_includedir/%name/server/" -# - init script; there is no SuSE-release in the build env -mkdir -p "%buildroot/%_initddir" -install -pm0755 extras/init.d/glusterd-SuSE "%buildroot/%_initddir/glusterd" # - wrapper umount script? # - logrotate entry mkdir -p "%buildroot/%_localstatedir/log/%name" @@ -198,22 +185,22 @@ find %buildroot -type f -name "*.la" -delete -print perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el mkdir -p "%buildroot/%_unitdir" -rm -Rf "%buildroot%_initddir" -ln -s service "%buildroot%_sbindir/rcglusterd" -chmod u-s "%buildroot%_bindir/fusermount-glusterfs" +ln -s service "%buildroot/%_sbindir/rcglusterd" +chmod u-s "%buildroot/%_bindir/fusermount-glusterfs" +rm -f "%buildroot/%_sbindir/conf.py" %fdupes %buildroot/%_prefix %pre -%service_add_pre glusterd.service +%service_add_pre glusterd.service glustereventsd.service glusterfssharedstorage.service %post -%service_add_post glusterd.service +%service_add_post glusterd.service glustereventsd.service glusterfssharedstorage.service %preun -%service_del_preun glusterd.service +%service_del_preun glusterd.service glustereventsd.service glusterfssharedstorage.service %postun -%service_del_postun glusterd.service +%service_del_postun glusterd.service glustereventsd.service glusterfssharedstorage.service %post -n libgfapi0 -p /sbin/ldconfig %postun -n libgfapi0 -p /sbin/ldconfig @@ -231,11 +218,13 @@ chmod u-s "%buildroot%_bindir/fusermount-glusterfs" %files %doc COPYING-GPLV2 COPYING-LGPLV3 ChangeLog NEWS README.md %dir %_sysconfdir/%name -%config(noreplace) %_sysconfdir/%name/glusterd.vol +%config(noreplace) %_sysconfdir/%name/eventsconfig.json +%config(noreplace) %_sysconfdir/%name/g*lusterd.vol %config(noreplace) %_sysconfdir/%name/glusterfs-logrotate %config %_sysconfdir/%name/gluster-rsyslog*.conf %config %_sysconfdir/%name/*.example %config %_sysconfdir/%name/*-logrotate +%config %_sysconfdir/%name/group-* %_bindir/fusermount-glusterfs %_bindir/glusterfind /sbin/mount.%name @@ -245,6 +234,7 @@ chmod u-s "%buildroot%_bindir/fusermount-glusterfs" %_sbindir/glfsheal %_sbindir/rcglusterd %_sbindir/gcron.py +%_sbindir/gf_attach %_sbindir/gfind_missing_files %_sbindir/snap_scheduler.py %_datadir/glusterfs/ @@ -253,6 +243,8 @@ chmod u-s "%buildroot%_bindir/fusermount-glusterfs" %_localstatedir/lib/glusterd %_localstatedir/log/%name %_unitdir/glusterd.service +%_unitdir/glustereventsd.service +%_unitdir/glusterfssharedstorage.service %_libexecdir/ocf %files -n libgfapi0 @@ -273,20 +265,11 @@ chmod u-s "%buildroot%_bindir/fusermount-glusterfs" %files -n libgfdb0 %_libdir/libgfdb.so.0* -%files ganesha -%dir %_sysconfdir/ganesha -%dir %_libexecdir/ganesha -%_sysconfdir/ganesha/ganesha-ha.conf.sample -%_libexecdir/ganesha/copy-export-ganesha.sh -%_libexecdir/ganesha/create-export-ganesha.sh -%_libexecdir/ganesha/dbus-send.sh -%_libexecdir/ganesha/ganesha-ha.sh -%_libexecdir/ganesha/generate-epoch.py - %files -n python-gluster %dir %python_sitelib/gluster %dir %python_sitelib/gluster/glupy %python_sitelib/gluster/__init__.* +%python_sitelib/gluster/cliutils/ %python_sitelib/gluster/glupy/__init__.* %files devel