- up to 2.03.11, deprecation note master
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 May 2018 15:04:59 +0000 (17:04 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 May 2018 15:04:59 +0000 (17:04 +0200)
- added kernel patch (fix kernel version check)

cluster-kernel.patch [new file with mode: 0644]
fence.spec

diff --git a/cluster-kernel.patch b/cluster-kernel.patch
new file mode 100644 (file)
index 0000000..e140656
--- /dev/null
@@ -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 {
index 62584f5..09e4536 100644 (file)
@@ -1,19 +1,21 @@
+# NOTE: obsoleted by -fence subpackage from cluster.spec (3.x)
 Summary:       I/O fencing system
 Summary(pl.UTF-8):     System barier I/O
 Name:          fence
-Version:       2.03.10
+Version:       2.03.11
 Release:       1
 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:                cluster-kernel.patch
 URL:           http://sources.redhat.com/cluster/fence/
-BuildRequires: cman-devel >= 2.03.10
-BuildRequires: ccs-devel >= 2.03.10
+BuildRequires: cman-devel >= 2.03.11
+BuildRequires: ccs-devel >= 2.03.11
 BuildRequires: perl-base
 BuildRequires: rpm-pythonprov
-Requires:      cman-libs >= 2.03.10
+Requires:      cman-libs >= 2.03.11
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -47,6 +49,7 @@ zasilania).
 
 %prep
 %setup -q -n cluster-%{version}
+%patch0 -p1
 
 %build
 ./configure \
This page took 0.068886 seconds and 4 git commands to generate.