summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorzhengruoqin <zhengrq.fnst@cn.fujitsu.com>2020-12-28 13:54:24 +0800
committerKhem Raj <raj.khem@gmail.com>2020-12-28 22:34:02 -0800
commit353aac0c7fe21b4de1f957a6d83f3b681e396058 (patch)
treeb3e47a20449b421b50e004555d0e72e801449a80 /meta-networking
parent1d112d988ebbafd306cb3e748303884d559f1efe (diff)
downloadmeta-openembedded-353aac0c7fe21b4de1f957a6d83f3b681e396058.tar.gz
netplan: upgrade 0.100 -> 0.101
Refresh the following patch: 0001-dbus-Remove-unused-variabes.patch 0002-Makefile-Exclude-.h-files-from-target-rule.patch Add 0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch to solve the compilation errors on musl. Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch22
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch30
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch16
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan_0.101.bb (renamed from meta-networking/recipes-connectivity/netplan/netplan_0.100.bb)5
4 files changed, 56 insertions, 17 deletions
diff --git a/meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch b/meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch
index af28ba71e7..407e24ca0e 100644
--- a/meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch
+++ b/meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch
@@ -1,6 +1,3 @@
1From e5bd4c3853fb394edc8cbea17fad82ce23bd0fae Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 27 Nov 2020 12:21:32 -0800
4Subject: [PATCH 1/2] dbus: Remove unused variabes 1Subject: [PATCH 1/2] dbus: Remove unused variabes
5 2
6This issue is seen when using clang to compile it 3This issue is seen when using clang to compile it
@@ -19,11 +16,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 src/parse.c | 1 - 16 src/parse.c | 1 -
20 3 files changed, 5 deletions(-) 17 3 files changed, 5 deletions(-)
21 18
19diff --git a/src/dbus.c b/src/dbus.c
20index 9606fea..8e1ed9d 100644
22--- a/src/dbus.c 21--- a/src/dbus.c
23+++ b/src/dbus.c 22+++ b/src/dbus.c
24@@ -45,9 +45,6 @@ static int method_apply(sd_bus_message * 23@@ -242,9 +242,6 @@ static int
25 24 method_info(sd_bus_message *m, void *userdata, sd_bus_error *ret_error)
26 static int method_info(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { 25 {
27 sd_bus_message *reply = NULL; 26 sd_bus_message *reply = NULL;
28- g_autoptr(GError) err = NULL; 27- g_autoptr(GError) err = NULL;
29- g_autofree gchar *stdout = NULL; 28- g_autofree gchar *stdout = NULL;
@@ -31,9 +30,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
31 gint exit_status = 0; 30 gint exit_status = 0;
32 31
33 exit_status = sd_bus_message_new_method_return(m, &reply); 32 exit_status = sd_bus_message_new_method_return(m, &reply);
33diff --git a/src/networkd.c b/src/networkd.c
34index 7c86cd6..7200740 100644
34--- a/src/networkd.c 35--- a/src/networkd.c
35+++ b/src/networkd.c 36+++ b/src/networkd.c
36@@ -896,7 +896,6 @@ append_wpa_auth_conf(GString* s, const N 37@@ -897,7 +897,6 @@ append_wpa_auth_conf(GString* s, const NetplanAuthenticationSettings* auth, cons
37 static void 38 static void
38 write_wpa_unit(const NetplanNetDefinition* def, const char* rootdir) 39 write_wpa_unit(const NetplanNetDefinition* def, const char* rootdir)
39 { 40 {
@@ -41,9 +42,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
41 g_autofree gchar *stdouth = NULL; 42 g_autofree gchar *stdouth = NULL;
42 43
43 stdouth = systemd_escape(def->id); 44 stdouth = systemd_escape(def->id);
45diff --git a/src/parse.c b/src/parse.c
46index 033c657..faca27f 100644
44--- a/src/parse.c 47--- a/src/parse.c
45+++ b/src/parse.c 48+++ b/src/parse.c
46@@ -1898,7 +1898,6 @@ handle_wireguard_peers(yaml_document_t* 49@@ -1899,7 +1899,6 @@ handle_wireguard_peers(yaml_document_t* doc, yaml_node_t* node, const void* _, G
47 } 50 }
48 51
49 for (yaml_node_item_t *i = node->data.sequence.items.start; i < node->data.sequence.items.top; i++) { 52 for (yaml_node_item_t *i = node->data.sequence.items.start; i < node->data.sequence.items.top; i++) {
@@ -51,3 +54,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
51 yaml_node_t *entry = yaml_document_get_node(doc, *i); 54 yaml_node_t *entry = yaml_document_get_node(doc, *i);
52 assert_type(entry, YAML_MAPPING_NODE); 55 assert_type(entry, YAML_MAPPING_NODE);
53 56
57--
582.25.1
59
diff --git a/meta-networking/recipes-connectivity/netplan/netplan/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch b/meta-networking/recipes-connectivity/netplan/netplan/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch
new file mode 100644
index 0000000000..dab8693c71
--- /dev/null
+++ b/meta-networking/recipes-connectivity/netplan/netplan/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch
@@ -0,0 +1,30 @@
1From ceb4111af317ecc54d97bb21878dcccbfdb2983e Mon Sep 17 00:00:00 2001
2From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
3Date: Fri, 25 Dec 2020 11:41:43 +0900
4Subject: [PATCH] don't fail if GLOB_BRACE is not defined
5
6Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
7---
8 src/util.c | 6 ++++++
9 1 file changed, 6 insertions(+)
10
11diff --git a/src/util.c b/src/util.c
12index 7e59985..eb8e573 100644
13--- a/src/util.c
14+++ b/src/util.c
15@@ -23,6 +23,12 @@
16
17 #include "util.h"
18
19+/* Don't fail if the standard library
20+ * doesn't provide brace expansion */
21+#ifndef GLOB_BRACE
22+#define GLOB_BRACE 0
23+#endif
24+
25 GHashTable* wifi_frequency_24;
26 GHashTable* wifi_frequency_5;
27
28--
292.25.1
30
diff --git a/meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch b/meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch
index cd75d1cb1c..68aabd6a48 100644
--- a/meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch
+++ b/meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch
@@ -1,6 +1,3 @@
1From 5abb6b8343b5d2633844144979b40f398450b544 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 27 Nov 2020 12:22:32 -0800
4Subject: [PATCH 2/2] Makefile: Exclude .h files from target rule 1Subject: [PATCH 2/2] Makefile: Exclude .h files from target rule
5 2
6This ensures that src/_features.h is not added to compiler cmdline which 3This ensures that src/_features.h is not added to compiler cmdline which
@@ -17,14 +14,19 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 Makefile | 2 +- 14 Makefile | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
19 16
17diff --git a/Makefile b/Makefile
18index 4fa6bd8..567d326 100644
20--- a/Makefile 19--- a/Makefile
21+++ b/Makefile 20+++ b/Makefile
22@@ -47,7 +47,7 @@ generate: libnetplan.so.$(NETPLAN_SOVER) 21@@ -46,7 +46,7 @@ generate: libnetplan.so.$(NETPLAN_SOVER) nm.o networkd.o openvswitch.o generate.
23 $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ -L. -lnetplan `pkg-config --cflags --libs glib-2.0 gio-2.0 yaml-0.1 uuid` 22 $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ -L. -lnetplan `pkg-config --cflags --libs glib-2.0 gio-2.0 yaml-0.1 uuid`
24 23
25 netplan-dbus: src/dbus.c src/_features.h 24 netplan-dbus: src/dbus.c src/_features.h util.o
26- $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --cflags --libs libsystemd glib-2.0` 25- $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --cflags --libs libsystemd glib-2.0 gio-2.0`
27+ $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(patsubst %.h,,$^) `pkg-config --cflags --libs libsystemd glib-2.0` 26+ $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(patsubst %.h,,$^) `pkg-config --cflags --libs libsystemd glib-2.0 gio-2.0`
28 27
29 src/_features.h: src/[^_]*.[hc] 28 src/_features.h: src/[^_]*.[hc]
30 printf "#include <stddef.h>\nstatic const char *feature_flags[] __attribute__((__unused__)) = {\n" > $@ 29 printf "#include <stddef.h>\nstatic const char *feature_flags[] __attribute__((__unused__)) = {\n" > $@
30--
312.25.1
32
diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.100.bb b/meta-networking/recipes-connectivity/netplan/netplan_0.101.bb
index 2f74a22c05..a3afcd2d56 100644
--- a/meta-networking/recipes-connectivity/netplan/netplan_0.100.bb
+++ b/meta-networking/recipes-connectivity/netplan/netplan_0.101.bb
@@ -11,14 +11,15 @@ LICENSE = "GPLv3"
11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
12 12
13S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"
14SRCREV = "b7d32aebc880f3161b8f97ee56b729c0c54dd0e4" 14SRCREV = "e445b87b9dff439ec564c245d030b03d61eb0f24"
15PV = "0.100+git${SRCPV}" 15PV = "0.101+git${SRCPV}"
16 16
17SRC_URI = " \ 17SRC_URI = " \
18 git://github.com/CanonicalLtd/netplan.git \ 18 git://github.com/CanonicalLtd/netplan.git \
19 file://0001-dbus-Remove-unused-variabes.patch \ 19 file://0001-dbus-Remove-unused-variabes.patch \
20 file://0002-Makefile-Exclude-.h-files-from-target-rule.patch \ 20 file://0002-Makefile-Exclude-.h-files-from-target-rule.patch \
21" 21"
22SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch"
22 23
23DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 24DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
24 25