SHA256
1
0
forked from pool/libdlm

41 Commits

Author SHA256 Message Date
f768979d12 Accepting request 1256092 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1256092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=59
2025-03-28 08:36:04 +00:00
094d3af855 - libdlm supports corosync 3.x multi-link (jsc#PED-11932)
* add upstream patch
    + dlm_controld-terminate-uevent-buffer.patch
    + dlm_controld-Support-for-extended-value-of-kernel-DL.patch
    + dlm_controld-remove-detect-mode-from-config-item-pro.patch
  * remove useless folder
    - %{_datadir}/doc/packages/libdlm-%{version}

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libdlm?expand=0&rev=100
2025-03-26 01:46:49 +00:00
edd4ef863a Accepting request 1181579 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1181579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=58
2024-06-19 14:36:33 +00:00
d144d82777 Accepting request 1112458 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1112458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=57
2023-09-21 20:13:30 +00:00
f629d101a5 Accepting request 1111563 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1111563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=56
2023-09-15 20:02:28 +00:00
2c0abd5e74 Accepting request 1096131 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1096131
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=55
2023-06-30 17:57:54 +00:00
ee7b898383 Accepting request 979440 from network:ha-clustering:Factory
- Adjust BuildRequires libpacemaker-devel -> pkgconfig(pacemaker)

OBS-URL: https://build.opensuse.org/request/show/979440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=54
2022-05-30 10:42:36 +00:00
8411731214 Accepting request 926153 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/926153
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=53
2021-10-20 18:22:59 +00:00
55d9dde91c Accepting request 841897 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/841897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=52
2020-10-18 14:19:39 +00:00
76ebbbf618 Accepting request 835763 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/835763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=51
2020-09-24 14:12:30 +00:00
753c59a072 Accepting request 834519 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/834519
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=50
2020-09-18 13:20:57 +00:00
8233cbce0d Accepting request 807937 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/807937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=49
2020-06-03 18:30:14 +00:00
4bef15f6b3 Accepting request 721899 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/721899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=48
2019-08-13 11:12:14 +00:00
c2bc4618e5 Accepting request 628532 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/628532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=47
2018-08-17 21:57:56 +00:00
71b6bf64c8 Accepting request 544879 from network:ha-clustering:Factory
Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) (forwarded request 544772 from RBrownSUSE)

OBS-URL: https://build.opensuse.org/request/show/544879
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=46
2017-11-30 11:37:19 +00:00
db71ff661b Accepting request 457225 from network:ha-clustering:Factory
1

OBS-URL: https://build.opensuse.org/request/show/457225
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=45
2017-02-18 23:59:17 +00:00
9433dc49b9 Accepting request 455904 from network:ha-clustering:Factory
1

OBS-URL: https://build.opensuse.org/request/show/455904
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=44
2017-02-13 23:37:45 +00:00
a779975bba Accepting request 454845 from network:ha-clustering:Factory
1

OBS-URL: https://build.opensuse.org/request/show/454845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=43
2017-02-08 11:06:29 +00:00
bbc39e711b Accepting request 414955 from network:ha-clustering:Factory
1

OBS-URL: https://build.opensuse.org/request/show/414955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=42
2016-08-03 09:38:15 +00:00
d52714274e Accepting request 305386 from network:ha-clustering:Factory
1

OBS-URL: https://build.opensuse.org/request/show/305386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=41
2015-05-06 09:17:36 +00:00
5c4c6b70d7 Accepting request 295617 from network:ha-clustering:Factory
1

OBS-URL: https://build.opensuse.org/request/show/295617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=40
2015-04-21 08:46:03 +00:00
b504c4538e Accepting request 262007 from network:ha-clustering:Factory
- BuildRequire pkgconfig(systemd) instead of systemd-devel.

OBS-URL: https://build.opensuse.org/request/show/262007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=39
2014-11-24 10:15:41 +00:00
Stephan Kulow
487f7b46db Accepting request 235643 from network:ha-clustering:Factory
- added necessary macros for systemd files (forwarded request 234968 from jsegitz)

OBS-URL: https://build.opensuse.org/request/show/235643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=37
2014-06-01 16:57:07 +00:00
Stephan Kulow
a5306cf15f Accepting request 234798 from network:ha-clustering:Factory
fix bnc#874705 (forwarded request 234797 from zhonglidong)

OBS-URL: https://build.opensuse.org/request/show/234798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=36
2014-05-22 07:04:19 +00:00
Stephan Kulow
e2f09d1880 Accepting request 231633 from network:ha-clustering:Factory
fix bnc#875122 (forwarded request 231632 from zhonglidong)

OBS-URL: https://build.opensuse.org/request/show/231633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=35
2014-05-05 19:09:56 +00:00
Stephan Kulow
d4a6d95a8d Accepting request 228256 from network:ha-clustering:Factory
fix bnc#870626 (forwarded request 228255 from zhonglidong)

OBS-URL: https://build.opensuse.org/request/show/228256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=34
2014-04-05 14:49:48 +00:00
Stephan Kulow
577644fe54 Accepting request 198825 from network:ha-clustering:Factory
Update libdlm for 13.1

- Build dlm_stonith to prox fencing for pacemaker
  + build-dlm_stonith.patch
- Remove patch to use default fscontrol using sysconfig
  - libdlm-enable-fscontrol.patch

- Update to V4.0.2 

- Update to V4.0.1(openSuse13.1) 
  + file a patch for opensuse build service
- Remove patches from sle11sp3 for either merged in the upstream
  or obsoleted.
  - bnc804707-reduce-RR-priority.patch
  - bnc777137-fix-plock-dev_write_no_op.patch
  - libdlm-gcc47.patch
  - libdlm-pacemaker.patch

- dl_controld: libdlm-pacemaker.patch 
  * Replace use of send_ais_text() with send_cluster_text()
  * Replace use of ais_dispatch() with plugin_dispatch()
  * Replace use of crm_peer_id_cache with crm_peer_cache

OBS-URL: https://build.opensuse.org/request/show/198825
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=33
2013-09-26 09:47:01 +00:00
Stephan Kulow
d5d3182ec0 Accepting request 181037 from network:ha-clustering:Factory
pushing HA

OBS-URL: https://build.opensuse.org/request/show/181037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=31
2013-07-08 05:24:09 +00:00
Stephan Kulow
730c0fceff Accepting request 150297 from network:ha-clustering:Factory
- small cleanup of spec file

- fix the build issue on openSuSE 12.3 Milestone 1 (bnc#798263)
  add bnc798263-fix-opensuse123-compile-error.patch

- dlm_controld: fix plock dev_write no op (bnc#777137)
  add bnc777137-fix-plock-dev_write-no-op.patch

OBS-URL: https://build.opensuse.org/request/show/150297
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=30
2013-01-30 10:16:58 +00:00
Stephan Kulow
2998777063 Accepting request 125839 from network:ha-clustering:Factory
- dlm_controld: Replace use of crm_is_member_active() with the new 
  crm_is_peer_active() from pacemaker > 1.1.7

OBS-URL: https://build.opensuse.org/request/show/125839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=28
2012-06-26 14:06:54 +00:00
Stephan Kulow
bfd42de75d Accepting request 122255 from network:ha-clustering:Factory
Fix build with gcc 4.7

OBS-URL: https://build.opensuse.org/request/show/122255
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=26
2012-05-26 07:26:17 +00:00
Stephan Kulow
c1b71beed9 Accepting request 98029 from network:ha-clustering:Factory
Fix build against latest version of Pacemaker

OBS-URL: https://build.opensuse.org/request/show/98029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=25
2011-12-25 16:35:37 +00:00
Stephan Kulow
9679283956 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=24
2011-12-06 17:23:08 +00:00
Stephan Kulow
abe54e0569 Accepting request 91156 from network:ha-clustering:Factory
add buildrequire libtool (forwarded request 91143 from coolo)

OBS-URL: https://build.opensuse.org/request/show/91156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=23
2011-11-14 11:00:28 +00:00
Sascha Peilicke
8eb386a5ee Accepting request 84014 from network:ha-clustering:Factory
Various dlm_controld fixes, dropped 3 patches (now in source tarball)

OBS-URL: https://build.opensuse.org/request/show/84014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=21
2011-09-21 15:09:58 +00:00
Sascha Peilicke
f05567f6b2 Autobuild autoformatter for 80295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=20
2011-08-31 08:45:11 +00:00
Sascha Peilicke
cc7b102163 Accepting request 80295 from network:ha-clustering:Factory
Fixed typos and removed duplicated "Authors:" entry in descriptions of libdlm.spec (forwarded request 80270 from aturrini)

OBS-URL: https://build.opensuse.org/request/show/80295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=19
2011-08-31 08:44:59 +00:00
Sascha Peilicke
5b3e91d664 Autobuild autoformatter for 71111
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=18
2011-05-24 07:22:55 +00:00
Sascha Peilicke
8a55320b8a Accepting request 71111 from network:ha-clustering:Factory
- Avoid adding build time in binaries, breaks build-compare. (forwarded request 71089 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/71111
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=17
2011-05-24 07:22:47 +00:00
Ruediger Oertel
d3400aa5bf Autobuild autoformatter for 60421
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=15
2011-02-11 00:32:30 +00:00
Ruediger Oertel
256f761ed3 Accepting request 60421 from network:ha-clustering:Factory
Accepted submit request 60421 from user tserong

OBS-URL: https://build.opensuse.org/request/show/60421
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdlm?expand=0&rev=14
2011-02-11 00:32:21 +00:00
5 changed files with 233 additions and 6 deletions

View File

@@ -0,0 +1,43 @@
From 1768dd91c309f1bf8b062c28c2edee8e5c7aaab4 Mon Sep 17 00:00:00 2001
From: Heming Zhao <heming.zhao@suse.com>
Date: Fri, 21 Feb 2025 23:09:35 +0800
Subject: [PATCH 1/2] dlm_controld: Support for extended value of kernel
DLM_MAX_ADDR_COUNT
This patch should work with the updated kernel dlm module, because
the code changes need to be aligned with the DLM_MAX_ADDR_COUNT value.
Another notice is that with the current dlm_controld code, users
should explicitly add 'protocol=sctp' to the dlm.conf in a corosync
3.x env.
---
2025.3.26 by heming zhao
I modified this patch by removing the dlm_sand part of the patch.
Signed-off-by: Heming Zhao <heming.zhao@suse.com>
---
dlm_controld/dlm_daemon.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlm_controld/dlm_daemon.h b/dlm_controld/dlm_daemon.h
index 4a533e3451e2..c902228f890f 100644
--- a/dlm_controld/dlm_daemon.h
+++ b/dlm_controld/dlm_daemon.h
@@ -175,10 +175,10 @@ EXTERN struct dlm_option dlm_options[dlm_options_max];
#define MAX_NODES 128
-/* Maximum number of IP addresses per node, when using SCTP and multi-ring in
- corosync In dlm-kernel this is DLM_MAX_ADDR_COUNT, currently 3. */
+/* Maximum number of IP addresses per node, when using SCTP and multi-[ring|link]
+ in corosync [2|3]. In dlm-kernel this is DLM_MAX_ADDR_COUNT, currently 8. */
-#define MAX_NODE_ADDRESSES 4
+#define MAX_NODE_ADDRESSES 8
#define PROTO_TCP 0
#define PROTO_SCTP 1
--
2.43.0

View File

@@ -0,0 +1,148 @@
From 9d294573d4512ab3c7f3e7ad087df035959e53ec Mon Sep 17 00:00:00 2001
From: Heming Zhao <heming.zhao@suse.com>
Date: Mon, 10 Mar 2025 15:36:20 +0800
Subject: [PATCH 2/2] dlm_controld: remove 'detect' mode from config item
'protocol'
This patch removes the 'detect' mode for the configuration
item 'protocol'.
After this patch, dlm 'protocol' behaviors:
- TCP is now the default protocol.
- Stop trying to detect:
- use dlm.conf or dlm_controld command line to switch from TCP
to SCTP.
- corosync.conf 'rrp_mode' is not supported in corosync 2.x env.
- TCP can work with multi-link, but uses only the first ip address
from corosync.
- SCTP can support up to 8 ip addresses.
Note: This change requires a corresponding update to the dlm kernel
function dlm_tcp_listen_validate().
Signed-off-by: Heming Zhao <heming.zhao@suse.com>
---
dlm_controld/action.c | 39 ++++++-------------------------------
dlm_controld/dlm.conf.5 | 11 ++++++++++-
dlm_controld/dlm_controld.8 | 2 +-
dlm_controld/main.c | 4 ++--
4 files changed, 19 insertions(+), 37 deletions(-)
diff --git a/dlm_controld/action.c b/dlm_controld/action.c
index 60eb22a78c56..10f0f67387b1 100644
--- a/dlm_controld/action.c
+++ b/dlm_controld/action.c
@@ -21,35 +21,6 @@ static int comms_nodes_count;
#define SPACES_DIR "/sys/kernel/config/dlm/cluster/spaces"
#define COMMS_DIR "/sys/kernel/config/dlm/cluster/comms"
-static int detect_protocol(void)
-{
- cmap_handle_t handle;
- char *str = NULL;
- int rv, proto = -1;
-
- rv = cmap_initialize(&handle);
- if (rv != CS_OK) {
- log_error("cmap_initialize error %d", rv);
- return -1;
- }
-
- rv = cmap_get_string(handle, "totem.rrp_mode", &str);
- if (rv != CS_OK)
- goto out;
-
- log_debug("cmap totem.rrp_mode = '%s'", str);
-
- if (!strcmp(str, "none"))
- proto = PROTO_TCP;
- else
- proto = PROTO_SCTP;
- out:
- if (str)
- free(str);
- cmap_finalize(handle);
- return proto;
-}
-
static int detect_cluster_name(void)
{
cmap_handle_t handle;
@@ -870,12 +841,14 @@ int setup_configfs_options(void)
set_configfs_cluster("mark", NULL, optu(mark_ind));
proto_name = opts(protocol_ind);
- proto_num = -1;
+ proto_num = 0; /* default is tcp */
- if (!strcasecmp(proto_name, "detect") || !strcmp(proto_name, "2"))
- proto_num = detect_protocol(); /* may be -1 */
+ if (!strcasecmp(proto_name, "detect") || !strcmp(proto_name, "2")) {
+ log_error("'detect' mode is not supported anymore, will use default mode (TCP).");
+ log_error("see dlm_conf(5) for details.");
+ }
- else if (!strcasecmp(proto_name, "tcp") || !strcmp(proto_name, "0"))
+ if (!strcasecmp(proto_name, "tcp") || !strcmp(proto_name, "0"))
proto_num = PROTO_TCP;
else if (!strcasecmp(proto_name, "sctp") || !strcmp(proto_name, "1"))
diff --git a/dlm_controld/dlm.conf.5 b/dlm_controld/dlm.conf.5
index cb13eaf0db28..073baf883b38 100644
--- a/dlm_controld/dlm.conf.5
+++ b/dlm_controld/dlm.conf.5
@@ -77,13 +77,22 @@ enable_helper
Options with (*) can be reloaded, see Reload config.
-.SH Reload config
+.SH Reload configuration
Some dlm.conf settings can be changed while dlm_controld is running using
dlm_tool reload_config. Edit dlm.conf, adding, removing, commenting or
changing values, then run dlm_tool reload_config to apply the changes in
dlm_controld. dlm_tool dump_config will show the new settings.
+.SH Protocol configuration
+
+Since the totem.rrp_mode configuration item was deprecated in Corosync 3,
+the DLM adjusts the protocol configuration item's style to ensure DLM
+functionality on both Corosync 2 and 3. The change is that the protocol
+configuration item no longer supports 'detect|2'. The default protocol is
+TCP if the user does not specify a protocol on the dlm_daemon command line
+or in dlm.conf.
+
.SH Fencing
A fence device definition begins with a
diff --git a/dlm_controld/dlm_controld.8 b/dlm_controld/dlm_controld.8
index 3aab388531df..d72ebb299f7d 100644
--- a/dlm_controld/dlm_controld.8
+++ b/dlm_controld/dlm_controld.8
@@ -31,7 +31,7 @@ For default settings, see dlm_controld -h.
.B --protocol | -r
.I str
- dlm kernel lowcomms protocol: tcp, sctp, detect
+ dlm kernel lowcomms protocol: tcp, sctp
.B --debug_logfile | -L
write debugging to log file
diff --git a/dlm_controld/main.c b/dlm_controld/main.c
index 1c4333373617..6fb6dffeadaf 100644
--- a/dlm_controld/main.c
+++ b/dlm_controld/main.c
@@ -1817,8 +1817,8 @@ static void set_opt_defaults(void)
set_opt_default(protocol_ind,
"protocol", 'r', req_arg_str,
- -1, "detect", 0, 0,
- "dlm kernel lowcomms protocol: tcp, sctp, detect");
+ 0, "tcp", 0, 0,
+ "dlm kernel lowcomms protocol: tcp, sctp");
set_opt_default(port_ind,
"port", 'R', req_arg_uint,
--
2.43.0

View File

@@ -0,0 +1,26 @@
From 536a527329f3b559c40154461c84e279bcb36cf4 Mon Sep 17 00:00:00 2001
From: David Teigland <teigland@redhat.com>
Date: Thu, 15 Aug 2024 11:05:54 -0500
Subject: [PATCH] dlm_controld: terminate uevent buffer
for checker
---
dlm_controld/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlm_controld/main.c b/dlm_controld/main.c
index 24f0b3f8e044..1c4333373617 100644
--- a/dlm_controld/main.c
+++ b/dlm_controld/main.c
@@ -714,6 +714,8 @@ static void process_uevent(int ci)
return;
}
+ buf[MAX_LINE_UEVENT-1] = '\0';
+
decode_uevent(buf, rv, uevent_vars, Env_Last, uevent_vals);
if (!uevent_vals[Env_ACTION] ||
--
2.43.0

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Mar 26 00:59:00 UTC 2025 - heming.zhao@suse.com
- libdlm supports corosync 3.x multi-link (jsc#PED-11932)
* add upstream patch
+ dlm_controld-terminate-uevent-buffer.patch
+ dlm_controld-Support-for-extended-value-of-kernel-DL.patch
+ dlm_controld-remove-detect-mode-from-config-item-pro.patch
* remove useless folder
- %{_datadir}/doc/packages/libdlm-%{version}
-------------------------------------------------------------------
Wed May 8 06:24:00 UTC 2024 - heming.zhao@suse.com - 4.3.0

View File

@@ -1,7 +1,7 @@
#
# spec file for package libdlm
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -41,7 +41,9 @@ Source: https://pagure.io/dlm/archive/dlm-%{version}/dlm-dlm-%{version}.
##################
#upstream patch
# n/a
Patch0001: dlm_controld-terminate-uevent-buffer.patch
Patch0002: dlm_controld-Support-for-extended-value-of-kernel-DL.patch
Patch0003: dlm_controld-remove-detect-mode-from-config-item-pro.patch
# suse special patch
Patch1001: 0001-makefile-for-diff-arch.patch
@@ -53,9 +55,9 @@ Patch1004: 0004-man-dlm.conf-add-note-that-the-file-is-not-creat.patch
BuildRequires: fdupes
BuildRequires: glib2-devel
BuildRequires: pkgconfig(corosync) >= 3.1.0
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: pkgconfig(corosync) >= 3.1.0
BuildRequires: pkgconfig(pacemaker)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
@@ -100,7 +102,6 @@ make all UDEVDIR="%{_udevrulesdir}"
%install
###########################################################
%make_install UDEVDIR="%{_udevrulesdir}"
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/packages/libdlm-%{version}
install -Dm 0644 init/dlm.service $RPM_BUILD_ROOT%{_unitdir}/dlm.service
install -Dm 0644 init/dlm.sysconfig $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.dlm
@@ -126,7 +127,6 @@ install -Dm 0644 init/dlm.sysconfig $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.dlm
%postun -n libdlm3 -p /sbin/ldconfig
%files
%dir %{_datadir}/doc/packages/libdlm-%{version}
%{_udevrulesdir}/51-dlm.rules
%{_sbindir}/dlm_controld
%{_sbindir}/dlm_stonith
@@ -134,7 +134,6 @@ install -Dm 0644 init/dlm.sysconfig $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.dlm
%{_datadir}/man/man8/*.gz
%{_datadir}/man/man3/*.gz
%{_datadir}/man/man5/*.gz
%{_datadir}/doc/packages/libdlm-%{version}
%{_unitdir}/dlm.service
%{_fillupdir}/sysconfig.dlm