opensaf: upgrade 5.22.01 -> 5.26.02
PATCH 1/1 opensaf: upgrade 5.22.01 -> 5.26.02
1.Add new patch 0001-To-fix-Werror-discarded-qualifiers-error.patch to fix build error
2.Remove following patches as merged upstream
0001-Fix-build-with-fno-common.patch 0001-include-missing-array-header.patch 0001-include-cstdint-for-uintXX_t-types.patch 0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch
Signed-off-by Liu Yiding <[email protected]>
---
.../0001-Fix-build-with-fno-common.patch | 311 ------------------
...ix-Werror-discarded-qualifiers-error.patch | 81 +++++
...1-include-cstdint-for-uintXX_t-types.patch | 43 ---
.../0001-include-missing-array-header.patch | 32 --
...-Werror-enum-int-mismatch-with-gcc13.patch | 61 ----
...{opensaf_5.22.01.bb => opensaf_5.26.02.bb} | 7 +-
6 files changed, 83 insertions(+), 452 deletions(-)
delete mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-build-with-fno-common.patch
create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/0001-To-fix-Werror-discarded-qualifiers-error.patch
delete mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch
delete mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/0001-include-missing-array-header.patch
delete mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch
rename meta-networking/recipes-daemons/opensaf/{opensaf_5.22.01.bb => opensaf_5.26.02.bb} (92%)meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-build-with-fno-common.patch deleted +0 -311
@@ -1,311 +0,0 @@ -From 9a46462f08535e946d97fd40c79229a7ee8b7336 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 17 Aug 2020 00:00:00 -0700 -Subject: [PATCH] Fix build with -fno-common - -Mark the declarations with extern where needed in header files - -Upstream-Status: Pending - -Signed-off-by: Khem Raj <[email protected]> ---- - src/ckpt/agent/cpa_cb.h | 2 +- - src/ckpt/ckptd/cpd_init.h | 2 +- - src/evt/agent/eda.h | 2 +- - src/evt/evtd/eds.h | 2 +- - src/evt/evtd/eds_amf.c | 2 ++ - src/evt/evtd/eds_amf.h | 2 +- - src/evt/evtd/eds_cb.h | 2 +- - src/imm/immd/immd.h | 2 +- - src/lck/lckd/gld_dl_api.h | 4 ++-- - src/lck/lcknd/glnd_cb.h | 4 ++-- - src/mds/mds_core.h | 34 +++++++++++++++++++--------------- - src/mds/mds_dt_tcp.c | 2 ++ - src/mds/mds_dt_tcp.h | 2 +- - src/mds/mds_main.c | 2 +- - src/msg/msgnd/mqnd_db.h | 2 +- - 15 files changed, 37 insertions(+), 29 deletions(-) - -diff --git a/src/ckpt/agent/cpa_cb.h b/src/ckpt/agent/cpa_cb.h -index ac48c6c..d633583 100644 ---- a/src/ckpt/agent/cpa_cb.h -+++ b/src/ckpt/agent/cpa_cb.h -@@ -119,7 +119,7 @@ typedef struct cpa_cb { - - } CPA_CB; - --uint32_t gl_cpa_hdl; -+extern uint32_t gl_cpa_hdl; - - typedef struct cpa_prcess_evt_sync { - NCS_QELEM qelem; -diff --git a/src/ckpt/ckptd/cpd_init.h b/src/ckpt/ckptd/cpd_init.h -index 0c02642..cf3466b 100644 ---- a/src/ckpt/ckptd/cpd_init.h -+++ b/src/ckpt/ckptd/cpd_init.h -@@ -33,7 +33,7 @@ - #include <saAmf.h> - #include "cpd_cb.h" - --uint32_t gl_cpd_cb_hdl; -+extern uint32_t gl_cpd_cb_hdl; - - /* Macro to get the component name for the component type */ - #define m_CPD_TASKNAME "CPD" -diff --git a/src/evt/agent/eda.h b/src/evt/agent/eda.h -index 4d1991c..138c910 100644 ---- a/src/evt/agent/eda.h -+++ b/src/evt/agent/eda.h -@@ -39,7 +39,7 @@ - #include "base/logtrace.h" - - /* EDA CB global handle declaration */ --uint32_t gl_eda_hdl; -+extern uint32_t gl_eda_hdl; - - /* EDA Default MDS timeout value */ - #define EDA_MDS_DEF_TIMEOUT 100 -diff --git a/src/evt/evtd/eds.h b/src/evt/evtd/eds.h -index bc9c429..3545d77 100644 ---- a/src/evt/evtd/eds.h -+++ b/src/evt/evtd/eds.h -@@ -72,6 +72,6 @@ - #include "base/daemon.h" - - /* EDS CB global handle declaration */ --uint32_t gl_eds_hdl; -+extern uint32_t gl_eds_hdl; - - #endif // EVT_EVTD_EDS_H_ -diff --git a/src/evt/evtd/eds_amf.c b/src/evt/evtd/eds_amf.c -index 97b71a5..adebf0c 100644 ---- a/src/evt/evtd/eds_amf.c -+++ b/src/evt/evtd/eds_amf.c -@@ -30,6 +30,8 @@ stuff. - #include "eds.h" - #include "eds_dl_api.h" - -+struct next_HAState nextStateInfo; -+ - /* HA AMF statemachine & State handler definitions */ - - /**************************************************************************** -diff --git a/src/evt/evtd/eds_amf.h b/src/evt/evtd/eds_amf.h -index e9aeaa6..f9803b4 100644 ---- a/src/evt/evtd/eds_amf.h -+++ b/src/evt/evtd/eds_amf.h -@@ -49,7 +49,7 @@ uint32_t eds_quiesced_state_handler(EDS_CB *cb, SaInvocationT invocation); - struct next_HAState { - uint8_t nextState1; - uint8_t nextState2; --} nextStateInfo; /* AMF HA state can transit to a maximum of the two defined -+}; /* AMF HA state can transit to a maximum of the two defined - states */ - - #define VALIDATE_STATE(curr, next) \ -diff --git a/src/evt/evtd/eds_cb.h b/src/evt/evtd/eds_cb.h -index c127ead..19c48cd 100644 ---- a/src/evt/evtd/eds_cb.h -+++ b/src/evt/evtd/eds_cb.h -@@ -40,7 +40,7 @@ - #include "base/ncssysf_tmr.h" - - /* global variables */ --uint32_t gl_eds_hdl; -+extern uint32_t gl_eds_hdl; - - struct eda_reg_list_tag; - -diff --git a/src/imm/immd/immd.h b/src/imm/immd/immd.h -index 7dc1da6..bab3945 100644 ---- a/src/imm/immd/immd.h -+++ b/src/imm/immd/immd.h -@@ -42,7 +42,7 @@ - #include "immd_sbedu.h" - #include "base/ncs_mda_pvt.h" - --IMMD_CB *immd_cb; -+extern IMMD_CB *immd_cb; - - extern uint32_t initialize_for_assignment(IMMD_CB *cb, SaAmfHAStateT ha_state); - -diff --git a/src/lck/lckd/gld_dl_api.h b/src/lck/lckd/gld_dl_api.h -index 6476a71..3a67fd1 100644 ---- a/src/lck/lckd/gld_dl_api.h -+++ b/src/lck/lckd/gld_dl_api.h -@@ -33,7 +33,7 @@ - #include "base/ncsgl_defs.h" - #include "base/ncs_lib.h" - --uint32_t gl_gld_hdl; --uint32_t gld_lib_req(NCS_LIB_REQ_INFO *req_info); -+extern uint32_t gl_gld_hdl; -+extern uint32_t gld_lib_req(NCS_LIB_REQ_INFO *req_info); - - #endif // LCK_LCKD_GLD_DL_API_H_ -diff --git a/src/lck/lcknd/glnd_cb.h b/src/lck/lcknd/glnd_cb.h -index 3b82f60..77a1f88 100644 ---- a/src/lck/lcknd/glnd_cb.h -+++ b/src/lck/lcknd/glnd_cb.h -@@ -28,8 +28,8 @@ extern "C" { - #endif - - /* global variables */ --uint32_t gl_glnd_hdl; --NCSCONTEXT gl_glnd_task_hdl; -+extern uint32_t gl_glnd_hdl; -+extern NCSCONTEXT gl_glnd_task_hdl; - - /* macros for the global varibales */ - #define m_GLND_RETRIEVE_GLND_CB_HDL gl_glnd_hdl -diff --git a/src/mds/mds_core.h b/src/mds/mds_core.h -index dad62cd..ed69d3a 100644 ---- a/src/mds/mds_core.h -+++ b/src/mds/mds_core.h -@@ -26,6 +26,10 @@ - #ifndef MDS_MDS_CORE_H_ - #define MDS_MDS_CORE_H_ - -+#ifndef EXTERN -+#define EXTERN extern -+#endif -+ - #include <pthread.h> - #include "base/ncsgl_defs.h" - #include "mds/mds_papi.h" -@@ -600,65 +604,65 @@ extern "C" { - /* ******************************************** */ - - /* Initialization of MDTM Module */ --uint32_t (*mds_mdtm_init)(NODE_ID node_id, uint32_t *mds_tipc_ref); -+EXTERN uint32_t (*mds_mdtm_init)(NODE_ID node_id, uint32_t *mds_tipc_ref); - - /* Destroying the MDTM Module*/ --uint32_t (*mds_mdtm_destroy)(void); -+EXTERN uint32_t (*mds_mdtm_destroy)(void); - --uint32_t (*mds_mdtm_send)(MDTM_SEND_REQ *req); -+EXTERN uint32_t (*mds_mdtm_send)(MDTM_SEND_REQ *req); - - /* SVC Install */ --uint32_t (*mds_mdtm_svc_install)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, -+EXTERN uint32_t (*mds_mdtm_svc_install)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, - NCSMDS_SCOPE_TYPE install_scope, - V_DEST_RL role, MDS_VDEST_ID vdest_id, - NCS_VDEST_TYPE vdest_policy, - MDS_SVC_PVT_SUB_PART_VER mds_svc_pvt_ver); - - /* SVC Uninstall */ --uint32_t (*mds_mdtm_svc_uninstall)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, -+EXTERN uint32_t (*mds_mdtm_svc_uninstall)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, - NCSMDS_SCOPE_TYPE install_scope, - V_DEST_RL role, MDS_VDEST_ID vdest_id, - NCS_VDEST_TYPE vdest_policy, - MDS_SVC_PVT_SUB_PART_VER mds_svc_pvt_ver); - - /* SVC Subscribe */ --uint32_t (*mds_mdtm_svc_subscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, -+EXTERN uint32_t (*mds_mdtm_svc_subscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, - NCSMDS_SCOPE_TYPE subscribe_scope, - MDS_SVC_HDL local_svc_hdl, - MDS_SUBTN_REF_VAL *subtn_ref_val); - - /* added svc_hdl */ - /* SVC Unsubscribe */ --uint32_t (*mds_mdtm_svc_unsubscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, -+EXTERN uint32_t (*mds_mdtm_svc_unsubscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id, - NCSMDS_SCOPE_TYPE subscribe_scope, - MDS_SUBTN_REF_VAL subtn_ref_val); - - /* VDEST Install */ --uint32_t (*mds_mdtm_vdest_install)(MDS_VDEST_ID vdest_id); -+EXTERN uint32_t (*mds_mdtm_vdest_install)(MDS_VDEST_ID vdest_id); - - /* VDEST Uninstall */ --uint32_t (*mds_mdtm_vdest_uninstall)(MDS_VDEST_ID vdest_id); -+EXTERN uint32_t (*mds_mdtm_vdest_uninstall)(MDS_VDEST_ID vdest_id); - - /* VDEST Subscribe */ --uint32_t (*mds_mdtm_vdest_subscribe)(MDS_VDEST_ID vdest_id, -+EXTERN uint32_t (*mds_mdtm_vdest_subscribe)(MDS_VDEST_ID vdest_id, - MDS_SUBTN_REF_VAL *subtn_ref_val); - - /* VDEST Unsubscribe */ --uint32_t (*mds_mdtm_vdest_unsubscribe)(MDS_VDEST_ID vdest_id, -+EXTERN uint32_t (*mds_mdtm_vdest_unsubscribe)(MDS_VDEST_ID vdest_id, - MDS_SUBTN_REF_VAL subtn_ref_val); - - /* Tx Register (For incrementing the use count) */ --uint32_t (*mds_mdtm_tx_hdl_register)(MDS_DEST adest); -+EXTERN uint32_t (*mds_mdtm_tx_hdl_register)(MDS_DEST adest); - - /* Tx Unregister (For decrementing the use count) */ --uint32_t (*mds_mdtm_tx_hdl_unregister)(MDS_DEST adest); -+EXTERN uint32_t (*mds_mdtm_tx_hdl_unregister)(MDS_DEST adest); - - /* Node subscription */ --uint32_t (*mds_mdtm_node_subscribe)(MDS_SVC_HDL svc_hdl, -+EXTERN uint32_t (*mds_mdtm_node_subscribe)(MDS_SVC_HDL svc_hdl, - MDS_SUBTN_REF_VAL *subtn_ref_val); - - /* Node unsubscription */ --uint32_t (*mds_mdtm_node_unsubscribe)(MDS_SUBTN_REF_VAL subtn_ref_val); -+EXTERN uint32_t (*mds_mdtm_node_unsubscribe)(MDS_SUBTN_REF_VAL subtn_ref_val); - - #ifdef __cplusplus - } -diff --git a/src/mds/mds_dt_tcp.c b/src/mds/mds_dt_tcp.c -index 4a37246..e73cef4 100644 ---- a/src/mds/mds_dt_tcp.c -+++ b/src/mds/mds_dt_tcp.c -@@ -70,6 +70,8 @@ NCS_PATRICIA_TREE mdtm_reassembly_list; - - /* Get the pid of the process */ - pid_t mdtm_pid; -+ -+MDTM_TCP_CB *tcp_cb; - - static void mds_mdtm_enc_init(MDS_MDTM_DTM_MSG *init, uint8_t *buff); - static uint32_t mdtm_create_rcv_task(void); -diff --git a/src/mds/mds_dt_tcp.h b/src/mds/mds_dt_tcp.h -index 1065464..350d534 100644 ---- a/src/mds/mds_dt_tcp.h -+++ b/src/mds/mds_dt_tcp.h -@@ -50,7 +50,7 @@ typedef struct mdtm_tcp_cb { - - } MDTM_TCP_CB; - --MDTM_TCP_CB *tcp_cb; -+extern MDTM_TCP_CB *tcp_cb; - - typedef enum mds_mdtm_dtm_msg_types { - MDS_MDTM_DTM_PID_TYPE = 1, -diff --git a/src/mds/mds_main.c b/src/mds/mds_main.c -index 0bcb2f9..5671ed3 100644 ---- a/src/mds/mds_main.c -+++ b/src/mds/mds_main.c -@@ -20,7 +20,7 @@ - #endif - - #include "osaf/configmake.h" -- -+#define EXTERN - /***************************************************************************** - .............................................................................. - -diff --git a/src/msg/msgnd/mqnd_db.h b/src/msg/msgnd/mqnd_db.h -index b78024e..fee43e5 100644 ---- a/src/msg/msgnd/mqnd_db.h -+++ b/src/msg/msgnd/mqnd_db.h -@@ -33,7 +33,7 @@ - #include <saClm.h> - #include <saImmOi.h> - /* Decleration for global variable */ --uint32_t gl_mqnd_cb_hdl; -+extern uint32_t gl_mqnd_cb_hdl; - - /* Macros for reading global database */ - #define m_MQND_STORE_HDL(hdl) (gl_mqnd_cb_hdl = (hdl)) --- -2.28.0 -
meta-networking/recipes-daemons/opensaf/opensaf/0001-To-fix-Werror-discarded-qualifiers-error.patch new file +81 -0
81 lines not on this page · raw message
meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch deleted +0 -43
43 lines not on this page · raw message
meta-networking/recipes-daemons/opensaf/opensaf/0001-include-missing-array-header.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 6168d43ddd353b92ad8bcd5c49dc68f18caa8a00 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 12 Apr 2022 17:07:49 -0700 -Subject: [PATCH 1/2] include missing <array> header - -Fixes -src/osaf/consensus/key_value.cc:25:30: error: aggregate 'std::array<char, 128> buffer' has incomplete type and cannot be defined - 25 | std::array<char, buf_size> buffer; - | ^~~~~~ - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - src/osaf/consensus/key_value.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/osaf/consensus/key_value.cc b/src/osaf/consensus/key_value.cc -index 692dd3f..6e16cbf 100644 ---- a/src/osaf/consensus/key_value.cc -+++ b/src/osaf/consensus/key_value.cc -@@ -18,7 +18,7 @@ - #include "base/getenv.h" - #include "base/logtrace.h" - #include "osaf/consensus/consensus.h" -- -+#include <array> - int KeyValue::Execute(const std::string& command, std::string& output) { - TRACE_ENTER(); - constexpr size_t buf_size = 128; --- -2.35.1 -
meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch deleted +0 -61
61 lines not on this page · raw message
meta-networking/recipes-daemons/opensaf/opensaf_5.26.02.bb renamed from meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb +2 -5
@@ -26,14 +26,11 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ file://0001-immpbe_dump.cc-Use-sys-wait.h-instead-of-wait.h.patch \ file://0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch \ file://0001-immom_python-convert-to-python3.patch \ - file://0001-Fix-build-with-fno-common.patch \ file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \ - file://0001-include-missing-array-header.patch \ file://0002-configure-Disable-selected-warnings.patch \ - file://0001-include-cstdint-for-uintXX_t-types.patch \ - file://0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch \ + file://0001-To-fix-Werror-discarded-qualifiers-error.patch \ " -SRC_URI[sha256sum] = "f008d53c83087ce2014c6089bc4ef08e14c1b4091298b943f4ceade1aa6bf61e" +SRC_URI[sha256sum] = "c51603bc486ce6db271a7023a75963bfc6f277f4d4486df2fe004a51c81cfdee" UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/opensaf/files/releases"
Signature · 1 line
2.43.0