Skip to content

Commit d7f447d

Browse files
authored
Merge pull request #128 from wenningerk/version_bump
Version bump to 1.5.0
2 parents 926b554 + 4449940 commit d7f447d

File tree

4 files changed

+36
-11
lines changed

4 files changed

+36
-11
lines changed

Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ MOCK_OPTIONS ?= --resultdir=$(RPM_ROOT)/mock --no-cleanup-after
2626
BUILD_COUNTER ?= build.counter
2727
COUNT = $(shell expr 1 + 0$(shell cat $(BUILD_COUNTER)))
2828

29-
COMMIT_COUNTER ?= $(shell git describe --tags --long --always --match v$(SPEC_VERSION) | cut -f 2 -d-)
29+
COMMIT_COUNTER ?= $(shell git describe --tags --long --always --match v$(SPEC_VERSION) | cut -f 2 -d- -s)
3030

3131
TESTS = tests/regressions.sh
3232
export SBD_BINARY := src/sbd
@@ -74,7 +74,7 @@ spec:
7474
echo $(COUNT) > $(BUILD_COUNTER); \
7575
fi
7676
if [ -n $(COMMIT_COUNTER) ]; then \
77-
sed -i 's/global\ commit_counter.*/global\ commit_counter\ $(COMMIT_COUNTER)/' $(distdir)/$(PACKAGE).spec; \
77+
sed -i 's/global\ commit_counter.*/global\ commit_counter\ $(COMMIT_COUNTER)-1/' $(distdir)/$(PACKAGE).spec; \
7878
fi
7979

8080
srpm: export spec

configure.ac

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dnl checks for library functions
2020
dnl checks for system services
2121

2222
AC_INIT([sbd],
23-
[1.4.2],
23+
[1.5.0],
2424
[lmb@suse.com])
2525
m4_include([tests-opt.m4])
2626
AC_CANONICAL_HOST
@@ -332,15 +332,15 @@ AC_DEFINE_UNQUOTED(SBD_WATCHDOG_TIMEOUT_DEFAULT, $SBD_WATCHDOG_TIMEOUT_DEFAULT,
332332
Timeout in seconds SBD will configure the watchdog per default)
333333

334334
if test x"${SBD_SYNC_RESOURCE_STARTUP_DEFAULT}" = x""; then
335-
SBD_SYNC_RESOURCE_STARTUP_DEFAULT=no
335+
SBD_SYNC_RESOURCE_STARTUP_DEFAULT=yes
336336
fi
337337
AC_SUBST(SBD_SYNC_RESOURCE_STARTUP_DEFAULT)
338338
dnl rather pass to C as a string and interpret there for consistent interpretation
339339
AC_DEFINE_UNQUOTED(SBD_SYNC_RESOURCE_STARTUP_DEFAULT, "${SBD_SYNC_RESOURCE_STARTUP_DEFAULT}",
340340
Default for SBD_SYNC_RESOURCE_STARTUP if not given in SBD configuration file explicitly)
341341

342342
if test x"${SBD_SYNC_RESOURCE_STARTUP_SYSCONFIG}" = x""; then
343-
SBD_SYNC_RESOURCE_STARTUP_SYSCONFIG=no
343+
SBD_SYNC_RESOURCE_STARTUP_SYSCONFIG=${SBD_SYNC_RESOURCE_STARTUP_DEFAULT}
344344
fi
345345
AC_SUBST(SBD_SYNC_RESOURCE_STARTUP_SYSCONFIG)
346346

sbd.spec

+30-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Please submit bugfixes or comments via http://bugs.opensuse.org/
1717
#
18-
%global longcommit bfeee963f7363720da91a018045ca6746d822ba0
18+
%global longcommit 2a00ac70f7200ed238a5bc73392e6a59a06fe904
1919
%global shortcommit %(echo %{longcommit}|cut -c1-8)
2020
%global modified %(echo %{longcommit}-|cut -f2 -d-)
2121
%global github_owner Clusterlabs
@@ -30,14 +30,28 @@
3030
%global watchdog_timeout_default 5
3131
%endif
3232

33-
%global sync_resource_startup_default no
34-
%global sync_resource_startup_sysconfig no
33+
# Be careful with sync_resource_startup_default
34+
# being enabled. This configuration has
35+
# to be in sync with configuration in pacemaker
36+
# where it is called sbd_sync - assure by e.g.
37+
# mutual rpm dependencies.
38+
%bcond_without sync_resource_startup_default
39+
# Syncing enabled per default will lead to
40+
# syncing enabled on upgrade without adaption
41+
# of the config.
42+
# Setting can still be overruled via sysconfig.
43+
# The setting in the config-template packaged
44+
# will follow the default if below is is left
45+
# empty. But it is possible to have the setting
46+
# in the config-template deviate from the default
47+
# by setting below to an explicit 'yes' or 'no'.
48+
%global sync_resource_startup_sysconfig ""
3549

3650
Name: sbd
3751
Summary: Storage-based death
3852
License: GPLv2+
3953
Group: System Environment/Daemons
40-
Version: 1.4.2
54+
Version: 1.5.0
4155
Release: 99.%{buildnum}.%{shortcommit}.%{modified}git%{?dist}
4256
Url: https://github.com/%{github_owner}/%{name}
4357
Source0: https://github.com/%{github_owner}/%{name}/archive/%{longcommit}/%{name}-%{longcommit}.tar.gz
@@ -72,6 +86,9 @@ ExclusiveArch: i686 x86_64 s390x aarch64 ppc64le
7286

7387
This package contains the storage-based death functionality.
7488

89+
Available rpmbuild rebuild options:
90+
--with(out) : sync_resource_startup_default
91+
7592
%package tests
7693
Summary: Storage-based death environment for regression tests
7794
License: GPLv2+
@@ -91,7 +108,7 @@ regression-testing sbd.
91108
./autogen.sh
92109
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror"
93110
%configure --with-watchdog-timeout-default=%{watchdog_timeout_default} \
94-
--with-sync-resource-startup-default=%{sync_resource_startup_default} \
111+
--with-sync-resource-startup-default=%{?with_sync_resource_startup_default:yes}%{!?with_sync_resource_startup_default:no} \
95112
--with-sync-resource-startup-sysconfig=%{sync_resource_startup_sysconfig}
96113
make %{?_smp_mflags}
97114
###########################################################
@@ -155,6 +172,14 @@ rm -rf %{buildroot}
155172
%{_libdir}/libsbdtestbed*
156173

157174
%changelog
175+
* Tue Jun 8 2021 <klaus.wenninger@aon.at> - 1.5.0-99.0.2a00ac70.git
176+
- default to resource-syncing with pacemaker in spec-file and configure.ac
177+
This default has to match between sbd and pacemaker and
178+
thus qualifies this release for a minor-version-bump
179+
- fix some regressions introduced by adding configurability previously
180+
- adapt description of startup/shutdown sync with pacemaker
181+
- make watchdog warning messages more understandable
182+
158183
* Wed Dec 2 2020 <klaus.wenninger@aon.at> - 1.4.2-99.1.bfeee963.git
159184
- improve build/CI-friendlyness
160185
- * travis: switch to F32 as build-host

tests/configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dnl checks for library functions
2020
dnl checks for system services
2121

2222
AC_INIT([sbd],
23-
[1.4.2],
23+
[1.5.0],
2424
[lmb@suse.com])
2525
m4_include([../tests-opt.m4])
2626
AC_CANONICAL_HOST

0 commit comments

Comments
 (0)