[packages/gfs2] - up to 2.03.11, deprecation note - added kernel patch (fix kernel version check)

qboosh qboosh at pld-linux.org
Tue May 15 19:58:38 CEST 2018


commit c6d1888e1c48f00506e2ff869bae779091208aa3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue May 15 19:59:25 2018 +0200

    - up to 2.03.11, deprecation note
    - added kernel patch (fix kernel version check)

 cluster-kernel.patch | 15 +++++++++++++++
 gfs2.spec            | 13 +++++++------
 2 files changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/gfs2.spec b/gfs2.spec
index 9686b76..65014ce 100644
--- a/gfs2.spec
+++ b/gfs2.spec
@@ -1,5 +1,5 @@
 # NOTE:
-# - for 3rd generation cluster see cluster.spec
+# - obsolete, for 3rd generation cluster see cluster.spec
 # - gfs2 and dlm kernel modules are in the kernel package
 #   (2.6.28.9-3 for example); gfs is the old GFS.
 #
@@ -28,23 +28,23 @@
 Summary:	Shared-disk cluster file system
 Summary(pl.UTF-8):	Klastrowy system plików na współdzielonym dysku
 Name:		gfs2
-Version:	2.03.10
+Version:	2.03.11
 Release:	%{rel}
 Epoch:		1
 License:	GPL v2
 Group:		Applications/System
 Source0:	ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
-# Source0-md5:	379b560096e315d4b52e238a5c72ba4a
+# Source0-md5:	712b9f583472d1de614641bc0f4a0aaf
 Patch0:		%{name}-kernel-2.6.28.patch
 Patch1:		%{name}-llh.patch
 Patch2:		%{name}-blkid.patch
 Patch3:		%{name}-quota-nolist.patch
+Patch4:		cluster-kernel.patch
 URL:		http://sources.redhat.com/cluster/gfs/
 BuildRequires:	libblkid-devel >= 2.16
 # which exactly version merged qq_ll_next into reserved in gfs2_quota struct?
 BuildRequires:	linux-libc-headers >= 7:2.6.38
 BuildRequires:	ncurses-devel
-BuildRequires:	openais-devel
 BuildRequires:	perl-base
 %if %{with dist_kernel}
 BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.27
@@ -116,6 +116,7 @@ Moduł jądra gnbd.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %{__perl} -pi -e 's/-lncurses/-lncurses -ltinfo/' gfs2/edit/Makefile
 
@@ -136,7 +137,7 @@ sed -i -e "s,\$(OBJDIR),$PWD," gnbd-kernel/src/Makefile
 	--incdir=%{_includedir} \
 	--ncursesincdir=%{_includedir}/ncurses \
 	--libdir=%{_libdir} \
-	--libexecdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
 	--mandir=%{_mandir} \
 	--prefix=%{_prefix} \
 	--sbindir=%{_sbindir} \
@@ -162,7 +163,7 @@ rm -rf $RPM_BUILD_ROOT
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
-mv $RPM_BUILD_ROOT/''etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d
+%{__mv} $RPM_BUILD_ROOT/''etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d
 %endif
 
 %if %{with kernel}
diff --git a/cluster-kernel.patch b/cluster-kernel.patch
new file mode 100644
index 0000000..e140656
--- /dev/null
+++ b/cluster-kernel.patch
@@ -0,0 +1,15 @@
+--- cluster-2.03.11/configure.orig	2009-01-22 13:33:51.000000000 +0100
++++ cluster-2.03.11/configure	2018-05-14 21:46:55.682776792 +0200
+@@ -270,9 +270,9 @@
+ 	return 1;
+     }
+     # checking VERSION, PATCHLEVEL and SUBLEVEL for the supplied kernel
+-    if ($build_version >= $version[0] &&
+-        $build_patchlevel >= $version[1] &&
+-        $build_sublevel >= $version[2]) {
++    if ($build_version > $version[0] || ($build_version == $version[0] &&
++        ($build_patchlevel > $version[1] || ($build_patchlevel == $version[1] &&
++        $build_sublevel >= $version[2])))) {
+       print " Current kernel version appears to be OK\n";
+       return 1;
+     } else {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gfs2.git/commitdiff/c6d1888e1c48f00506e2ff869bae779091208aa3



More information about the pld-cvs-commit mailing list