From e86ae39489f1c17405d557f9204747594af29e6a Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Tue, 20 Jun 2017 16:25:54 -0400 Subject: openvswitch: switch to depending on python3 As far as I can tell openvswitch has been updated to work with python3 as well as with python(2). Switch to depend on python3 and use python3 for associated scripts. For the most part openvswitch will bind at runtime to either py2 or py3 regardless of these changes, with these changes we just do a better job of setting up the dependencies to facilitate py3 bindings. The openvswitch autotests results are mostly identical before and after this switch (failures move from python3 to python(2) test cases as expected, with some exceptions see below). When running the autotests/ptest with python(2) vs python3 we see a slightly higher failure rate (334 failures vs. 284 failures). I do not believe this higher fail rate reflects actual errors in the runtime, rather the tests are not adapted to python3. At any rate like the rest of openvswitch it is fairly straightforward to hack the logic for autotests to be run using py2 as long as it is available in the image, so these changes don't prevent falling back to py2 for autotests. This should facilitate any debugging we need to do based on us switching to favor py3. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- ...python-make-remaining-scripts-use-usr-bin-env.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch') diff --git a/recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch b/recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch index 68f46ff5..4441c1ea 100644 --- a/recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch +++ b/recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch @@ -33,7 +33,7 @@ index f79f235..c7b8730 100755 +++ b/build-aux/check-structs @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 import os.path import sys @@ -43,7 +43,7 @@ index 184447b..92ea18d 100755 +++ b/build-aux/extract-ofp-actions @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 import sys import os.path @@ -53,7 +53,7 @@ index 9642593..11e6de7 100755 +++ b/build-aux/extract-ofp-errors @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 import sys import os.path @@ -63,7 +63,7 @@ index 498b887..5d6bcec 100755 +++ b/build-aux/extract-ofp-fields @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 import getopt import sys @@ -73,7 +73,7 @@ index 1813638..e9e3c25 100755 +++ b/build-aux/extract-ofp-msgs @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 import sys import os.path @@ -83,7 +83,7 @@ index bd4e879..9d81503 100755 +++ b/build-aux/xml2nroff @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 # Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc. # @@ -93,7 +93,7 @@ index 52de3db..c90f02b 100755 +++ b/ovn/utilities/ovn-docker-overlay-driver @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 # Copyright (C) 2015 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -103,7 +103,7 @@ index 2c9c4b6..89b804c 100755 +++ b/ovn/utilities/ovn-docker-underlay-driver @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 # Copyright (C) 2015 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -113,7 +113,7 @@ index 5cf26ee..f76f4bd 100755 +++ b/ovsdb/ovsdb-doc @@ -1,4 +1,4 @@ -#! /usr/bin/python -+#! /usr/bin/env python ++#! /usr/bin/env python3 # Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc. # -- cgit v1.2.3-54-g00ecf