diff options
| -rw-r--r-- | meta-networking/recipes-connectivity/netplan/netplan/0001-dbus-Remove-unused-variabes.patch | 59 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/netplan/netplan/0002-Makefile-Exclude-.h-files-from-target-rule.patch | 32 | ||||
| -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 @@ | |||
| 1 | Subject: [PATCH 1/2] dbus: Remove unused variabes | ||
| 2 | |||
| 3 | This issue is seen when using clang to compile it | ||
| 4 | |||
| 5 | Same fix is needed for parse.c and networkd.c, | ||
| 6 | |||
| 7 | Fixes | ||
| 8 | src/dbus.c:49:23: error: unused variable 'stdout' [-Werror,-Wunused-variable] | ||
| 9 | g_autofree gchar *stdout = NULL; | ||
| 10 | ^ | ||
| 11 | Upstream-Status: Submitted [https://github.com/CanonicalLtd/netplan/pull/175] | ||
| 12 | Signed-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 | |||
| 19 | diff --git a/src/dbus.c b/src/dbus.c | ||
| 20 | index 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); | ||
| 33 | diff --git a/src/networkd.c b/src/networkd.c | ||
| 34 | index 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); | ||
| 45 | diff --git a/src/parse.c b/src/parse.c | ||
| 46 | index 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 | -- | ||
| 58 | 2.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 @@ | |||
| 1 | Subject: [PATCH 2/2] Makefile: Exclude .h files from target rule | ||
| 2 | |||
| 3 | This ensures that src/_features.h is not added to compiler cmdline which | ||
| 4 | can confuse the compilers e.g. clang as it may not like .h as valid input | ||
| 5 | and 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 | |||
| 11 | Upstream-Status: Submitted [https://github.com/CanonicalLtd/netplan/pull/175] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | Makefile | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/Makefile b/Makefile | ||
| 18 | index 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 | -- | ||
| 31 | 2.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" | |||
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 12 | 12 | ||
| 13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 14 | SRCREV = "e445b87b9dff439ec564c245d030b03d61eb0f24" | 14 | SRCREV = "62701436991e42606c4e9e8dbdcdc5067d64f69b" |
| 15 | PV = "0.101+git${SRCPV}" | 15 | PV = "0.102+git${SRCPV}" |
| 16 | 16 | ||
| 17 | SRC_URI = " \ | 17 | SRC_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 | " |
| 22 | SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" | 20 | SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" |
| 23 | 21 | ||
