diff options
3 files changed, 104 insertions, 0 deletions
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 new file mode 100644 index 0000000000..e36d4e0cdc --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-include-cstdint-for-uintXX_t-types.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 225891675b80beaa9d74ce56809e52c4451df72c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 25 Jan 2023 21:46:22 -0800 | ||
4 | Subject: [PATCH 1/2] include cstdint for uintXX_t types | ||
5 | |||
6 | GCC-13 needs it [1] | ||
7 | |||
8 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-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 | |||
17 | diff --git a/src/imm/immnd/ImmModel.h b/src/imm/immnd/ImmModel.h | ||
18 | index 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> | ||
29 | diff --git a/src/osaf/consensus/consensus_env.h b/src/osaf/consensus/consensus_env.h | ||
30 | index 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 | -- | ||
42 | 2.39.1 | ||
43 | |||
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 new file mode 100644 index 0000000000..e3288431eb --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf/0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From 5e5686de677c884d5d785254412ced3c9d2d1b08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 25 Jan 2023 21:47:45 -0800 | ||
4 | Subject: [PATCH 2/2] Fix -Werror=enum-int-mismatch with gcc13 | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | src/evt/agent/eda_hdl.h | 5 +++-- | ||
9 | src/evt/evtd/eds_mds.h | 3 +-- | ||
10 | src/smf/smfnd/smfnd.h | 8 ++++---- | ||
11 | 3 files changed, 8 insertions(+), 8 deletions(-) | ||
12 | |||
13 | --- a/src/evt/agent/eda_hdl.h | ||
14 | +++ b/src/evt/agent/eda_hdl.h | ||
15 | @@ -31,6 +31,7 @@ | ||
16 | #define EVT_AGENT_EDA_HDL_H_ | ||
17 | |||
18 | #include "evt/agent/eda.h" | ||
19 | +#include "ais/include/saAis.h" | ||
20 | |||
21 | uint32_t eda_hdl_cbk_dispatch(EDA_CB *, EDA_CLIENT_HDL_REC *, SaDispatchFlagsT); | ||
22 | |||
23 | @@ -68,11 +69,11 @@ EDA_CHANNEL_HDL_REC *eda_find_chan_hdl_r | ||
24 | |||
25 | void eda_msg_destroy(EDSV_MSG *msg); | ||
26 | |||
27 | -uint32_t eda_extract_pattern_from_event( | ||
28 | +SaAisErrorT eda_extract_pattern_from_event( | ||
29 | SaEvtEventPatternArrayT *from_pattern_array, | ||
30 | SaEvtEventPatternArrayT **to_pattern_array); | ||
31 | |||
32 | -uint32_t eda_allocate_and_extract_pattern_from_event( | ||
33 | +SaAisErrorT eda_allocate_and_extract_pattern_from_event( | ||
34 | SaEvtEventPatternArrayT *from_pattern_array, | ||
35 | SaEvtEventPatternArrayT **to_pattern_array); | ||
36 | |||
37 | --- a/src/evt/evtd/eds_mds.h | ||
38 | +++ b/src/evt/evtd/eds_mds.h | ||
39 | @@ -49,8 +49,7 @@ uint32_t eds_mds_msg_send(EDS_CB *cb, ED | ||
40 | MDS_SEND_PRIORITY_TYPE prio); | ||
41 | |||
42 | uint32_t eds_mds_ack_send(EDS_CB *cb, EDSV_MSG *msg, MDS_DEST dest, | ||
43 | - SaTimeT timeout, MDS_SEND_PRIORITY_TYPE prio); | ||
44 | - | ||
45 | + SaTimeT timeout, uint32_t prio); | ||
46 | uint32_t eds_dec_subscribe_msg(NCS_UBAID *uba, long msg_hdl, uint8_t ckpt_flag); | ||
47 | |||
48 | uint32_t eds_dec_publish_msg(NCS_UBAID *uba, long msg_hdl, uint8_t ckpt_flag); | ||
49 | --- a/src/smf/smfnd/smfnd.h | ||
50 | +++ b/src/smf/smfnd/smfnd.h | ||
51 | @@ -76,7 +76,7 @@ extern "C" { | ||
52 | #endif | ||
53 | |||
54 | /* smfnd_amf.c */ | ||
55 | -extern uint32_t smfnd_amf_init(smfnd_cb_t *cb); | ||
56 | +extern SaAisErrorT smfnd_amf_init(smfnd_cb_t *cb); | ||
57 | |||
58 | /* smfnd_mds.c */ | ||
59 | 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.22.01.bb index 930755d624..3dd950c720 100644 --- a/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb +++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb | |||
@@ -30,6 +30,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ | |||
30 | file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \ | 30 | file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \ |
31 | file://0001-include-missing-array-header.patch \ | 31 | file://0001-include-missing-array-header.patch \ |
32 | file://0002-configure-Disable-selected-warnings.patch \ | 32 | file://0002-configure-Disable-selected-warnings.patch \ |
33 | file://0001-include-cstdint-for-uintXX_t-types.patch \ | ||
34 | file://0002-Fix-Werror-enum-int-mismatch-with-gcc13.patch \ | ||
33 | " | 35 | " |
34 | SRC_URI[sha256sum] = "f008d53c83087ce2014c6089bc4ef08e14c1b4091298b943f4ceade1aa6bf61e" | 36 | SRC_URI[sha256sum] = "f008d53c83087ce2014c6089bc4ef08e14c1b4091298b943f4ceade1aa6bf61e" |
35 | 37 | ||