git.iko.soy/typeable/nixpkgs
on master help sign in
glusterfs: 3.10.2 -> 3.12.1

Changes: * The patch `glusterfs-fix-unsubstituted-autoconf-macros` was deleted because the issue was fixed upstream: https://bugzilla.redhat.com/show_bug.cgi?id=1450588 * The `glusterd-ganesha.c` part of `glusterfs-use-PATH-instead-of-hardcodes` was detleted because `glusterd-ganesha.c` was removed upstream without replacement that has the relevant hardcoded paths. Closes https://github.com/NixOS/nixpkgs/pull/29062

commit8f4084004e24bdd056e4161b6c92407ba18affaa authorNiklas Hambüchen <mail@nh2.me> dateThu 7 Sep 2017, 01:11 (9 years ago) parent74db6fa
4 files changed+10−270
pkgs/tools/filesystems/glusterfs/default.nix+2−3 pkgs/tools/filesystems/glusterfs/glusterfs-fix-bug-1489610-glusterfind-var-data-under-prefix.patch+8−8 pkgs/tools/filesystems/glusterfs/glusterfs-fix-unsubstituted-autoconf-macros.patch−236 pkgs/tools/filesystems/glusterfs/glusterfs-use-PATH-instead-of-hardcodes.patch−23
pkgs/tools/filesystems/glusterfs/default.nix+2−3
@@ -15,10 +15,10 @@ let
1515 # The command
1616 # find /nix/store/...-glusterfs-.../ -name '*.py' -executable
1717 # can help with finding new Python scripts.
18− version = "3.10.2";
18+ version = "3.12.1";
1919 name="${baseName}-${version}";
2020 url="https://github.com/gluster/glusterfs/archive/v${version}.tar.gz";
21− sha256 = "09hpvw42sc77nc3bfv7395wjn7fxvp0n8qnmrlyxq83hf0w81gfs";
21+ sha256 = "14l6p2zyjsrnjvf0lipq32p517zk813nqv06pjq6kcqkmy038wdv";
2222 };
2323 buildInputs = [
2424 fuse bison flex_2_5_35 openssl ncurses readline
@@ -71,7 +71,6 @@ rec {
7171
7272 patches = [
7373 ./glusterfs-use-PATH-instead-of-hardcodes.patch
74− ./glusterfs-fix-unsubstituted-autoconf-macros.patch
7574 ./glusterfs-python-remove-find_library.patch
7675 # Remove when https://bugzilla.redhat.com/show_bug.cgi?id=1489610 is fixed
7776 ./glusterfs-fix-bug-1489610-glusterfind-var-data-under-prefix.patch
pkgs/tools/filesystems/glusterfs/glusterfs-fix-bug-1489610-glusterfind-var-data-under-prefix.patch+8−8
@@ -1,27 +1,27 @@
1−From 965eb1e08e10ff82bb91d485dc24672acc7c72cf Mon Sep 17 00:00:00 2001
1+From f523afac49e24ecc0fa4ad85195135689cf445f0 Mon Sep 17 00:00:00 2001
22From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= <mail@nh2.me>
3−Date: Fri, 8 Sep 2017 00:51:53 +0200
3+Date: Wed, 27 Sep 2017 21:36:41 +0200
44Subject: [PATCH] Fix "glusterfind saves var data under $prefix instead of
55 localstatedir". Fixes #1489610
66
7−Change-Id: I6d71297fb7a5a9d12cc3726b4a4ad94efcd644f9
7+Change-Id: Id2362c20f34346c37acfb9eb1ad105d0b7b8b60f
88---
99 configure.ac | 2 +-
1010 1 file changed, 1 insertion(+), 1 deletion(-)
1111
1212diff --git a/configure.ac b/configure.ac
13−index 0c3a38689..d508fda71 100644
13+index f87d8a454..b4d3f5d10 100644
1414--- a/configure.ac
1515+++ b/configure.ac
16−@@ -1057,7 +1057,7 @@ if test "x$prefix" = xNONE; then
17− prefix=$ac_default_prefix
16+@@ -1118,7 +1118,7 @@ if test "x$exec_prefix" = xNONE; then
17+ exec_prefix="$(eval echo $prefix)"
1818 fi
19− GLUSTERFS_LIBEXECDIR="$(eval echo $prefix)/libexec/glusterfs"
19+ GLUSTERFS_LIBEXECDIR="$(eval echo $libexecdir)/glusterfs"
2020-GLUSTERFSD_MISCDIR="$(eval echo $prefix)/var/lib/misc/glusterfsd"
2121+GLUSTERFSD_MISCDIR="$(eval echo $localstatedir)/var/lib/misc/glusterfsd"
2222 prefix=$old_prefix
23+ exec_prefix=$old_exec_prefix
2324
24− ### Dirty hacky stuff to make LOCALSTATEDIR work
2525--
26262.12.0
2727
pkgs/tools/filesystems/glusterfs/glusterfs-fix-unsubstituted-autoconf-macros.patchdeleted−236
@@ -1,236 +0,0 @@
1−From b37e0222a6a60505868a6fbb8591608cdc4bba57 Mon Sep 17 00:00:00 2001
2−From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= <mail@nh2.me>
3−Date: Sat, 13 May 2017 15:33:27 +0200
4−Subject: [PATCH] Revert "build/packaging: Debian and Ubuntu don't have
5− /usr/libexec". Fixes #1450588
6−
7−This reverts commit 18509e436f8a728ef522f3e76e2f2dc30e1bd8ac.
8−
9−This fixes autoconf unsubstituted strings to appear in generated source code.
10−---
11− cli/src/Makefile.am | 2 +-
12− configure.ac | 12 ++++++------
13− events/src/Makefile.am | 8 ++++----
14− extras/Makefile.am | 2 +-
15− geo-replication/src/Makefile.am | 8 ++++----
16− geo-replication/syncdaemon/Makefile.am | 2 +-
17− tools/gfind_missing_files/Makefile.am | 4 ++--
18− tools/glusterfind/Makefile.am | 4 ++--
19− tools/glusterfind/src/Makefile.am | 2 +-
20− xlators/features/ganesha/src/Makefile.am | 2 +-
21− xlators/mgmt/glusterd/src/Makefile.am | 2 +-
22− 11 files changed, 24 insertions(+), 24 deletions(-)
23−
24−diff --git a/cli/src/Makefile.am b/cli/src/Makefile.am
25−index 5ef9389..f5b8d00 100644
26−--- a/cli/src/Makefile.am
27−+++ b/cli/src/Makefile.am
28−@@ -18,7 +18,7 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) \
29− -I$(top_builddir)/rpc/xdr/src\
30− -DDATADIR=\"$(localstatedir)\" \
31− -DCONFDIR=\"$(sysconfdir)/glusterfs\" \
32−- -DGSYNCD_PREFIX=\"$(GLUSTERFS_LIBEXECDIR)\"\
33−+ -DGSYNCD_PREFIX=\"$(libexecdir)/glusterfs\"\
34− -DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE) -DSBIN_DIR=\"$(sbindir)\"\
35− $(XML_CPPFLAGS)
36−
37−diff --git a/configure.ac b/configure.ac
38−index c9742e2..0c3a386 100644
39−--- a/configure.ac
40−+++ b/configure.ac
41−@@ -1056,24 +1056,24 @@ old_prefix=$prefix
42− if test "x$prefix" = xNONE; then
43− prefix=$ac_default_prefix
44− fi
45−-GLUSTERFS_LIBEXECDIR="$libexecdir/glusterfs"
46−-GLUSTERFSD_MISCDIR="$prefix/var/lib/misc/glusterfsd"
47−+GLUSTERFS_LIBEXECDIR="$(eval echo $prefix)/libexec/glusterfs"
48−+GLUSTERFSD_MISCDIR="$(eval echo $prefix)/var/lib/misc/glusterfsd"
49− prefix=$old_prefix
50−
51− ### Dirty hacky stuff to make LOCALSTATEDIR work
52− if test "x$prefix" = xNONE; then
53−- test $localstatedir = '$prefix/var' && localstatedir=$ac_default_prefix/var
54−+ test $localstatedir = '${prefix}/var' && localstatedir=$ac_default_prefix/var
55− localstatedir=/var
56−- LOCALSTATEDIR=$localstatedir
57−+ LOCALSTATEDIR=$(eval echo ${localstatedir})
58− else
59−- LOCALSTATEDIR=$localstatedir
60−+ LOCALSTATEDIR=$(eval echo ${localstatedir})
61− fi
62−
63− old_prefix=$prefix
64− if test "x$prefix" = xNONE; then
65− prefix=$ac_default_prefix
66− fi
67−-GLUSTERD_VOLFILE="$sysconfdir/glusterfs/glusterd.vol"
68−+GLUSTERD_VOLFILE="$(eval echo ${sysconfdir})/glusterfs/glusterd.vol"
69− prefix=$old_prefix
70−
71−
72−diff --git a/events/src/Makefile.am b/events/src/Makefile.am
73−index 8493abd..87282c6 100644
74−--- a/events/src/Makefile.am
75−+++ b/events/src/Makefile.am
76−@@ -5,7 +5,7 @@ EXTRA_DIST = glustereventsd.py __init__.py eventsapiconf.py.in \
77− BUILT_SOURCES = eventtypes.py
78− CLEANFILES = eventtypes.py
79−
80−-eventsdir = $(GLUSTERFS_LIBEXECDIR)/events
81−+eventsdir = $(libexecdir)/glusterfs/events
82− events_PYTHON = __init__.py gf_event.py eventsapiconf.py eventtypes.py \
83− utils.py
84−
85−@@ -13,7 +13,7 @@ eventtypes.py: $(top_srcdir)/events/eventskeygen.py
86− $(PYTHON) $(top_srcdir)/events/eventskeygen.py PY_HEADER
87−
88− if BUILD_EVENTS
89−-eventspeerscriptdir = $(GLUSTERFS_LIBEXECDIR)
90−+eventspeerscriptdir = $(libexecdir)/glusterfs
91− eventsconfdir = $(sysconfdir)/glusterfs
92− eventsconf_DATA = eventsconfig.json
93−
94−@@ -24,10 +24,10 @@ eventspeerscript_SCRIPTS = peer_eventsapi.py
95− install-exec-hook:
96− $(mkdir_p) $(DESTDIR)$(sbindir)
97− rm -f $(DESTDIR)$(sbindir)/glustereventsd
98−- ln -s $(GLUSTERFS_LIBEXECDIR)/events/glustereventsd.py \
99−+ ln -s $(libexecdir)/glusterfs/events/glustereventsd.py \
100− $(DESTDIR)$(sbindir)/glustereventsd
101− rm -f $(DESTDIR)$(sbindir)/gluster-eventsapi
102−- ln -s $(GLUSTERFS_LIBEXECDIR)/peer_eventsapi.py \
103−+ ln -s $(libexecdir)/glusterfs/peer_eventsapi.py \
104− $(DESTDIR)$(sbindir)/gluster-eventsapi
105−
106− uninstall-hook:
107−diff --git a/extras/Makefile.am b/extras/Makefile.am
108−index 9dfc93d..53ac476 100644
109−--- a/extras/Makefile.am
110−+++ b/extras/Makefile.am
111−@@ -1,4 +1,4 @@
112−-addonexecdir = $(GLUSTERFS_LIBEXECDIR)
113−+addonexecdir = $(libexecdir)/glusterfs
114− addonexec_SCRIPTS = peer_add_secret_pub
115−
116− EditorModedir = $(docdir)
117−diff --git a/geo-replication/src/Makefile.am b/geo-replication/src/Makefile.am
118−index 9937a0b..87435d5 100644
119−--- a/geo-replication/src/Makefile.am
120−+++ b/geo-replication/src/Makefile.am
121−@@ -1,4 +1,4 @@
122−-gsyncddir = $(GLUSTERFS_LIBEXECDIR)
123−+gsyncddir = $(libexecdir)/glusterfs
124−
125− gsyncd_SCRIPTS = gverify.sh peer_gsec_create \
126− set_geo_rep_pem_keys.sh peer_mountbroker peer_mountbroker.py \
127−@@ -21,7 +21,7 @@ noinst_HEADERS = procdiggy.h
128−
129− AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
130− -I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
131−- -DGSYNCD_PREFIX=\"$(GLUSTERFS_LIBEXECDIR)\" -DUSE_LIBGLUSTERFS \
132−+ -DGSYNCD_PREFIX=\"$(libexecdir)/glusterfs\" -DUSE_LIBGLUSTERFS \
133− -DSBIN_DIR=\"$(sbindir)\" -DPYTHON=\"$(PYTHON)\"
134−
135− AM_CFLAGS = -Wall $(GF_CFLAGS)
136−@@ -35,11 +35,11 @@ $(top_builddir)/libglusterfs/src/libglusterfs.la:
137− install-exec-hook:
138− $(mkdir_p) $(DESTDIR)$(sbindir)
139− rm -f $(DESTDIR)$(sbindir)/gluster-mountbroker
140−- ln -s $(GLUSTERFS_LIBEXECDIR)/peer_mountbroker.py \
141−+ ln -s $(libexecdir)/glusterfs/peer_mountbroker.py \
142− $(DESTDIR)$(sbindir)/gluster-mountbroker
143−
144− rm -f $(DESTDIR)$(sbindir)/gluster-georep-sshkey
145−- ln -s $(GLUSTERFS_LIBEXECDIR)/peer_georep-sshkey.py \
146−+ ln -s $(libexecdir)/glusterfs/peer_georep-sshkey.py \
147− $(DESTDIR)$(sbindir)/gluster-georep-sshkey
148−
149−
150−diff --git a/geo-replication/syncdaemon/Makefile.am b/geo-replication/syncdaemon/Makefile.am
151−index f80fb26..7cdaf45 100644
152−--- a/geo-replication/syncdaemon/Makefile.am
153−+++ b/geo-replication/syncdaemon/Makefile.am
154−@@ -1,4 +1,4 @@
155−-syncdaemondir = $(GLUSTERFS_LIBEXECDIR)/python/syncdaemon
156−+syncdaemondir = $(libexecdir)/glusterfs/python/syncdaemon
157−
158− syncdaemon_PYTHON = gconf.py gsyncd.py __init__.py master.py README.md repce.py \
159− resource.py configinterface.py syncdutils.py monitor.py libcxattr.py \
160−diff --git a/tools/gfind_missing_files/Makefile.am b/tools/gfind_missing_files/Makefile.am
161−index f77f789..043c34c 100644
162−--- a/tools/gfind_missing_files/Makefile.am
163−+++ b/tools/gfind_missing_files/Makefile.am
164−@@ -1,4 +1,4 @@
165−-gfindmissingfilesdir = $(GLUSTERFS_LIBEXECDIR)/gfind_missing_files
166−+gfindmissingfilesdir = $(libexecdir)/glusterfs/gfind_missing_files
167−
168− gfindmissingfiles_SCRIPTS = gfind_missing_files.sh gfid_to_path.sh \
169− gfid_to_path.py
170−@@ -21,6 +21,6 @@ uninstall-local:
171−
172− install-data-local:
173− rm -f $(DESTDIR)$(sbindir)/gfind_missing_files
174−- ln -s $(GLUSTERFS_LIBEXECDIR)/gfind_missing_files/gfind_missing_files.sh $(DESTDIR)$(sbindir)/gfind_missing_files
175−+ ln -s $(libexecdir)/glusterfs/gfind_missing_files/gfind_missing_files.sh $(DESTDIR)$(sbindir)/gfind_missing_files
176−
177− CLEANFILES =
178−diff --git a/tools/glusterfind/Makefile.am b/tools/glusterfind/Makefile.am
179−index 92fa614..37f23be 100644
180−--- a/tools/glusterfind/Makefile.am
181−+++ b/tools/glusterfind/Makefile.am
182−@@ -6,7 +6,7 @@ bin_SCRIPTS = glusterfind
183−
184− CLEANFILES = $(bin_SCRIPTS)
185−
186−-deletehookscriptsdir = $(GLUSTERFS_LIBEXECDIR)/glusterfind/
187−+deletehookscriptsdir = $(libexecdir)/glusterfs/glusterfind/
188− deletehookscripts_SCRIPTS = S57glusterfind-delete-post.py
189−
190− uninstall-local:
191−@@ -16,5 +16,5 @@ install-data-local:
192− $(mkdir_p) $(DESTDIR)$(GLUSTERD_WORKDIR)/glusterfind/.keys
193− $(mkdir_p) $(DESTDIR)$(GLUSTERD_WORKDIR)/hooks/1/delete/post/
194− rm -f $(DESTDIR)$(GLUSTERD_WORKDIR)/hooks/1/delete/post/S57glusterfind-delete-post
195−- ln -s $(GLUSTERFS_LIBEXECDIR)/glusterfind/S57glusterfind-delete-post.py \
196−+ ln -s $(libexecdir)/glusterfs/glusterfind/S57glusterfind-delete-post.py \
197− $(DESTDIR)$(GLUSTERD_WORKDIR)/hooks/1/delete/post/S57glusterfind-delete-post
198−diff --git a/tools/glusterfind/src/Makefile.am b/tools/glusterfind/src/Makefile.am
199−index e4469c1..541ff94 100644
200−--- a/tools/glusterfind/src/Makefile.am
201−+++ b/tools/glusterfind/src/Makefile.am
202−@@ -1,4 +1,4 @@
203−-glusterfinddir = $(GLUSTERFS_LIBEXECDIR)/glusterfind
204−+glusterfinddir = $(libexecdir)/glusterfs/glusterfind
205−
206− glusterfind_PYTHON = conf.py utils.py __init__.py \
207− main.py libgfchangelog.py changelogdata.py
208−diff --git a/xlators/features/ganesha/src/Makefile.am b/xlators/features/ganesha/src/Makefile.am
209−index 78715d6..54cfcb3 100644
210−--- a/xlators/features/ganesha/src/Makefile.am
211−+++ b/xlators/features/ganesha/src/Makefile.am
212−@@ -12,7 +12,7 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
213− -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D$(GF_HOST_OS)\
214− -I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
215− -DGANESHA_DIR=\"$(sysconfdir)/ganesha\" \
216−- -DGYSNCD_PREFIX=\"$(GLUSTERFS_LIBEXECDIR)\"
217−+ -DGYSNCD_PREFIX=\"$(libexecdir)/glusterfs\"
218−
219− AM_CFLAGS = -Wall $(GF_CFLAGS)
220−
221−diff --git a/xlators/mgmt/glusterd/src/Makefile.am b/xlators/mgmt/glusterd/src/Makefile.am
222−index 23ebf37..4f2fffd 100644
223−--- a/xlators/mgmt/glusterd/src/Makefile.am
224−+++ b/xlators/mgmt/glusterd/src/Makefile.am
225−@@ -47,7 +47,7 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
226− -I$(CONTRIBDIR)/rbtree -I$(top_srcdir)/rpc/rpc-lib/src \
227− -I$(CONTRIBDIR)/mount -I$(CONTRIBDIR)/userspace-rcu \
228− -DSBIN_DIR=\"$(sbindir)\" -DDATADIR=\"$(localstatedir)\" \
229−- -DGSYNCD_PREFIX=\"$(GLUSTERFS_LIBEXECDIR)\" \
230−+ -DGSYNCD_PREFIX=\"$(libexecdir)/glusterfs\" \
231− -DCONFDIR=\"$(localstatedir)/run/gluster/shared_storage/nfs-ganesha\" \
232− -DGANESHA_PREFIX=\"$(libexecdir)/ganesha\" \
233− -DSYNCDAEMON_COMPILE=$(SYNCDAEMON_COMPILE) $(XML_CPPFLAGS)
234−--
235−2.7.4
236−
pkgs/tools/filesystems/glusterfs/glusterfs-use-PATH-instead-of-hardcodes.patch−23
@@ -41,29 +41,6 @@ index e9f80fe81..6380dd867 100644
4141 progname, strerror (errno));
4242 #endif /* GF_LINUX_HOST_OS */
4343 exit (1);
44−diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
45−index da1fee066..dcb9e5725 100644
46−--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
47−+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
48−@@ -122,15 +122,15 @@ manage_service (char *action)
49− int i = 0;
50− int ret = 0;
51− struct service_command sc_list[] = {
52−- { .binary = "/bin/systemctl",
53−+ { .binary = "systemctl",
54− .service = "nfs-ganesha",
55− .action = sc_systemctl_action
56− },
57−- { .binary = "/sbin/invoke-rc.d",
58−+ { .binary = "invoke-rc.d",
59− .service = "nfs-ganesha",
60− .action = sc_service_action
61− },
62−- { .binary = "/sbin/service",
63−+ { .binary = "service",
64− .service = "nfs-ganesha",
65− .action = sc_service_action
66− },
6744diff --git a/xlators/mgmt/glusterd/src/glusterd-quota.c b/xlators/mgmt/glusterd/src/glusterd-quota.c
6845index 0e6629cf0..fcb4738b7 100644
6946--- a/xlators/mgmt/glusterd/src/glusterd-quota.c