summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorHongzhi.Song <hongzhi.song@windriver.com>2019-04-25 00:44:30 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-04-26 11:02:14 -0400
commit271b850274deb2187d97a3cd623486b2568bb2f8 (patch)
treebdeb089e13bca2002c6ac089456268db1c07042e /recipes-extended
parentd911b76ccafeaff97d196a62fb030d6604ee374c (diff)
downloadmeta-cloud-services-271b850274deb2187d97a3cd623486b2568bb2f8.tar.gz
glusterfs: uprev from v5.4 to v6.1
The release-6.1 fixes a lot of CVEs. Modify parts of patches for v6.1. Remove bd-xlator configure which has been dropped. Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/glusterfs/files/glusterd-change-port-range.patch14
-rw-r--r--recipes-extended/glusterfs/files/glusterfs-api-remove-unnecessary-library-options.patch11
-rw-r--r--recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch20
-rw-r--r--recipes-extended/glusterfs/files/glusterfs-configure-automake-with-subdir-objects-for.patch18
-rw-r--r--recipes-extended/glusterfs/files/glusterfs-disable-default-startup-scripts.patch18
-rw-r--r--recipes-extended/glusterfs/glusterfs.inc2
-rw-r--r--recipes-extended/glusterfs/glusterfs_5.4.bb6
-rw-r--r--recipes-extended/glusterfs/glusterfs_6.1.bb6
8 files changed, 51 insertions, 44 deletions
diff --git a/recipes-extended/glusterfs/files/glusterd-change-port-range.patch b/recipes-extended/glusterfs/files/glusterd-change-port-range.patch
index 52b6ffa..3458d8a 100644
--- a/recipes-extended/glusterfs/files/glusterd-change-port-range.patch
+++ b/recipes-extended/glusterfs/files/glusterd-change-port-range.patch
@@ -1,6 +1,6 @@
1From a0ed85e0b268dba76d9c820571e1b9217b51e985 Mon Sep 17 00:00:00 2001 1From 59d1b6fb5e6315df9fc55a74576b1bfde30303f0 Mon Sep 17 00:00:00 2001
2From: "Hongzhi.Song" <hongzhi.song@windriver.com> 2From: "Hongzhi.Song" <hongzhi.song@windriver.com>
3Date: Tue, 12 Mar 2019 20:03:21 -0700 3Date: Wed, 24 Apr 2019 23:07:58 -0400
4Subject: [PATCH] glusterd: change port range 4Subject: [PATCH] glusterd: change port range
5 5
6glusterfsd chooses tcp ports within the dynamic 6glusterfsd chooses tcp ports within the dynamic
@@ -22,24 +22,24 @@ Signed-off-by: Vu Tran <vu.tran@windriver.com>
22Signed-off-by: Xulin Sun <xulin.sun@windriver.com> 22Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
23[Yi: minor adjust to apply the patch on 3.11.1] 23[Yi: minor adjust to apply the patch on 3.11.1]
24Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 24Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
25[Hogzhi: minor adjust to apply the patch on v5.4] 25[Hogzhi: modify patch for release-6.1]
26Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> 26Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
27--- 27---
28 extras/glusterd.vol | 2 +- 28 extras/glusterd.vol | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-) 29 1 file changed, 1 insertion(+), 1 deletion(-)
30 30
31diff --git a/extras/glusterd.vol b/extras/glusterd.vol 31diff --git a/extras/glusterd.vol b/extras/glusterd.vol
32index 88d412c..b89aa56 100644 32index 6045591..d814b5f 100644
33--- a/extras/glusterd.vol 33--- a/extras/glusterd.vol
34+++ b/extras/glusterd.vol 34+++ b/extras/glusterd.vol
35@@ -9,6 +9,6 @@ volume management 35@@ -11,6 +11,6 @@ volume management
36 option event-threads 1 36 option event-threads 1
37 # option lock-timer 180 37 # option lock-timer 180
38 # option transport.address-family inet6 38 # option transport.address-family inet6
39-# option base-port 49152 39-# option base-port 49152
40+# option base-port 59152 40+# option base-port 59152
41 # option max-port 65535 41 option max-port 60999
42 end-volume 42 end-volume
43-- 43--
442.17.1 442.8.1
45 45
diff --git a/recipes-extended/glusterfs/files/glusterfs-api-remove-unnecessary-library-options.patch b/recipes-extended/glusterfs/files/glusterfs-api-remove-unnecessary-library-options.patch
index 2f140ea..32f4dc1 100644
--- a/recipes-extended/glusterfs/files/glusterfs-api-remove-unnecessary-library-options.patch
+++ b/recipes-extended/glusterfs/files/glusterfs-api-remove-unnecessary-library-options.patch
@@ -1,6 +1,6 @@
1From 2ef09531d1d14cd64d5ba4ffbd9a99af10ae1ec4 Mon Sep 17 00:00:00 2001 1From 2b55524fab066cb14880a819f570b7f839bae1ce Mon Sep 17 00:00:00 2001
2From: "Hongzhi.Song" <hongzhi.song@windriver.com> 2From: "Hongzhi.Song" <hongzhi.song@windriver.com>
3Date: Tue, 12 Mar 2019 19:37:51 -0700 3Date: Wed, 24 Apr 2019 22:44:12 -0400
4Subject: [PATCH] glusterfs-api: remove unnecessary library options 4Subject: [PATCH] glusterfs-api: remove unnecessary library options
5 5
6These cause QA errors when users of the api such 6These cause QA errors when users of the api such
@@ -11,13 +11,14 @@ Upstream-Status: Inappropriate [embedded specific]
11 11
12Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com> 12Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
13Signed-off-by: Xulin Sun <xulin.sun@windriver.com> 13Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
14[modify patch for release-6.1]
14Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> 15Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
15--- 16---
16 glusterfs-api.pc.in | 2 +- 17 glusterfs-api.pc.in | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
18 19
19diff --git a/glusterfs-api.pc.in b/glusterfs-api.pc.in 20diff --git a/glusterfs-api.pc.in b/glusterfs-api.pc.in
20index 6af4e10..01b9d0f 100644 21index 4a2edb7..153c4ad 100644
21--- a/glusterfs-api.pc.in 22--- a/glusterfs-api.pc.in
22+++ b/glusterfs-api.pc.in 23+++ b/glusterfs-api.pc.in
23@@ -8,5 +8,5 @@ Description: GlusterFS API 24@@ -8,5 +8,5 @@ Description: GlusterFS API
@@ -26,7 +27,7 @@ index 6af4e10..01b9d0f 100644
26 Requires: @PKGCONFIG_UUID@ 27 Requires: @PKGCONFIG_UUID@
27-Libs: -L${libdir} @GFAPI_LIBS@ -lgfapi -lglusterfs -lgfrpc -lgfxdr 28-Libs: -L${libdir} @GFAPI_LIBS@ -lgfapi -lglusterfs -lgfrpc -lgfxdr
28+Libs: -lgfapi -lglusterfs -lgfrpc -lgfxdr 29+Libs: -lgfapi -lglusterfs -lgfrpc -lgfxdr
29 Cflags: -I${includedir} -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -DUSE_POSIX_ACLS=@USE_POSIX_ACLS@ 30 Cflags: -I${includedir} -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D__USE_LARGEFILE64 -DUSE_POSIX_ACLS=@USE_POSIX_ACLS@
30-- 31--
312.17.1 322.8.1
32 33
diff --git a/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch b/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch
index e3453a2..deb9e45 100644
--- a/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch
+++ b/recipes-extended/glusterfs/files/glusterfs-change-default-nfs-port-number.patch
@@ -1,6 +1,6 @@
1From b0c106e74beee36c20f73b956841007209a7f23c Mon Sep 17 00:00:00 2001 1From b8b48d3c4ab92ce167db8137426fad45e938b11b Mon Sep 17 00:00:00 2001
2From: "Hongzhi.Song" <hongzhi.song@windriver.com> 2From: "Hongzhi.Song" <hongzhi.song@windriver.com>
3Date: Tue, 12 Mar 2019 19:52:03 -0700 3Date: Wed, 24 Apr 2019 22:50:01 -0400
4Subject: [PATCH] glusterfs: change default nfs port number 4Subject: [PATCH] glusterfs: change default nfs port number
5 5
6Currently both native nfs and glusterfs-nfs use NFS well 6Currently both native nfs and glusterfs-nfs use NFS well
@@ -30,25 +30,25 @@ Signed-off-by: Vu Tran <vu.tran@windriver.com>
30Signed-off-by: Xulin Sun <xulin.sun@windriver.com> 30Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
31[Yi: minor adjust to apply the patch on 3.11.1] 31[Yi: minor adjust to apply the patch on 3.11.1]
32Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 32Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
33[Hongzhi: minor adjust to apply the patch on v5.4] 33[Hongzhi: modify patch for release-6.1]
34Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> 34Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
35--- 35---
36 libglusterfs/src/common-utils.h | 2 +- 36 libglusterfs/src/glusterfs/common-utils.h | 2 +-
37 1 file changed, 1 insertion(+), 1 deletion(-) 37 1 file changed, 1 insertion(+), 1 deletion(-)
38 38
39diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h 39diff --git a/libglusterfs/src/glusterfs/common-utils.h b/libglusterfs/src/glusterfs/common-utils.h
40index 6a6fd8c..218e379 100644 40index 0e2ecc7..59237a9 100644
41--- a/libglusterfs/src/common-utils.h 41--- a/libglusterfs/src/glusterfs/common-utils.h
42+++ b/libglusterfs/src/common-utils.h 42+++ b/libglusterfs/src/glusterfs/common-utils.h
43@@ -108,7 +108,7 @@ trap(void); 43@@ -108,7 +108,7 @@ trap(void);
44 /* Defining this here as it is needed by glusterd for setting 44 /* Defining this here as it is needed by glusterd for setting
45 * nfs port in volume status. 45 * nfs port in volume status.
46 */ 46 */
47-#define GF_NFS3_PORT 2049 47-#define GF_NFS3_PORT 2049
48+#define GF_NFS3_PORT 38467 48+#define GF_NFS3_PORT 38467
49 49
50 #define GF_CLIENT_PORT_CEILING 1024 50 #define GF_CLIENT_PORT_CEILING 1024
51 #define GF_IANA_PRIV_PORTS_START 49152 /* RFC 6335 */ 51 #define GF_IANA_PRIV_PORTS_START 49152 /* RFC 6335 */
52-- 52--
532.17.1 532.8.1
54 54
diff --git a/recipes-extended/glusterfs/files/glusterfs-configure-automake-with-subdir-objects-for.patch b/recipes-extended/glusterfs/files/glusterfs-configure-automake-with-subdir-objects-for.patch
index 8f3c854..6278ce6 100644
--- a/recipes-extended/glusterfs/files/glusterfs-configure-automake-with-subdir-objects-for.patch
+++ b/recipes-extended/glusterfs/files/glusterfs-configure-automake-with-subdir-objects-for.patch
@@ -1,6 +1,6 @@
1From bb34fd21ae26005cf099928f41e68a0d98685eba Mon Sep 17 00:00:00 2001 1From fcd612f75c2e99a0748bebbf530b730d0019d2bf Mon Sep 17 00:00:00 2001
2From: Xulin Sun <xulin.sun@windriver.com> 2From: "Hongzhi.Song" <hongzhi.song@windriver.com>
3Date: Mon, 21 Mar 2016 17:32:50 +0800 3Date: Wed, 24 Apr 2019 22:33:49 -0400
4Subject: [PATCH] glusterfs: configure: automake with subdir-objects & foreign 4Subject: [PATCH] glusterfs: configure: automake with subdir-objects & foreign
5 parameters 5 parameters
6 6
@@ -10,21 +10,22 @@ autoconf execution failed when using automake 1.14 around version.
10Upstream-Status: Pending 10Upstream-Status: Pending
11 11
12Signed-off-by: Xulin Sun <xulin.sun@windriver.com> 12Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
13 13[modify the patch for release-6.1]
14Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
14--- 15---
15 configure.ac | 4 ++-- 16 configure.ac | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-) 17 1 file changed, 2 insertions(+), 2 deletions(-)
17 18
18diff --git a/configure.ac b/configure.ac 19diff --git a/configure.ac b/configure.ac
19index 43efd6d..8ce28f6 100644 20index 2f341de..b28ac20 100644
20--- a/configure.ac 21--- a/configure.ac
21+++ b/configure.ac 22+++ b/configure.ac
22@@ -13,11 +13,11 @@ AC_INIT([glusterfs], 23@@ -13,11 +13,11 @@ AC_INIT([glusterfs],
23 AC_SUBST([PACKAGE_RELEASE], 24 AC_SUBST([PACKAGE_RELEASE],
24 [m4_esyscmd([build-aux/pkg-version --release])]) 25 [m4_esyscmd([build-aux/pkg-version --release])])
25 26
26-AM_INIT_AUTOMAKE(tar-pax) 27-AM_INIT_AUTOMAKE([tar-pax foreign])
27+#AM_INIT_AUTOMAKE(tar-pax) 28+#AM_INIT_AUTOMAKE([tar-pax foreign])
28 29
29 # Removes warnings when using automake 1.14 around (...but option 'subdir-objects' is disabled ) 30 # Removes warnings when using automake 1.14 around (...but option 'subdir-objects' is disabled )
30 #but libglusterfs fails to build with contrib (Then are not set up that way?) 31 #but libglusterfs fails to build with contrib (Then are not set up that way?)
@@ -33,3 +34,6 @@ index 43efd6d..8ce28f6 100644
33 34
34 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)]) 35 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
35 36
37--
382.8.1
39
diff --git a/recipes-extended/glusterfs/files/glusterfs-disable-default-startup-scripts.patch b/recipes-extended/glusterfs/files/glusterfs-disable-default-startup-scripts.patch
index dbc81b6..7f582dc 100644
--- a/recipes-extended/glusterfs/files/glusterfs-disable-default-startup-scripts.patch
+++ b/recipes-extended/glusterfs/files/glusterfs-disable-default-startup-scripts.patch
@@ -1,6 +1,6 @@
1From 08b55ee9ccb02db0519ddc9902025e191c1500b1 Mon Sep 17 00:00:00 2001 1From bbc23b4723a5f60f2b6f4daf734194f9a3a315d8 Mon Sep 17 00:00:00 2001
2From: Donn Seeley <donn.seeley@windriver.com> 2From: "Hongzhi.Song" <hongzhi.song@windriver.com>
3Date: Fri, 28 Feb 2014 09:11:02 -0500 3Date: Wed, 24 Apr 2019 22:41:04 -0400
4Subject: [PATCH] Add the glusterfs package 4Subject: [PATCH] Add the glusterfs package
5 5
6The glusterfs code for installing start-up scripts checks for systemd 6The glusterfs code for installing start-up scripts checks for systemd
@@ -18,21 +18,25 @@ Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
18Signed-off-by: Xulin Sun <xulin.sun@windriver.com> 18Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
19[Yi: minor adjust to apply the patch on 3.11.1] 19[Yi: minor adjust to apply the patch on 3.11.1]
20Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 20Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
21 21[modify patch for release-6.1]
22Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
22--- 23---
23 extras/Makefile.am | 2 +- 24 extras/Makefile.am | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
25 26
26diff --git a/extras/Makefile.am b/extras/Makefile.am 27diff --git a/extras/Makefile.am b/extras/Makefile.am
27index 3af1103..8978dde 100644 28index ff5ca9b..1f59746 100644
28--- a/extras/Makefile.am 29--- a/extras/Makefile.am
29+++ b/extras/Makefile.am 30+++ b/extras/Makefile.am
30@@ -4,7 +4,7 @@ addonexec_SCRIPTS = peer_add_secret_pub 31@@ -10,7 +10,7 @@ endif
31 EditorModedir = $(docdir) 32 EditorModedir = $(docdir)
32 EditorMode_DATA = glusterfs-mode.el glusterfs.vim 33 EditorMode_DATA = glusterfs-mode.el glusterfs.vim
33 34
34-SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \ 35-SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
35+SUBDIRS = benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \ 36+SUBDIRS = benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
36 $(GEOREP_EXTRAS_SUBDIR) snap_scheduler firewalld cliutils 37 $(GEOREP_EXTRAS_SUBDIR) snap_scheduler firewalld cliutils python
37 38
38 confdir = $(sysconfdir)/glusterfs 39 confdir = $(sysconfdir)/glusterfs
40--
412.8.1
42
diff --git a/recipes-extended/glusterfs/glusterfs.inc b/recipes-extended/glusterfs/glusterfs.inc
index 5843d7c..ab5f4e0 100644
--- a/recipes-extended/glusterfs/glusterfs.inc
+++ b/recipes-extended/glusterfs/glusterfs.inc
@@ -16,7 +16,6 @@ SRC_URI += "file://glusterd.init \
16 file://glusterfs-api-remove-unnecessary-library-options.patch \ 16 file://glusterfs-api-remove-unnecessary-library-options.patch \
17 file://python-work-around-host-and-target-python.patch \ 17 file://python-work-around-host-and-target-python.patch \
18 file://glusterfs-change-default-nfs-port-number.patch \ 18 file://glusterfs-change-default-nfs-port-number.patch \
19 file://dependence-on-correct-header-file-path.patch \
20 file://libglusterfs-Don-t-link-against-libfl.patch \ 19 file://libglusterfs-Don-t-link-against-libfl.patch \
21 file://glusterd-change-port-range.patch \ 20 file://glusterd-change-port-range.patch \
22 file://configure.ac-allow-PYTHON-values-to-be-passed-via-en.patch \ 21 file://configure.ac-allow-PYTHON-values-to-be-passed-via-en.patch \
@@ -51,7 +50,6 @@ EXTRA_OECONF = "ac_cv_file__etc_debian_version=no \
51 " 50 "
52 51
53PACKAGECONFIG ??= "georeplication libibverbs" 52PACKAGECONFIG ??= "georeplication libibverbs"
54PACKAGECONFIG[bd-xlator] = "--enable-bd-xlator,--disable-bd-xlator,lvm2,"
55PACKAGECONFIG[debug] = "--enable-debug,--disable-debug,," 53PACKAGECONFIG[debug] = "--enable-debug,--disable-debug,,"
56PACKAGECONFIG[georeplication] = "--enable-georeplication,--disable-georeplication,,rsync" 54PACKAGECONFIG[georeplication] = "--enable-georeplication,--disable-georeplication,,rsync"
57PACKAGECONFIG[libibverbs] = "--enable-ibverbs,--disable-ibverbs,virtual/libibverbs librdmacm," 55PACKAGECONFIG[libibverbs] = "--enable-ibverbs,--disable-ibverbs,virtual/libibverbs librdmacm,"
diff --git a/recipes-extended/glusterfs/glusterfs_5.4.bb b/recipes-extended/glusterfs/glusterfs_5.4.bb
deleted file mode 100644
index 90ffd14..0000000
--- a/recipes-extended/glusterfs/glusterfs_5.4.bb
+++ /dev/null
@@ -1,6 +0,0 @@
1SRC_URI = "https://bits.gluster.org/pub/gluster/glusterfs/src/${BPN}-${PV}.tar.gz"
2
3SRC_URI[md5sum] = "b52ec9101de3c01c7db17c00b3234d94"
4SRC_URI[sha256sum] = "d4f8cf7551c4ac97480fa4f2da6077171b12d5501ee1ddc4cd8535e2336bde7e"
5
6require glusterfs.inc
diff --git a/recipes-extended/glusterfs/glusterfs_6.1.bb b/recipes-extended/glusterfs/glusterfs_6.1.bb
new file mode 100644
index 0000000..e109c08
--- /dev/null
+++ b/recipes-extended/glusterfs/glusterfs_6.1.bb
@@ -0,0 +1,6 @@
1SRC_URI = "https://bits.gluster.org/pub/gluster/glusterfs/src/${BPN}-${PV}.tar.gz"
2
3SRC_URI[md5sum] = "18967c357204d4cbdd9c1731508862c6"
4SRC_URI[sha256sum] = "32ac75c883cdf18e081893ce5210b2331f1ee9ba25e3f3f56136d9878b194dc7"
5
6require glusterfs.inc