[packages/heartbeat] Use actual release as Source0
jajcus
jajcus at pld-linux.org
Tue Oct 30 13:05:56 CET 2012
commit a8633069d1119486c0a8c26203c42d419fed09e6
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Oct 30 13:03:24 2012 +0100
Use actual release as Source0
The only change on the snapshot packaged previously is no in the
heartbeat-type_mismatch.patch.
Release: 6
heartbeat-type_mismatch.patch | 26 ++++++++++++++++++++++++++
heartbeat.spec | 17 +++++++++--------
2 files changed, 35 insertions(+), 8 deletions(-)
---
diff --git a/heartbeat.spec b/heartbeat.spec
index 4094463..f0d3e09 100644
--- a/heartbeat.spec
+++ b/heartbeat.spec
@@ -3,7 +3,6 @@
# - 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"
@@ -11,16 +10,17 @@ Summary(pl.UTF-8): Podsystem heartbeat dla systemów o podwyższonej niezawodno
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
@@ -137,10 +137,11 @@ Cluster Test Suite for heartbeat.
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
diff --git a/heartbeat-type_mismatch.patch b/heartbeat-type_mismatch.patch
new file mode 100644
index 0000000..208ee2e
--- /dev/null
+++ b/heartbeat-type_mismatch.patch
@@ -0,0 +1,26 @@
+http://hg.linux-ha.org/heartbeat-STABLE_3_0/rev/7e3a82377fa8
+
+# HG changeset patch
+# User Lars Ellenberg <lars at 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];
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/heartbeat.git/commitdiff/e2852c603c7645dbb46de2ecf0a239bdd66ff1c8
More information about the pld-cvs-commit
mailing list