diff --git a/Fix-up-the-library-versions-files.patch b/Fix-up-the-library-versions-files.patch new file mode 100644 index 0000000000000000000000000000000000000000..316ac68dc5bef4cb08f157961a8a79ddd0d2ef7f --- /dev/null +++ b/Fix-up-the-library-versions-files.patch @@ -0,0 +1,185 @@ +From 8d46eb012778534d8beb5d1742e20ff9e2c300c2 Mon Sep 17 00:00:00 2001 +From: Christine Caulfield +Date: Mon, 18 Dec 2023 09:25:56 +0000 +Subject: [PATCH] Fix up the library .versions files + +I've only added missing symbols and removed old ones. The actual +library version numbers might need assessing too. + +Signed-off-by: Christine Caulfield +Reviewed-by: Fabio M. Di Nitto +--- + lib/libcfg.versions | 12 +++++++----- + lib/libcmap.versions | 38 ++++++++++++++++++++++++++++++++++++++ + lib/libcpg.versions | 8 ++++++++ + lib/libquorum.versions | 8 ++++++-- + lib/libsam.versions | 7 ++++++- + lib/libvotequorum.versions | 4 ++++ + 6 files changed, 69 insertions(+), 8 deletions(-) + +diff --git a/lib/libcfg.versions b/lib/libcfg.versions +index 18d18f70..7f89f239 100644 +--- a/lib/libcfg.versions ++++ b/lib/libcfg.versions +@@ -6,13 +6,15 @@ COROSYNC_CFG_0.82 { + corosync_cfg_fd_get; + corosync_cfg_dispatch; + corosync_cfg_finalize; +- corosync_cfg_administrative_state_get; +- corosync_cfg_administrative_state_set; +- corosync_cfg_track; +- corosync_cfg_track_stop; + corosync_cfg_ring_status_get; + corosync_cfg_node_status_get; +- corosync_cfg_ring_reenable; ++ corosync_cfg_kill_node; ++ corosync_cfg_try_shutdown; ++ corosync_cfg_replyto_shutdown; ++ corosync_cfg_get_node_addrs; ++ corosync_cfg_local_get; ++ corosync_cfg_reload_config; ++ corosync_cfg_reopen_log_files; + corosync_cfg_trackstart; + corosync_cfg_trackstop; + }; +diff --git a/lib/libcmap.versions b/lib/libcmap.versions +index 59c8778c..7460dd30 100644 +--- a/lib/libcmap.versions ++++ b/lib/libcmap.versions +@@ -3,4 +3,42 @@ + COROSYNC_CMAP_1.0 { + global: + cmap_initialize; ++ cmap_initialize_map; ++ cmap_finalize; ++ cmap_fd_get; ++ cmap_dispatch; ++ cmap_context_get; ++ cmap_context_set; ++ cmap_set; ++ cmap_set_int8; ++ cmap_set_uint8; ++ cmap_set_int16; ++ cmap_set_uint16; ++ cmap_set_int32; ++ cmap_set_uint32; ++ cmap_set_int64; ++ cmap_set_uint64; ++ cmap_set_float; ++ cmap_set_double; ++ cmap_set_string; ++ cmap_delete; ++ cmap_get; ++ cmap_get_int8; ++ cmap_get_uint8; ++ cmap_get_int16; ++ cmap_get_uint16; ++ cmap_get_int32; ++ cmap_get_uint32; ++ cmap_get_int64; ++ cmap_get_uint64; ++ cmap_get_float; ++ cmap_get_double; ++ cmap_get_string; ++ cmap_inc; ++ cmap_dec; ++ cmap_iter_init; ++ cmap_iter_next; ++ cmap_iter_finalize; ++ cmap_track_add; ++ cmap_track_delete; + }; +diff --git a/lib/libcpg.versions b/lib/libcpg.versions +index 93eeb529..ba4d16d6 100644 +--- a/lib/libcpg.versions ++++ b/lib/libcpg.versions +@@ -3,15 +3,23 @@ + COROSYNC_CPG_1.0 { + global: + cpg_initialize; ++ cpg_model_initialize; + cpg_finalize; + cpg_fd_get; ++ cpg_max_atomic_msgsize_get; + cpg_dispatch; + cpg_join; + cpg_leave; + cpg_mcast_joined; + cpg_membership_get; ++ cpg_local_get; ++ cpg_flow_control_state_get; + cpg_context_get; + cpg_context_set; + cpg_zcb_alloc; + cpg_zcb_free; ++ cpg_zcb_mcast_joined; ++ cpg_iteration_initialize; ++ cpg_iteration_next; ++ cpg_iteration_finalize; + }; +diff --git a/lib/libquorum.versions b/lib/libquorum.versions +index b1f0a883..b4fc21cd 100644 +--- a/lib/libquorum.versions ++++ b/lib/libquorum.versions +@@ -3,9 +3,13 @@ + COROSYNC_QUORUM_1.0 { + global: + quorum_initialize; ++ quorum_model_initialize; + quorum_finalize; ++ quorum_fd_get; + quorum_getquorate; +- quorum_initialize; +- quorum_finalize; + quorum_dispatch; ++ quorum_trackstart; ++ quorum_trackstop; ++ quorum_context_get; ++ quorum_context_set; + }; +diff --git a/lib/libsam.versions b/lib/libsam.versions +index 48fba2cc..3881bb72 100644 +--- a/lib/libsam.versions ++++ b/lib/libsam.versions +@@ -2,11 +2,16 @@ + + COROSYNC_SAM_1.0 { + global: +- sam_initialized; ++ sam_initialize; + sam_finalize; + sam_start; + sam_stop; + sam_register; + sam_hc_send; + sam_hc_callback_register; ++ sam_warn_signal_set; ++ sam_data_getsize; ++ sam_data_restore; ++ sam_data_store; ++ sam_mark_failed; + }; +diff --git a/lib/libvotequorum.versions b/lib/libvotequorum.versions +index 7a37030c..00783fc0 100644 +--- a/lib/libvotequorum.versions ++++ b/lib/libvotequorum.versions +@@ -4,12 +4,16 @@ COROSYNC_VOTEQUORUM_1.0 { + global: + votequorum_initialize; + votequorum_finalize; ++ votequorum_dispatch; ++ votequorum_fd_get; + votequorum_getinfo; + votequorum_setexpected; + votequorum_setvotes; + votequorum_qdevice_register; + votequorum_qdevice_unregister; + votequorum_qdevice_poll; ++ votequorum_qdevice_update; ++ votequorum_qdevice_master_wins; + votequorum_trackstart; + votequorum_trackstop; + votequorum_context_get; +-- +2.25.1 + diff --git a/corosync.spec b/corosync.spec index 4166bf2478039fa8509a39e002768f8afc0e69db..f432d6efa9149992866eb5bafd3aa8b53dc4e16d 100644 --- a/corosync.spec +++ b/corosync.spec @@ -18,10 +18,11 @@ Name: corosync Summary: The Corosync Cluster Engine and Application Programming Interfaces Version: 3.1.8 -Release: 1 +Release: 2 License: BSD-3-Clause URL: http://corosync.github.io/corosync/ Source0: http://build.clusterlabs.org/corosync/releases/%{name}-%{version}%{?gittarver}.tar.gz +Patch0: Fix-up-the-library-versions-files.patch # Runtime bits # The automatic dependency overridden in favor of explicit version lock @@ -70,7 +71,7 @@ BuildRequires: readline-devel BuildRequires: make %prep -%setup -q -n %{name}-%{version}%{?gittarver} +%autosetup -n %{name}-%{version}%{?gittarver} -p1 %build %if %{with runautogen} @@ -288,6 +289,9 @@ network splits) %endif %changelog +* Tue Feb 27 2024 zouzhimin - 3.1.8-2 +- Fix up the library .versions files + * Fri Nov 24 2023 zouzhimin - 3.1.8-1 - update package to version 3.1.8