[nfs-ganesha] Update to V2.0.0 release Fix strict compile problem with LUSTRE FSAL

Jim Lieb lieb at fedoraproject.org
Wed Dec 11 01:38:18 UTC 2013


commit 2dc956f34746357820039d7f4333c032cef2c134
Author: Jim Lieb <lieb at sea-troll.net>
Date:   Tue Dec 10 16:55:15 2013 -0800

    Update to V2.0.0 release
    Fix strict compile problem with LUSTRE FSAL

 nfs-ganesha-2.0.0-lustre-strict.patch |   12 ++++++++++++
 nfs-ganesha.spec                      |   13 ++++++++-----
 sources                               |    4 ++--
 3 files changed, 22 insertions(+), 7 deletions(-)
---
diff --git a/nfs-ganesha-2.0.0-lustre-strict.patch b/nfs-ganesha-2.0.0-lustre-strict.patch
new file mode 100644
index 0000000..6387ede
--- /dev/null
+++ b/nfs-ganesha-2.0.0-lustre-strict.patch
@@ -0,0 +1,12 @@
+diff -up nfs-ganesha-2.0.0/src/FSAL/FSAL_LUSTRE/fsal_handle.h.lustre-strict nfs-ganesha-2.0.0/src/FSAL/FSAL_LUSTRE/fsal_handle.h
+--- nfs-ganesha-2.0.0/src/FSAL/FSAL_LUSTRE/fsal_handle.h.lustre-strict	2013-12-10 16:01:48.823633927 -0800
++++ nfs-ganesha-2.0.0/src/FSAL/FSAL_LUSTRE/fsal_handle.h	2013-12-10 16:02:38.036661006 -0800
+@@ -109,7 +109,7 @@ static inline int lustre_name_to_handle_
+ 					   struct lustre_file_handle
+ 					   *out_handle, int flags)
+ {
+-	char path[MAXPATHLEN];
++	char path[MAXPATHLEN + 2];
+ 
+ 	if (!mntpath || !at_handle || !name || !out_handle)
+ 		return -1;
diff --git a/nfs-ganesha.spec b/nfs-ganesha.spec
index 2281f64..1e78907 100644
--- a/nfs-ganesha.spec
+++ b/nfs-ganesha.spec
@@ -1,13 +1,14 @@
 
 # %%global prereltag rcfinal
-%global reltag pre-2.0-RC-final
+%global version 2.0.0
+%global reltag V%{version}
 %global ntirpcname ntirpc
 %global ntirpcvers 1.0.0
 
 %global _hardened_build 1
 
 Name:              nfs-ganesha
-Version:           2.0.0
+Version:           %{version}
 Release:           1%{?prereltag:.%{prereltag}}%{?dist}
 Summary:           Ganesha NFS Server
 Group:             System Environment/Libraries
@@ -16,10 +17,11 @@ URL:               https://github.com/nfs-ganesha/nfs-ganesha/wiki
 ExclusiveArch:     x86_64
 ExclusiveArch:     aarch64
 
-Source0:           https://github.com/%{name}/%{name}/archive/%{reltag}.tar.gz
-Source1:           https://github.com/%{name}/%{ntirpcname}/archive/v%{ntirpcvers}.tar.gz
+Source0:           %{name}-%{version}.tar.gz
+Source1:           %{ntirpcname}-%{ntirpcvers}.tar.gz
 Source2:           nfs-ganesha.service
 Patch1:            nfs-ganesha-2.0.0rc5.patch
+Patch2:            nfs-ganesha-2.0.0-lustre-strict.patch
 
 # Bundling exception through Fedora 23
 # https://fedorahosted.org/fpc/ticket/363
@@ -78,10 +80,11 @@ clusters such as CEPH and GLUSTERFS. There is also a PROXY back-end
 which operates as an NFSv4 client.
 
 %prep
-%setup -q -n %{name}-%{reltag} -a 1
+%setup -q -n %{name}-%{version} -a 1
 rm -rf contrib/libzfswrapper
 mv %{ntirpcname}-%{ntirpcvers}/* src/libntirpc/
 %patch1 -p1
+%patch2 -p1
 
 %build
 %cmake -DCMAKE_BUILD_TYPE=Maintainer -DBUILD_CONFIG=everything -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr ./src
diff --git a/sources b/sources
index 8e475b6..9e69df5 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-5d116f9306a254b44e68c96dba5ac9d5  pre-2.0-RC-final.tar.gz
-5a7c90879d6ce3d3a927defe3fbd0939  v1.0.0.tar.gz
+5a7c90879d6ce3d3a927defe3fbd0939  ntirpc-1.0.0.tar.gz
+30335404075b43fd328708aa8ff2d39f  nfs-ganesha-2.0.0.tar.gz


More information about the scm-commits mailing list