summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Yiding <liuyd.fnst@fujitsu.com>2026-03-18 11:58:16 +0800
committerKhem Raj <raj.khem@gmail.com>2026-03-18 14:33:33 -0700
commit01d347f0bc40fd4038fbd09c0e0051c2c280e20b (patch)
tree2cbe6d56a36f77c21ab188bfef4ca02cfec38640
parent0270b1c37294a5719af8d93ef91cdb9fac46f13e (diff)
downloadmeta-openembedded-01d347f0bc40fd4038fbd09c0e0051c2c280e20b.tar.gz
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 <liuyd.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-build-with-fno-common.patch311
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-To-fix-Werror-discarded-qualifiers-error.patch81
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch43
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-include-missing-array-header.patch32
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch61
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf_5.26.02.bb (renamed from meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb)7
6 files changed, 83 insertions, 452 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-build-with-fno-common.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-build-with-fno-common.patch
deleted file mode 100644
index b581c571bb..0000000000
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-build-with-fno-common.patch
+++ /dev/null
@@ -1,311 +0,0 @@
1From 9a46462f08535e946d97fd40c79229a7ee8b7336 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 17 Aug 2020 00:00:00 -0700
4Subject: [PATCH] Fix build with -fno-common
5
6Mark the declarations with extern where needed in header files
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/ckpt/agent/cpa_cb.h | 2 +-
13 src/ckpt/ckptd/cpd_init.h | 2 +-
14 src/evt/agent/eda.h | 2 +-
15 src/evt/evtd/eds.h | 2 +-
16 src/evt/evtd/eds_amf.c | 2 ++
17 src/evt/evtd/eds_amf.h | 2 +-
18 src/evt/evtd/eds_cb.h | 2 +-
19 src/imm/immd/immd.h | 2 +-
20 src/lck/lckd/gld_dl_api.h | 4 ++--
21 src/lck/lcknd/glnd_cb.h | 4 ++--
22 src/mds/mds_core.h | 34 +++++++++++++++++++---------------
23 src/mds/mds_dt_tcp.c | 2 ++
24 src/mds/mds_dt_tcp.h | 2 +-
25 src/mds/mds_main.c | 2 +-
26 src/msg/msgnd/mqnd_db.h | 2 +-
27 15 files changed, 37 insertions(+), 29 deletions(-)
28
29diff --git a/src/ckpt/agent/cpa_cb.h b/src/ckpt/agent/cpa_cb.h
30index ac48c6c..d633583 100644
31--- a/src/ckpt/agent/cpa_cb.h
32+++ b/src/ckpt/agent/cpa_cb.h
33@@ -119,7 +119,7 @@ typedef struct cpa_cb {
34
35 } CPA_CB;
36
37-uint32_t gl_cpa_hdl;
38+extern uint32_t gl_cpa_hdl;
39
40 typedef struct cpa_prcess_evt_sync {
41 NCS_QELEM qelem;
42diff --git a/src/ckpt/ckptd/cpd_init.h b/src/ckpt/ckptd/cpd_init.h
43index 0c02642..cf3466b 100644
44--- a/src/ckpt/ckptd/cpd_init.h
45+++ b/src/ckpt/ckptd/cpd_init.h
46@@ -33,7 +33,7 @@
47 #include <saAmf.h>
48 #include "cpd_cb.h"
49
50-uint32_t gl_cpd_cb_hdl;
51+extern uint32_t gl_cpd_cb_hdl;
52
53 /* Macro to get the component name for the component type */
54 #define m_CPD_TASKNAME "CPD"
55diff --git a/src/evt/agent/eda.h b/src/evt/agent/eda.h
56index 4d1991c..138c910 100644
57--- a/src/evt/agent/eda.h
58+++ b/src/evt/agent/eda.h
59@@ -39,7 +39,7 @@
60 #include "base/logtrace.h"
61
62 /* EDA CB global handle declaration */
63-uint32_t gl_eda_hdl;
64+extern uint32_t gl_eda_hdl;
65
66 /* EDA Default MDS timeout value */
67 #define EDA_MDS_DEF_TIMEOUT 100
68diff --git a/src/evt/evtd/eds.h b/src/evt/evtd/eds.h
69index bc9c429..3545d77 100644
70--- a/src/evt/evtd/eds.h
71+++ b/src/evt/evtd/eds.h
72@@ -72,6 +72,6 @@
73 #include "base/daemon.h"
74
75 /* EDS CB global handle declaration */
76-uint32_t gl_eds_hdl;
77+extern uint32_t gl_eds_hdl;
78
79 #endif // EVT_EVTD_EDS_H_
80diff --git a/src/evt/evtd/eds_amf.c b/src/evt/evtd/eds_amf.c
81index 97b71a5..adebf0c 100644
82--- a/src/evt/evtd/eds_amf.c
83+++ b/src/evt/evtd/eds_amf.c
84@@ -30,6 +30,8 @@ stuff.
85 #include "eds.h"
86 #include "eds_dl_api.h"
87
88+struct next_HAState nextStateInfo;
89+
90 /* HA AMF statemachine & State handler definitions */
91
92 /****************************************************************************
93diff --git a/src/evt/evtd/eds_amf.h b/src/evt/evtd/eds_amf.h
94index e9aeaa6..f9803b4 100644
95--- a/src/evt/evtd/eds_amf.h
96+++ b/src/evt/evtd/eds_amf.h
97@@ -49,7 +49,7 @@ uint32_t eds_quiesced_state_handler(EDS_CB *cb, SaInvocationT invocation);
98 struct next_HAState {
99 uint8_t nextState1;
100 uint8_t nextState2;
101-} nextStateInfo; /* AMF HA state can transit to a maximum of the two defined
102+}; /* AMF HA state can transit to a maximum of the two defined
103 states */
104
105 #define VALIDATE_STATE(curr, next) \
106diff --git a/src/evt/evtd/eds_cb.h b/src/evt/evtd/eds_cb.h
107index c127ead..19c48cd 100644
108--- a/src/evt/evtd/eds_cb.h
109+++ b/src/evt/evtd/eds_cb.h
110@@ -40,7 +40,7 @@
111 #include "base/ncssysf_tmr.h"
112
113 /* global variables */
114-uint32_t gl_eds_hdl;
115+extern uint32_t gl_eds_hdl;
116
117 struct eda_reg_list_tag;
118
119diff --git a/src/imm/immd/immd.h b/src/imm/immd/immd.h
120index 7dc1da6..bab3945 100644
121--- a/src/imm/immd/immd.h
122+++ b/src/imm/immd/immd.h
123@@ -42,7 +42,7 @@
124 #include "immd_sbedu.h"
125 #include "base/ncs_mda_pvt.h"
126
127-IMMD_CB *immd_cb;
128+extern IMMD_CB *immd_cb;
129
130 extern uint32_t initialize_for_assignment(IMMD_CB *cb, SaAmfHAStateT ha_state);
131
132diff --git a/src/lck/lckd/gld_dl_api.h b/src/lck/lckd/gld_dl_api.h
133index 6476a71..3a67fd1 100644
134--- a/src/lck/lckd/gld_dl_api.h
135+++ b/src/lck/lckd/gld_dl_api.h
136@@ -33,7 +33,7 @@
137 #include "base/ncsgl_defs.h"
138 #include "base/ncs_lib.h"
139
140-uint32_t gl_gld_hdl;
141-uint32_t gld_lib_req(NCS_LIB_REQ_INFO *req_info);
142+extern uint32_t gl_gld_hdl;
143+extern uint32_t gld_lib_req(NCS_LIB_REQ_INFO *req_info);
144
145 #endif // LCK_LCKD_GLD_DL_API_H_
146diff --git a/src/lck/lcknd/glnd_cb.h b/src/lck/lcknd/glnd_cb.h
147index 3b82f60..77a1f88 100644
148--- a/src/lck/lcknd/glnd_cb.h
149+++ b/src/lck/lcknd/glnd_cb.h
150@@ -28,8 +28,8 @@ extern "C" {
151 #endif
152
153 /* global variables */
154-uint32_t gl_glnd_hdl;
155-NCSCONTEXT gl_glnd_task_hdl;
156+extern uint32_t gl_glnd_hdl;
157+extern NCSCONTEXT gl_glnd_task_hdl;
158
159 /* macros for the global varibales */
160 #define m_GLND_RETRIEVE_GLND_CB_HDL gl_glnd_hdl
161diff --git a/src/mds/mds_core.h b/src/mds/mds_core.h
162index dad62cd..ed69d3a 100644
163--- a/src/mds/mds_core.h
164+++ b/src/mds/mds_core.h
165@@ -26,6 +26,10 @@
166 #ifndef MDS_MDS_CORE_H_
167 #define MDS_MDS_CORE_H_
168
169+#ifndef EXTERN
170+#define EXTERN extern
171+#endif
172+
173 #include <pthread.h>
174 #include "base/ncsgl_defs.h"
175 #include "mds/mds_papi.h"
176@@ -600,65 +604,65 @@ extern "C" {
177 /* ******************************************** */
178
179 /* Initialization of MDTM Module */
180-uint32_t (*mds_mdtm_init)(NODE_ID node_id, uint32_t *mds_tipc_ref);
181+EXTERN uint32_t (*mds_mdtm_init)(NODE_ID node_id, uint32_t *mds_tipc_ref);
182
183 /* Destroying the MDTM Module*/
184-uint32_t (*mds_mdtm_destroy)(void);
185+EXTERN uint32_t (*mds_mdtm_destroy)(void);
186
187-uint32_t (*mds_mdtm_send)(MDTM_SEND_REQ *req);
188+EXTERN uint32_t (*mds_mdtm_send)(MDTM_SEND_REQ *req);
189
190 /* SVC Install */
191-uint32_t (*mds_mdtm_svc_install)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
192+EXTERN uint32_t (*mds_mdtm_svc_install)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
193 NCSMDS_SCOPE_TYPE install_scope,
194 V_DEST_RL role, MDS_VDEST_ID vdest_id,
195 NCS_VDEST_TYPE vdest_policy,
196 MDS_SVC_PVT_SUB_PART_VER mds_svc_pvt_ver);
197
198 /* SVC Uninstall */
199-uint32_t (*mds_mdtm_svc_uninstall)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
200+EXTERN uint32_t (*mds_mdtm_svc_uninstall)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
201 NCSMDS_SCOPE_TYPE install_scope,
202 V_DEST_RL role, MDS_VDEST_ID vdest_id,
203 NCS_VDEST_TYPE vdest_policy,
204 MDS_SVC_PVT_SUB_PART_VER mds_svc_pvt_ver);
205
206 /* SVC Subscribe */
207-uint32_t (*mds_mdtm_svc_subscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
208+EXTERN uint32_t (*mds_mdtm_svc_subscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
209 NCSMDS_SCOPE_TYPE subscribe_scope,
210 MDS_SVC_HDL local_svc_hdl,
211 MDS_SUBTN_REF_VAL *subtn_ref_val);
212
213 /* added svc_hdl */
214 /* SVC Unsubscribe */
215-uint32_t (*mds_mdtm_svc_unsubscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
216+EXTERN uint32_t (*mds_mdtm_svc_unsubscribe)(PW_ENV_ID pwe_id, MDS_SVC_ID svc_id,
217 NCSMDS_SCOPE_TYPE subscribe_scope,
218 MDS_SUBTN_REF_VAL subtn_ref_val);
219
220 /* VDEST Install */
221-uint32_t (*mds_mdtm_vdest_install)(MDS_VDEST_ID vdest_id);
222+EXTERN uint32_t (*mds_mdtm_vdest_install)(MDS_VDEST_ID vdest_id);
223
224 /* VDEST Uninstall */
225-uint32_t (*mds_mdtm_vdest_uninstall)(MDS_VDEST_ID vdest_id);
226+EXTERN uint32_t (*mds_mdtm_vdest_uninstall)(MDS_VDEST_ID vdest_id);
227
228 /* VDEST Subscribe */
229-uint32_t (*mds_mdtm_vdest_subscribe)(MDS_VDEST_ID vdest_id,
230+EXTERN uint32_t (*mds_mdtm_vdest_subscribe)(MDS_VDEST_ID vdest_id,
231 MDS_SUBTN_REF_VAL *subtn_ref_val);
232
233 /* VDEST Unsubscribe */
234-uint32_t (*mds_mdtm_vdest_unsubscribe)(MDS_VDEST_ID vdest_id,
235+EXTERN uint32_t (*mds_mdtm_vdest_unsubscribe)(MDS_VDEST_ID vdest_id,
236 MDS_SUBTN_REF_VAL subtn_ref_val);
237
238 /* Tx Register (For incrementing the use count) */
239-uint32_t (*mds_mdtm_tx_hdl_register)(MDS_DEST adest);
240+EXTERN uint32_t (*mds_mdtm_tx_hdl_register)(MDS_DEST adest);
241
242 /* Tx Unregister (For decrementing the use count) */
243-uint32_t (*mds_mdtm_tx_hdl_unregister)(MDS_DEST adest);
244+EXTERN uint32_t (*mds_mdtm_tx_hdl_unregister)(MDS_DEST adest);
245
246 /* Node subscription */
247-uint32_t (*mds_mdtm_node_subscribe)(MDS_SVC_HDL svc_hdl,
248+EXTERN uint32_t (*mds_mdtm_node_subscribe)(MDS_SVC_HDL svc_hdl,
249 MDS_SUBTN_REF_VAL *subtn_ref_val);
250
251 /* Node unsubscription */
252-uint32_t (*mds_mdtm_node_unsubscribe)(MDS_SUBTN_REF_VAL subtn_ref_val);
253+EXTERN uint32_t (*mds_mdtm_node_unsubscribe)(MDS_SUBTN_REF_VAL subtn_ref_val);
254
255 #ifdef __cplusplus
256 }
257diff --git a/src/mds/mds_dt_tcp.c b/src/mds/mds_dt_tcp.c
258index 4a37246..e73cef4 100644
259--- a/src/mds/mds_dt_tcp.c
260+++ b/src/mds/mds_dt_tcp.c
261@@ -70,6 +70,8 @@ NCS_PATRICIA_TREE mdtm_reassembly_list;
262
263 /* Get the pid of the process */
264 pid_t mdtm_pid;
265+
266+MDTM_TCP_CB *tcp_cb;
267
268 static void mds_mdtm_enc_init(MDS_MDTM_DTM_MSG *init, uint8_t *buff);
269 static uint32_t mdtm_create_rcv_task(void);
270diff --git a/src/mds/mds_dt_tcp.h b/src/mds/mds_dt_tcp.h
271index 1065464..350d534 100644
272--- a/src/mds/mds_dt_tcp.h
273+++ b/src/mds/mds_dt_tcp.h
274@@ -50,7 +50,7 @@ typedef struct mdtm_tcp_cb {
275
276 } MDTM_TCP_CB;
277
278-MDTM_TCP_CB *tcp_cb;
279+extern MDTM_TCP_CB *tcp_cb;
280
281 typedef enum mds_mdtm_dtm_msg_types {
282 MDS_MDTM_DTM_PID_TYPE = 1,
283diff --git a/src/mds/mds_main.c b/src/mds/mds_main.c
284index 0bcb2f9..5671ed3 100644
285--- a/src/mds/mds_main.c
286+++ b/src/mds/mds_main.c
287@@ -20,7 +20,7 @@
288 #endif
289
290 #include "osaf/configmake.h"
291-
292+#define EXTERN
293 /*****************************************************************************
294 ..............................................................................
295
296diff --git a/src/msg/msgnd/mqnd_db.h b/src/msg/msgnd/mqnd_db.h
297index b78024e..fee43e5 100644
298--- a/src/msg/msgnd/mqnd_db.h
299+++ b/src/msg/msgnd/mqnd_db.h
300@@ -33,7 +33,7 @@
301 #include <saClm.h>
302 #include <saImmOi.h>
303 /* Decleration for global variable */
304-uint32_t gl_mqnd_cb_hdl;
305+extern uint32_t gl_mqnd_cb_hdl;
306
307 /* Macros for reading global database */
308 #define m_MQND_STORE_HDL(hdl) (gl_mqnd_cb_hdl = (hdl))
309--
3102.28.0
311
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-To-fix-Werror-discarded-qualifiers-error.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-To-fix-Werror-discarded-qualifiers-error.patch
new file mode 100644
index 0000000000..d27c783cde
--- /dev/null
+++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-To-fix-Werror-discarded-qualifiers-error.patch
@@ -0,0 +1,81 @@
1From ac79c1da91f51b10059a266bf4db068a01963b01 Mon Sep 17 00:00:00 2001
2From: Liu Yiding <liuyd.fnst@fujitsu.com>
3Date: Wed, 18 Mar 2026 03:35:16 +0000
4Subject: [PATCH] To fix [-Werror=discarded-qualifiers] error to build with glibc 2.43
5
6| ../sources/opensaf-5.22.01/src/osaf/immutil/immutil.c:339:12: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
7| 339 | cp = strstr(buffer, key);
8
9Upstream-Status: Pending
10
11Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
12---
13 src/amf/common/util.c | 8 ++++----
14 src/ckpt/ckptd/cpd_imm.c | 4 ++--
15 src/osaf/immutil/immutil.c | 2 +-
16 3 files changed, 7 insertions(+), 7 deletions(-)
17
18diff --git a/src/amf/common/util.c b/src/amf/common/util.c
19index d17b766..56c1a50 100644
20--- a/src/amf/common/util.c
21+++ b/src/amf/common/util.c
22@@ -252,8 +252,8 @@ void avsv_sanamet_init_from_association_dn(const SaNameT *haystack, SaNameT *dn,
23 const char *needle,
24 const char *parent)
25 {
26- char *p;
27- char *pp;
28+ const char *p;
29+ const char *pp;
30 int i = 0;
31
32 osaf_extended_name_clear(dn);
33@@ -270,8 +270,8 @@ void avsv_sanamet_init_from_association_dn(const SaNameT *haystack, SaNameT *dn,
34
35 /* copy the value upto parent but skip escape chars */
36 int size = 0;
37- char *p1 = p;
38- char *pp1 = pp;
39+ const char *p1 = p;
40+ const char *pp1 = pp;
41 while (p != pp) {
42 if (*p != '\\')
43 size++;
44diff --git a/src/ckpt/ckptd/cpd_imm.c b/src/ckpt/ckptd/cpd_imm.c
45index e2dee0c..7c25d02 100644
46--- a/src/ckpt/ckptd/cpd_imm.c
47+++ b/src/ckpt/ckptd/cpd_imm.c
48@@ -117,7 +117,7 @@ cpd_saImmOiRtAttrUpdateCallback(SaImmOiHandleT immOiHandle,
49 /* Extract ckpt_name and node_name */
50 if (strncmp(object_name, "safReplica=", 11) == 0) {
51 /* Extract ckpt_name */
52- char *p_char = strchr(object_name, ',');
53+ const char *p_char = strchr(object_name, ',');
54 if (p_char) {
55 p_char++; /* escaping first ',' of the associated class
56 DN name */
57@@ -657,7 +657,7 @@ SaAisErrorT create_runtime_ckpt_object(CPD_CKPT_INFO_NODE *ckpt_node,
58 SaNameT parentName;
59 SaAisErrorT rc = SA_AIS_OK;
60 char *dndup = strdup(ckpt_node->ckpt_name);
61- char *parent_name = strchr(ckpt_node->ckpt_name, ',');
62+ const char *parent_name = strchr(ckpt_node->ckpt_name, ',');
63 char *rdnstr;
64 const SaImmAttrValuesT_2 *attrValues[7];
65 SaImmAttrValueT dn[1], create_time[1], creat_flags[1], max_sections[1],
66diff --git a/src/osaf/immutil/immutil.c b/src/osaf/immutil/immutil.c
67index 1ca1fbb..d3a5b63 100644
68--- a/src/osaf/immutil/immutil.c
69+++ b/src/osaf/immutil/immutil.c
70@@ -336,7 +336,7 @@ char const *immutil_getStringValue(char const *key, SaNameT const *name)
71 klen = strlen(key);
72 assert(klen > 1 || key[klen - 1] == '=');
73
74- cp = strstr(buffer, key);
75+ cp = (char*)strstr(buffer, key);
76 while (cp != NULL) {
77 if (cp == buffer || cp[-1] == ',') {
78 char *value = cp + klen;
79--
802.43.0
81
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch
deleted file mode 100644
index e36d4e0cdc..0000000000
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 225891675b80beaa9d74ce56809e52c4451df72c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 25 Jan 2023 21:46:22 -0800
4Subject: [PATCH 1/2] include cstdint for uintXX_t types
5
6GCC-13 needs it [1]
7
8[1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/imm/immnd/ImmModel.h | 1 +
14 src/osaf/consensus/consensus_env.h | 1 +
15 2 files changed, 2 insertions(+)
16
17diff --git a/src/imm/immnd/ImmModel.h b/src/imm/immnd/ImmModel.h
18index 44da470..0660431 100644
19--- a/src/imm/immnd/ImmModel.h
20+++ b/src/imm/immnd/ImmModel.h
21@@ -22,6 +22,7 @@
22 #include <saImmOm.h>
23 #include <cstdarg>
24 #include <sys/types.h>
25+#include <cstdint>
26 #include <string>
27 #include <vector>
28 #include <map>
29diff --git a/src/osaf/consensus/consensus_env.h b/src/osaf/consensus/consensus_env.h
30index df4f93a..89ccf46 100644
31--- a/src/osaf/consensus/consensus_env.h
32+++ b/src/osaf/consensus/consensus_env.h
33@@ -15,6 +15,7 @@
34 #ifndef OSAF_CONSENSUS_CONSENSUS_ENV_H_
35 #define OSAF_CONSENSUS_CONSENSUS_ENV_H_
36
37+#include <cstdint>
38 #include <string>
39 #include "base/mutex.h"
40
41--
422.39.1
43
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-missing-array-header.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-missing-array-header.patch
deleted file mode 100644
index e735d432a7..0000000000
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-missing-array-header.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 6168d43ddd353b92ad8bcd5c49dc68f18caa8a00 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 12 Apr 2022 17:07:49 -0700
4Subject: [PATCH 1/2] include missing <array> header
5
6Fixes
7src/osaf/consensus/key_value.cc:25:30: error: aggregate 'std::array<char, 128> buffer' has incomplete type and cannot be defined
8 25 | std::array<char, buf_size> buffer;
9 | ^~~~~~
10
11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/osaf/consensus/key_value.cc | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/osaf/consensus/key_value.cc b/src/osaf/consensus/key_value.cc
18index 692dd3f..6e16cbf 100644
19--- a/src/osaf/consensus/key_value.cc
20+++ b/src/osaf/consensus/key_value.cc
21@@ -18,7 +18,7 @@
22 #include "base/getenv.h"
23 #include "base/logtrace.h"
24 #include "osaf/consensus/consensus.h"
25-
26+#include <array>
27 int KeyValue::Execute(const std::string& command, std::string& output) {
28 TRACE_ENTER();
29 constexpr size_t buf_size = 128;
30--
312.35.1
32
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch
deleted file mode 100644
index a6aa2c3d07..0000000000
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1From 5e5686de677c884d5d785254412ced3c9d2d1b08 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 25 Jan 2023 21:47:45 -0800
4Subject: [PATCH 2/2] Fix -Werror=enum-int-mismatch with gcc13
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Pending
9
10 src/evt/agent/eda_hdl.h | 5 +++--
11 src/evt/evtd/eds_mds.h | 3 +--
12 src/smf/smfnd/smfnd.h | 8 ++++----
13 3 files changed, 8 insertions(+), 8 deletions(-)
14
15--- a/src/evt/agent/eda_hdl.h
16+++ b/src/evt/agent/eda_hdl.h
17@@ -31,6 +31,7 @@
18 #define EVT_AGENT_EDA_HDL_H_
19
20 #include "evt/agent/eda.h"
21+#include "ais/include/saAis.h"
22
23 uint32_t eda_hdl_cbk_dispatch(EDA_CB *, EDA_CLIENT_HDL_REC *, SaDispatchFlagsT);
24
25@@ -68,11 +69,11 @@ EDA_CHANNEL_HDL_REC *eda_find_chan_hdl_r
26
27 void eda_msg_destroy(EDSV_MSG *msg);
28
29-uint32_t eda_extract_pattern_from_event(
30+SaAisErrorT eda_extract_pattern_from_event(
31 SaEvtEventPatternArrayT *from_pattern_array,
32 SaEvtEventPatternArrayT **to_pattern_array);
33
34-uint32_t eda_allocate_and_extract_pattern_from_event(
35+SaAisErrorT eda_allocate_and_extract_pattern_from_event(
36 SaEvtEventPatternArrayT *from_pattern_array,
37 SaEvtEventPatternArrayT **to_pattern_array);
38
39--- a/src/evt/evtd/eds_mds.h
40+++ b/src/evt/evtd/eds_mds.h
41@@ -49,8 +49,7 @@ uint32_t eds_mds_msg_send(EDS_CB *cb, ED
42 MDS_SEND_PRIORITY_TYPE prio);
43
44 uint32_t eds_mds_ack_send(EDS_CB *cb, EDSV_MSG *msg, MDS_DEST dest,
45- SaTimeT timeout, MDS_SEND_PRIORITY_TYPE prio);
46-
47+ SaTimeT timeout, uint32_t prio);
48 uint32_t eds_dec_subscribe_msg(NCS_UBAID *uba, long msg_hdl, uint8_t ckpt_flag);
49
50 uint32_t eds_dec_publish_msg(NCS_UBAID *uba, long msg_hdl, uint8_t ckpt_flag);
51--- a/src/smf/smfnd/smfnd.h
52+++ b/src/smf/smfnd/smfnd.h
53@@ -76,7 +76,7 @@ extern "C" {
54 #endif
55
56 /* smfnd_amf.c */
57-extern uint32_t smfnd_amf_init(smfnd_cb_t *cb);
58+extern SaAisErrorT smfnd_amf_init(smfnd_cb_t *cb);
59
60 /* smfnd_mds.c */
61 extern uint32_t smfnd_mds_init(smfnd_cb_t *cb);
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.26.02.bb
index 3dd950c720..eede11515b 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb
+++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.26.02.bb
@@ -26,14 +26,11 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \
26 file://0001-immpbe_dump.cc-Use-sys-wait.h-instead-of-wait.h.patch \ 26 file://0001-immpbe_dump.cc-Use-sys-wait.h-instead-of-wait.h.patch \
27 file://0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch \ 27 file://0001-create_empty_library-Use-CC-variable-intead-of-hardc.patch \
28 file://0001-immom_python-convert-to-python3.patch \ 28 file://0001-immom_python-convert-to-python3.patch \
29 file://0001-Fix-build-with-fno-common.patch \
30 file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \ 29 file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \
31 file://0001-include-missing-array-header.patch \
32 file://0002-configure-Disable-selected-warnings.patch \ 30 file://0002-configure-Disable-selected-warnings.patch \
33 file://0001-include-cstdint-for-uintXX_t-types.patch \ 31 file://0001-To-fix-Werror-discarded-qualifiers-error.patch \
34 file://0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch \
35 " 32 "
36SRC_URI[sha256sum] = "f008d53c83087ce2014c6089bc4ef08e14c1b4091298b943f4ceade1aa6bf61e" 33SRC_URI[sha256sum] = "c51603bc486ce6db271a7023a75963bfc6f277f4d4486df2fe004a51c81cfdee"
37 34
38UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/opensaf/files/releases" 35UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/opensaf/files/releases"
39 36