summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch59
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch32
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan_0.102.bb (renamed from meta-networking/recipes-connectivity/netplan/netplan_0.101.bb)6
3 files changed, 2 insertions, 95 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
deleted file mode 100644
index 407e24ca0e..0000000000
--- a/meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch
+++ /dev/null
@@ -1,59 +0,0 @@
1Subject: [PATCH 1/2] dbus: Remove unused variabes
2
3This issue is seen when using clang to compile it
4
5Same fix is needed for parse.c and networkd.c,
6
7Fixes
8src/dbus.c:49:23: error: unused variable 'stdout' [-Werror,-Wunused-variable]
9g_autofree gchar *stdout = NULL;
10^
11Upstream-Status: Submitted [https://github.com/CanonicalLtd/netplan/pull/175]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/dbus.c | 3 ---
15 src/networkd.c | 1 -
16 src/parse.c | 1 -
17 3 files changed, 5 deletions(-)
18
19diff --git a/src/dbus.c b/src/dbus.c
20index 9606fea..8e1ed9d 100644
21--- a/src/dbus.c
22+++ b/src/dbus.c
23@@ -242,9 +242,6 @@ static int
24 method_info(sd_bus_message *m, void *userdata, sd_bus_error *ret_error)
25 {
26 sd_bus_message *reply = NULL;
27- g_autoptr(GError) err = NULL;
28- g_autofree gchar *stdout = NULL;
29- g_autofree gchar *stderr = NULL;
30 gint exit_status = 0;
31
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
35--- a/src/networkd.c
36+++ b/src/networkd.c
37@@ -897,7 +897,6 @@ append_wpa_auth_conf(GString* s, const NetplanAuthenticationSettings* auth, cons
38 static void
39 write_wpa_unit(const NetplanNetDefinition* def, const char* rootdir)
40 {
41- g_autoptr(GError) err = NULL;
42 g_autofree gchar *stdouth = NULL;
43
44 stdouth = systemd_escape(def->id);
45diff --git a/src/parse.c b/src/parse.c
46index 033c657..faca27f 100644
47--- a/src/parse.c
48+++ b/src/parse.c
49@@ -1899,7 +1899,6 @@ handle_wireguard_peers(yaml_document_t* doc, yaml_node_t* node, const void* _, G
50 }
51
52 for (yaml_node_item_t *i = node->data.sequence.items.start; i < node->data.sequence.items.top; i++) {
53- g_autofree char* addr = NULL;
54 yaml_node_t *entry = yaml_document_get_node(doc, *i);
55 assert_type(entry, YAML_MAPPING_NODE);
56
57--
582.25.1
59
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
deleted file mode 100644
index 68aabd6a48..0000000000
--- a/meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1Subject: [PATCH 2/2] Makefile: Exclude .h files from target rule
2
3This ensures that src/_features.h is not added to compiler cmdline which
4can confuse the compilers e.g. clang as it may not like .h as valid input
5and complain
6
7| clang-11: error: cannot specify -o when generating multiple output files
8| make: *** [Makefile:50: netplan-dbus] Error 1
9| make: *** Waiting for unfinished jobs....
10
11Upstream-Status: Submitted [https://github.com/CanonicalLtd/netplan/pull/175]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 Makefile | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/Makefile b/Makefile
18index 4fa6bd8..567d326 100644
19--- a/Makefile
20+++ b/Makefile
21@@ -46,7 +46,7 @@ generate: libnetplan.so.$(NETPLAN_SOVER) nm.o networkd.o openvswitch.o generate.
22 $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ -L. -lnetplan `pkg-config --cflags --libs glib-2.0 gio-2.0 yaml-0.1 uuid`
23
24 netplan-dbus: src/dbus.c src/_features.h util.o
25- $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --cflags --libs libsystemd glib-2.0 gio-2.0`
26+ $(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(patsubst %.h,,$^) `pkg-config --cflags --libs libsystemd glib-2.0 gio-2.0`
27
28 src/_features.h: src/[^_]*.[hc]
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.101.bb b/meta-networking/recipes-connectivity/netplan/netplan_0.102.bb
index a3afcd2d56..81b58ab904 100644
--- a/meta-networking/recipes-connectivity/netplan/netplan_0.101.bb
+++ b/meta-networking/recipes-connectivity/netplan/netplan_0.102.bb
@@ -11,13 +11,11 @@ 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 = "e445b87b9dff439ec564c245d030b03d61eb0f24" 14SRCREV = "62701436991e42606c4e9e8dbdcdc5067d64f69b"
15PV = "0.101+git${SRCPV}" 15PV = "0.102+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 \
20 file://0002-Makefile-Exclude-.h-files-from-target-rule.patch \
21" 19"
22SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" 20SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch"
23 21