--- /dev/null
+http://hg.linux-ha.org/heartbeat-STABLE_3_0/rev/7e3a82377fa8
+
+# HG changeset patch
+# User Lars Ellenberg <lars@linbit.com>
+# Date 1308306763 -7200
+# Node ID 7e3a82377fa8c88b4d9ee47e29020d4531f4629a
+# Parent 66b99da853910131ed599e8b06d200883f51b895
+Fix type mismatch in reset_seqtrack
+
+Would result in compilation warning, and probably bad runtime behaviour on
+32bit arch, if facing packet loss when packet sequence numbers already left
+the 32bit value space.
+
+--- a/heartbeat/heartbeat.c
++++ b/heartbeat/heartbeat.c
+@@ -5517,7 +5517,8 @@ static void
+ reset_seqtrack(struct node_info *n)
+ {
+ struct seqtrack *t = &n->track;
+- int i, seq;
++ seqno_t seq;
++ int i;
+
+ for (i = 0; i < t->nmissing; ++i) {
+ seq = t->seqmissing[i];
+
# - cleanup deps, users for 3.x
# - fixup deps, inner deps, think of subpackages, ugprade path from 2.1
#
-%define gitrel 7e3a82377fa8
%include /usr/lib/rpm/macros.perl
Summary: Heartbeat - subsystem for High-Availability Linux
Summary(es.UTF-8): Subsistema heartbeat para Linux "High-Availability"
Summary(pt_BR.UTF-8): Implementa sistema de monitoração (heartbeats) visando Alta Disponibilidade
Name: heartbeat
Version: 3.0.5
-Release: 5
+Release: 6
License: GPL v2+
Group: Networking/Daemons
-Source0: http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/%{gitrel}.tar.bz2
-# Source0-md5: 396510e3c143a9c2288bc52cfc9caa3c
+Source0: http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/STABLE-%{version}.tar.bz2
+# Source0-md5: f8686abde8722c42265c6d84fbe3d3bf
Source1: %{name}.init
Source2: %{name}.tmpfiles
-Patch0: %{name}-ac.patch
-Patch1: %{name}-libs.patch
-Patch2: %{name}-tls.patch
+Patch0: %{name}-type_mismatch.patch
+Patch1: %{name}-ac.patch
+Patch2: %{name}-libs.patch
+Patch3: %{name}-tls.patch
URL: http://www.linux-ha.org/Heartbeat
BuildRequires: OpenIPMI-devel >= 2.0.3
BuildRequires: autoconf
Zestaw testów klastra opartego o heartbeat.
%prep
-%setup -qn Heartbeat-3-0-%{gitrel}
+%setup -qn Heartbeat-3-0-STABLE-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
rm -rf libltdl
%build