]> git.pld-linux.org Git - packages/ccs.git/commitdiff
- up to 2.03.11, deprecation note master
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 May 2018 03:47:41 +0000 (05:47 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 May 2018 03:47:41 +0000 (05:47 +0200)
- added kernel patch (fix kernel version check)

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

index 5d6a8e5b4282d0076e693940603bcffc3b263685..0d5a8d7830fbdd0dec2aa4bf5418951fbbce7a46 100644 (file)
--- a/ccs.spec
+++ b/ccs.spec
@@ -1,14 +1,16 @@
+# NOTE: obsoleted by -ccs* subpackages from cluster.spec (3.x)
 Summary:       Cluster configuration system to manage the cluster config file
 Summary(pl.UTF-8):     System konfiguracji klastra do zarządzania jego plikiem konfiguracyjnym
 Name:          ccs
-Version:       2.03.10
+Version:       2.03.11
 Release:       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
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
+Patch0:                cluster-kernel.patch
 URL:           http://sources.redhat.com/cluster/ccs/
 BuildRequires: cman-devel >= 2
 BuildRequires: libxml2-devel >= 2.0
@@ -40,6 +42,7 @@ Pliki nagłówkowe i biblioteka statyczna ccs.
 
 %prep
 %setup -q -n cluster-%{version}
+%patch0 -p1
 
 %build
 ./configure \
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 {
This page took 0.085421 seconds and 4 git commands to generate.