summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-extended/kronosnet/kronosnet/0001-links.c-Fix-build-with-gcc-12.patch40
-rw-r--r--meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb (renamed from meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb)6
2 files changed, 2 insertions, 44 deletions
diff --git a/meta-networking/recipes-extended/kronosnet/kronosnet/0001-links.c-Fix-build-with-gcc-12.patch b/meta-networking/recipes-extended/kronosnet/kronosnet/0001-links.c-Fix-build-with-gcc-12.patch
deleted file mode 100644
index d57d0e61b5..0000000000
--- a/meta-networking/recipes-extended/kronosnet/kronosnet/0001-links.c-Fix-build-with-gcc-12.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From a8aac8f3fd8b07fde8f5dc0aa9ece54a46d24425 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Thu, 9 Jun 2022 16:03:06 +0800
4Subject: [PATCH] links.c: Fix build with gcc-12
5
6Fixes:
7 | /build/tmp-glibc/work/corei7-64-wrs-linux/kronosnet/1.22-r0/recipe-sysroot/usr/include/bits/string_fortified.h:59:10: error: 'link' may be used uninitialized [-Werror=maybe-uninitialized]
8 | 59 | return __builtin___memset_chk (__dest, __ch, __len,
9 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 | 60 | __glibc_objsize0 (__dest));
11 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~
12 | ../../git/libknet/links.c: In function 'knet_link_set_config':
13 | ../../git/libknet/links.c:108:27: note: 'link' was declared here
14 | 108 | struct knet_link *link;
15 | | ^~~~
16 | cc1: all warnings being treated as errors
17
18Upstream-Status: Submitted [https://github.com/kronosnet/kronosnet/pull/382]
19
20Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
21---
22 libknet/links.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/libknet/links.c b/libknet/links.c
26index 8cb1621b..0ef42b79 100644
27--- a/libknet/links.c
28+++ b/libknet/links.c
29@@ -105,7 +105,7 @@ int knet_link_set_config(knet_handle_t knet_h, knet_node_id_t host_id, uint8_t l
30 {
31 int savederrno = 0, err = 0, i, wipelink = 0, link_idx;
32 struct knet_host *host, *tmp_host;
33- struct knet_link *link;
34+ struct knet_link *link = NULL;
35
36 if (!_is_valid_handle(knet_h)) {
37 return -1;
38--
392.25.1
40
diff --git a/meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb b/meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb
index 06b2fa4d2d..d4b76903c4 100644
--- a/meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb
+++ b/meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb
@@ -11,10 +11,8 @@ LIC_FILES_CHKSUM = "file://COPYING.applications;md5=751419260aa954499f7abaabaa88
11SECTION = "libs" 11SECTION = "libs"
12DEPENDS = "doxygen-native libqb-native libxml2-native bzip2 libqb libxml2 libnl lksctp-tools lz4 lzo openssl nss xz zlib zstd" 12DEPENDS = "doxygen-native libqb-native libxml2-native bzip2 libqb libxml2 libnl lksctp-tools lz4 lzo openssl nss xz zlib zstd"
13 13
14SRCREV = "f8f80fd7f9b85f2626d2c6452612962ad8efca9e" 14SRCREV = "da73f2a1e0ffe2aee15d4f705edf90ee8445e2d4"
15SRC_URI = "git://github.com/kronosnet/kronosnet;protocol=https;branch=stable1 \ 15SRC_URI = "git://github.com/kronosnet/kronosnet;protocol=https;branch=stable1;tag=v${PV}"
16 file://0001-links.c-Fix-build-with-gcc-12.patch \
17 "
18 16
19UPSTREAM_CHECK_URI = "https://github.com/kronosnet/kronosnet/releases" 17UPSTREAM_CHECK_URI = "https://github.com/kronosnet/kronosnet/releases"
20 18