diff options
3 files changed, 37 insertions, 7 deletions
diff --git a/meta-networking/recipes-connectivity/netplan/netplan/0001-Handle-enum-element-override.patch b/meta-networking/recipes-connectivity/netplan/netplan/0001-Handle-enum-element-override.patch new file mode 100644 index 0000000000..dfc6f90c4c --- /dev/null +++ b/meta-networking/recipes-connectivity/netplan/netplan/0001-Handle-enum-element-override.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 6d284f1ff81494a5fca91a399b92b218ea1a9ea8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 8 Jun 2021 08:53:30 -0700 | ||
| 4 | Subject: [PATCH] Handle enum element override | ||
| 5 | |||
| 6 | NETPLAN_DEF_TYPE_VIRTUAL and NETPLAN_DEF_TYPE_BRIDGE point | ||
| 7 | to same value in enum, however here they are assigned individually | ||
| 8 | which results in overriding the initialization of the objects | ||
| 9 | |||
| 10 | Fixes | ||
| 11 | src/netplan.h:85:33: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides] | ||
| 12 | [NETPLAN_DEF_TYPE_BRIDGE] = "bridges", | ||
| 13 | ^~~~~~~~~ | ||
| 14 | Upstream-Status: Submitted [https://github.com/canonical/netplan/pull/213] | ||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | src/netplan.h | 1 - | ||
| 18 | 1 file changed, 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/src/netplan.h b/src/netplan.h | ||
| 21 | index d2c538b..26574f8 100644 | ||
| 22 | --- a/src/netplan.h | ||
| 23 | +++ b/src/netplan.h | ||
| 24 | @@ -81,7 +81,6 @@ static const char* const netplan_def_type_to_str[NETPLAN_DEF_TYPE_MAX_] = { | ||
| 25 | [NETPLAN_DEF_TYPE_ETHERNET] = "ethernets", | ||
| 26 | [NETPLAN_DEF_TYPE_WIFI] = "wifis", | ||
| 27 | [NETPLAN_DEF_TYPE_MODEM] = "modems", | ||
| 28 | - [NETPLAN_DEF_TYPE_VIRTUAL] = NULL, | ||
| 29 | [NETPLAN_DEF_TYPE_BRIDGE] = "bridges", | ||
| 30 | [NETPLAN_DEF_TYPE_BOND] = "bonds", | ||
| 31 | [NETPLAN_DEF_TYPE_VLAN] = "vlans", | ||
| 32 | -- | ||
| 33 | 2.32.0 | ||
| 34 | |||
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 index dab8693c71..0fa6ba48a4 100644 --- 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 | |||
| @@ -8,13 +8,11 @@ Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | |||
| 8 | src/util.c | 6 ++++++ | 8 | src/util.c | 6 ++++++ |
| 9 | 1 file changed, 6 insertions(+) | 9 | 1 file changed, 6 insertions(+) |
| 10 | 10 | ||
| 11 | diff --git a/src/util.c b/src/util.c | ||
| 12 | index 7e59985..eb8e573 100644 | ||
| 13 | --- a/src/util.c | 11 | --- a/src/util.c |
| 14 | +++ b/src/util.c | 12 | +++ b/src/util.c |
| 15 | @@ -23,6 +23,12 @@ | 13 | @@ -24,6 +24,12 @@ |
| 16 | |||
| 17 | #include "util.h" | 14 | #include "util.h" |
| 15 | #include "netplan.h" | ||
| 18 | 16 | ||
| 19 | +/* Don't fail if the standard library | 17 | +/* Don't fail if the standard library |
| 20 | + * doesn't provide brace expansion */ | 18 | + * doesn't provide brace expansion */ |
| @@ -25,6 +23,3 @@ index 7e59985..eb8e573 100644 | |||
| 25 | GHashTable* wifi_frequency_24; | 23 | GHashTable* wifi_frequency_24; |
| 26 | GHashTable* wifi_frequency_5; | 24 | GHashTable* wifi_frequency_5; |
| 27 | 25 | ||
| 28 | -- | ||
| 29 | 2.25.1 | ||
| 30 | |||
diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.102.bb b/meta-networking/recipes-connectivity/netplan/netplan_0.102.bb index 81b58ab904..3328dfbbb9 100644 --- a/meta-networking/recipes-connectivity/netplan/netplan_0.102.bb +++ b/meta-networking/recipes-connectivity/netplan/netplan_0.102.bb | |||
| @@ -16,6 +16,7 @@ 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-Handle-enum-element-override.patch \ | ||
| 19 | " | 20 | " |
| 20 | SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" | 21 | SRC_URI_append_libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" |
| 21 | 22 | ||
