[packages/ccs] - up to 2.03.11, deprecation note - added kernel patch (fix kernel version check)
qboosh
qboosh at pld-linux.org
Tue May 15 05:46:54 CEST 2018
commit 2e8b10951ceaaf1e9433a6eaa2c9687aeff8637d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue May 15 05:47:41 2018 +0200
- up to 2.03.11, deprecation note
- added kernel patch (fix kernel version check)
ccs.spec | 7 +++++--
cluster-kernel.patch | 15 +++++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/ccs.spec b/ccs.spec
index 5d6a8e5..0d5a8d7 100644
--- 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
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/ccs.git/commitdiff/2e8b10951ceaaf1e9433a6eaa2c9687aeff8637d
More information about the pld-cvs-commit
mailing list