File bug-1191734_0006-dlm_controld-add-version-check-for-libquorum.patch of Package libdlm
xxxxxxxxxx
1
From 3201db3835c85a1d9a407e621bff7902896e8a82 Mon Sep 17 00:00:00 2001
2
From: Alexander Aring <aahringo@redhat.com>
3
Date: Tue, 7 Sep 2021 12:06:00 -0400
4
Subject: [PATCH 06/14] dlm_controld: add version check for libquorum
5
6
This patch adds a simple version check for libquorum. Since commit
7
2e893b98 ("dlm_controld: use new quorum api to detect missed failures")
8
dlm_controld uses functionality which is only available in libquorum
9
3.1.0 and upwards.
10
---
11
dlm_controld/Makefile | 4 ++++
12
1 file changed, 4 insertions(+)
13
14
diff --git a/dlm_controld/Makefile b/dlm_controld/Makefile
15
index 667998076acc..8cfc97e6909a 100644
16
--- a/dlm_controld/Makefile
17
+++ b/dlm_controld/Makefile
18
19
BIN_LDFLAGS += $(shell $(PKG_CONFIG) --libs libsystemd)
20
endif
21
22
+ifeq (, $(shell $(PKG_CONFIG) --libs "libquorum >= 3.1.0"))
23
+ $(error "Requires libquorum at least version 3.1.0")
24
+endif
25
+
26
all: $(LIB_TARGET) $(BIN_TARGET) $(LIB_PC)
27
28
$(BIN_TARGET): $(BIN_SOURCE)
29
--
30
2.33.0
31
32