openvswitch: backport patch to fix do_compile failure
PATCH 1/1 openvswitch: backport patch to fix do_compile failure
Backport a patch to fix do_compile error like below.
RuntimeError: dictionary keys changed during iteration
--- ....in-fix-dict-change-during-iteration.patch | 45 +++++++++++++++++++ .../openvswitch/openvswitch_git.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 recipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch
recipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch new file +45 -0
@@ -0,0 +1,45 @@ +From d84109f0b60096ce71cd0537b31b69a7f5ea8756 Mon Sep 17 00:00:00 2001 +From: Flavio Leitner <[email protected]> +Date: Sat, 14 Sep 2019 20:17:28 -0300 +Subject: [PATCH] ovsdb-idlc.in: fix dict change during iteration. + +Python3 complains if a dict key is changed during the +iteration. + +Use list() to create a copy of it. + +Traceback (most recent call last): + File "./ovsdb/ovsdb-idlc.in", line 1581, in <module> + func(*args[1:]) + File "./ovsdb/ovsdb-idlc.in", line 185, in printCIDLHeader + replace_cplusplus_keyword(schema) + File "./ovsdb/ovsdb-idlc.in", line 179, in replace_cplusplus_keyword + for columnName in table.columns: +RuntimeError: dictionary keys changed during iteration + +Signed-off-by: Flavio Leitner <[email protected]> +Signed-off-by: Ben Pfaff <[email protected]> + +Upstream-Status: Backport [https://github.com/openvswitch/ovs/commit/d84109f0b60096ce71cd0537b31b69a7f5ea8756] + +Signed-off-by: Chen Qi <[email protected]> +--- + ovsdb/ovsdb-idlc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in +index 40fef39ed..22d0a4e22 100755 +--- a/ovsdb/ovsdb-idlc.in ++++ b/ovsdb/ovsdb-idlc.in +@@ -176,7 +176,7 @@ def replace_cplusplus_keyword(schema): + 'wchar_t', 'while', 'xor', 'xor_eq'} + + for tableName, table in schema.tables.items(): +- for columnName in table.columns: ++ for columnName in list(table.columns): + if columnName in keywords: + table.columns[columnName + '_'] = table.columns.pop(columnName) + +-- +2.21.0 +
recipes-networking/openvswitch/openvswitch_git.bb +1 -0
@@ -33,6 +33,7 @@ SRC_URI = "file://openvswitch-switch \ file://python-switch-remaining-scripts-to-use-python3.patch \ file://systemd-update-tool-paths.patch \ file://systemd-create-runtime-dirs.patch \ + file://0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch \ " LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
Signature · 1 line
2.21.0
Since this is for master, I'd prefer that we uprev versus doing a patch.
Is there any issues you were seeing with just bumping the version ?
I can give it a try myself, but won't get to it until next week.
Bruce
Quoted 79 lines · Chen Qi
Backport a patch to fix
do_compileerror like below.RuntimeError: dictionary keys changed during iteration
Signed-off-by Chen Qi <[email protected]>--- ....in-fix-dict-change-during-iteration.patch | 45 +++++++++++++++++++ .../openvswitch/openvswitch_git.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 recipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patchrecipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch new file +45
-0@@ -0,0 +1,45 @@ +From d84109f0b60096ce71cd0537b31b69a7f5ea8756 Mon Sep 17 00:00:00 2001 +From: Flavio Leitner <[email protected]> +Date: Sat, 14 Sep 2019 20:17:28 -0300 +Subject: [PATCH] ovsdb-idlc.in: fix dict change during iteration. + +Python3 complains if a dict key is changed during the +iteration. + +Use list() to create a copy of it. + +Traceback (most recent call last): + File "./ovsdb/ovsdb-idlc.in", line 1581, in <module> + func(*args[1:]) + File "./ovsdb/ovsdb-idlc.in", line 185, in printCIDLHeader + replace_cplusplus_keyword(schema) + File "./ovsdb/ovsdb-idlc.in", line 179, in replace_cplusplus_keyword + for columnName in table.columns: +RuntimeError: dictionary keys changed during iteration + +Signed-off-by: Flavio Leitner <[email protected]> +Signed-off-by: Ben Pfaff <[email protected]> + +Upstream-Status: Backport [https://github.com/openvswitch/ovs/commit/d84109f0b60096ce71cd0537b31b69a7f5ea8756] + +Signed-off-by: Chen Qi <[email protected]> +--- + ovsdb/ovsdb-idlc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in +index 40fef39ed..22d0a4e22 100755 +--- a/ovsdb/ovsdb-idlc.in ++++ b/ovsdb/ovsdb-idlc.in +@@ -176,7 +176,7 @@ def replace_cplusplus_keyword(schema): + 'wchar_t', 'while', 'xor', 'xor_eq'} + + for tableName, table in schema.tables.items(): +- for columnName in table.columns: ++ for columnName in list(table.columns): + if columnName in keywords: + table.columns[columnName + '_'] = table.columns.pop(columnName) + +-- +2.21.0 +recipes-networking/openvswitch/openvswitch_git.bb +1
-1@@ -33,6 +33,7 @@ SRC_URI = "file://openvswitch-switch \ file://python-switch-remaining-scripts-to-use-python3.patch \ file://systemd-update-tool-paths.patch \ file://systemd-create-runtime-dirs.patch \ + file://0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch \ " LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" --2.21.0
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi Bruce,
I'm afraid I don't time doing this work in the coming 2 weeks.
It would be great if you can uprev it. But I'd suggest we merge this patch first, as it should have no negative effect. Thanks.
Best Regards,
Chen Qi
________________________________________
From: Bruce Ashfield [[email protected]]
Sent: Thursday, February 06, 2020 12:17 AM
To: Chen, Qi
Cc: [email protected]
Subject: Re: [meta-virtualization][PATCH] openvswitch: backport patch to fix do_compile failure
Since this is for master, I'd prefer that we uprev versus doing a patch.
Is there any issues you were seeing with just bumping the version ?
I can give it a try myself, but won't get to it until next week.
Bruce
Quoted 76 lines · Chen Qi
Backport a patch to fix
do_compileerror like below.RuntimeError: dictionary keys changed during iteration
Signed-off-by Chen Qi <[email protected]>--- ....in-fix-dict-change-during-iteration.patch | 45 +++++++++++++++++++ .../openvswitch/openvswitch_git.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 recipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patchrecipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch new file +45
-0@@ -0,0 +1,45 @@ +From d84109f0b60096ce71cd0537b31b69a7f5ea8756 Mon Sep 17 00:00:00 2001 +From: Flavio Leitner <[email protected]> +Date: Sat, 14 Sep 2019 20:17:28 -0300 +Subject: [PATCH] ovsdb-idlc.in: fix dict change during iteration. + +Python3 complains if a dict key is changed during the +iteration. + +Use list() to create a copy of it. + +Traceback (most recent call last): + File "./ovsdb/ovsdb-idlc.in", line 1581, in <module> + func(*args[1:]) + File "./ovsdb/ovsdb-idlc.in", line 185, in printCIDLHeader + replace_cplusplus_keyword(schema) + File "./ovsdb/ovsdb-idlc.in", line 179, in replace_cplusplus_keyword + for columnName in table.columns: +RuntimeError: dictionary keys changed during iteration + +Signed-off-by: Flavio Leitner <[email protected]> +Signed-off-by: Ben Pfaff <[email protected]> + +Upstream-Status: Backport [https://github.com/openvswitch/ovs/commit/d84109f0b60096ce71cd0537b31b69a7f5ea8756] + +Signed-off-by: Chen Qi <[email protected]> +--- + ovsdb/ovsdb-idlc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in +index 40fef39ed..22d0a4e22 100755 +--- a/ovsdb/ovsdb-idlc.in ++++ b/ovsdb/ovsdb-idlc.in +@@ -176,7 +176,7 @@ def replace_cplusplus_keyword(schema): + 'wchar_t', 'while', 'xor', 'xor_eq'} + + for tableName, table in schema.tables.items(): +- for columnName in table.columns: ++ for columnName in list(table.columns): + if columnName in keywords: + table.columns[columnName + '_'] = table.columns.pop(columnName) + +-- +2.21.0 +recipes-networking/openvswitch/openvswitch_git.bb +1
-1@@ -33,6 +33,7 @@ SRC_URI = "file://openvswitch-switch \ file://python-switch-remaining-scripts-to-use-python3.patch \ file://systemd-update-tool-paths.patch \ file://systemd-create-runtime-dirs.patch \ + file://0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch \ " LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" --
Quoted 3 lines
2.21.0
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Quoted 6 lines · Chen Qi
Hi Bruce,
I'm afraid I don't time doing this work in the coming 2 weeks.
It would be great if you can uprev it. But I'd suggest we merge this patch first, as it should have no negative effect. Thanks.
I will try to get this done today.
MarkA
Quoted 107 lines
Best Regards,
Chen Qi________________________________________
From: Bruce Ashfield [[email protected]]
Sent: Thursday, February 06, 2020 12:17 AM
To: Chen, Qi
Cc: [email protected]
Subject: Re: [meta-virtualization][PATCH] openvswitch: backport patch to fixdo_compilefailureSince this is for master, I'd prefer that we uprev versus doing a patch.
Is there any issues you were seeing with just bumping the version ?
I can give it a try myself, but won't get to it until next week.
Bruce
Quoted 76 lines · Chen Qi
Backport a patch to fix
do_compileerror like below.RuntimeError: dictionary keys changed during iteration
Signed-off-by Chen Qi <[email protected]>--- ....in-fix-dict-change-during-iteration.patch | 45 +++++++++++++++++++ .../openvswitch/openvswitch_git.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 recipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patchrecipes-networking/openvswitch/files/0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch new file +45
-0@@ -0,0 +1,45 @@ +From d84109f0b60096ce71cd0537b31b69a7f5ea8756 Mon Sep 17 00:00:00 2001 +From: Flavio Leitner <[email protected]> +Date: Sat, 14 Sep 2019 20:17:28 -0300 +Subject: [PATCH] ovsdb-idlc.in: fix dict change during iteration. + +Python3 complains if a dict key is changed during the +iteration. + +Use list() to create a copy of it. + +Traceback (most recent call last): + File "./ovsdb/ovsdb-idlc.in", line 1581, in <module> + func(*args[1:]) + File "./ovsdb/ovsdb-idlc.in", line 185, in printCIDLHeader + replace_cplusplus_keyword(schema) + File "./ovsdb/ovsdb-idlc.in", line 179, in replace_cplusplus_keyword + for columnName in table.columns: +RuntimeError: dictionary keys changed during iteration + +Signed-off-by: Flavio Leitner <[email protected]> +Signed-off-by: Ben Pfaff <[email protected]> + +Upstream-Status: Backport [https://github.com/openvswitch/ovs/commit/d84109f0b60096ce71cd0537b31b69a7f5ea8756] + +Signed-off-by: Chen Qi <[email protected]> +--- + ovsdb/ovsdb-idlc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in +index 40fef39ed..22d0a4e22 100755 +--- a/ovsdb/ovsdb-idlc.in ++++ b/ovsdb/ovsdb-idlc.in +@@ -176,7 +176,7 @@ def replace_cplusplus_keyword(schema): + 'wchar_t', 'while', 'xor', 'xor_eq'} + + for tableName, table in schema.tables.items(): +- for columnName in table.columns: ++ for columnName in list(table.columns): + if columnName in keywords: + table.columns[columnName + '_'] = table.columns.pop(columnName) + +-- +2.21.0 +recipes-networking/openvswitch/openvswitch_git.bb +1
-1@@ -33,6 +33,7 @@ SRC_URI = "file://openvswitch-switch \ file://python-switch-remaining-scripts-to-use-python3.patch \ file://systemd-update-tool-paths.patch \ file://systemd-create-runtime-dirs.patch \ + file://0001-ovsdb-idlc.in-fix-dict-change-during-iteration.patch \ " LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" --Quoted 3 lines
2.21.0
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II