]> git.pld-linux.org Git - packages/gfs2.git/commitdiff
- up to 2.03.11, deprecation note
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 May 2018 17:59:25 +0000 (19:59 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 15 May 2018 17:59:25 +0000 (19:59 +0200)
- added kernel patch (fix kernel version check)

cluster-kernel.patch [new file with mode: 0644]
gfs2.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 9686b76a9c3ab9b3997c1bbf1cc4150ae5c2fa6c..65014ce48aa402bee8feaef8a965dc8f9b14d774 100644 (file)
--- 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.
 #
 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}
This page took 0.06483 seconds and 4 git commands to generate.