summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch')
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch24
1 files changed, 11 insertions, 13 deletions
diff --git a/recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch b/recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch
index d6197588..7bdcc003 100644
--- a/recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch
+++ b/recipes-networking/openvswitch/openvswitch-git/0001-Python3-compatibility-Convert-print-statements.patch
@@ -1,7 +1,7 @@
1From c5c18f9c5f1b7217d43af43be9736c1762c7ebba Mon Sep 17 00:00:00 2001 1From 3658d861c3c83caab9040bec04b195be3f86d4ce Mon Sep 17 00:00:00 2001
2From: Jason Wessel <jason.wessel@windriver.com> 2From: Jason Wessel <jason.wessel@windriver.com>
3Date: Thu, 29 Jun 2017 20:33:23 -0700 3Date: Thu, 29 Jun 2017 20:33:23 -0700
4Subject: [PATCH 1/8] Python3 compatibility: Convert print statements 4Subject: [PATCH] Python3 compatibility: Convert print statements
5 5
6Commit d34a1cc02536f9a812517a71accec3fbd3c6c98b from 6Commit d34a1cc02536f9a812517a71accec3fbd3c6c98b from
7https://github.com/openvswitch/ovs.git 7https://github.com/openvswitch/ovs.git
@@ -11,6 +11,7 @@ python2.
11 11
12Signed-off-by: Jason Wessel <jason.wessel@windriver.com> 12Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
13Signed-off-by: Ben Pfaff <blp@ovn.org> 13Signed-off-by: Ben Pfaff <blp@ovn.org>
14
14--- 15---
15 build-aux/check-structs | 4 +- 16 build-aux/check-structs | 4 +-
16 build-aux/extract-ofp-actions | 68 +++--- 17 build-aux/extract-ofp-actions | 68 +++---
@@ -22,7 +23,7 @@ Signed-off-by: Ben Pfaff <blp@ovn.org>
22 7 files changed, 306 insertions(+), 305 deletions(-) 23 7 files changed, 306 insertions(+), 305 deletions(-)
23 24
24diff --git a/build-aux/check-structs b/build-aux/check-structs 25diff --git a/build-aux/check-structs b/build-aux/check-structs
25index f79f235..bae511f 100755 26index 5129b72..cbb19b6 100755
26--- a/build-aux/check-structs 27--- a/build-aux/check-structs
27+++ b/build-aux/check-structs 28+++ b/build-aux/check-structs
28@@ -211,7 +211,7 @@ def checkStructs(): 29@@ -211,7 +211,7 @@ def checkStructs():
@@ -44,7 +45,7 @@ index f79f235..bae511f 100755
44 45
45 global fileName 46 global fileName
46diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions 47diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions
47index 0062ab8..874e6b4 100755 48index ee8c4ff..67e3848 100755
48--- a/build-aux/extract-ofp-actions 49--- a/build-aux/extract-ofp-actions
49+++ b/build-aux/extract-ofp-actions 50+++ b/build-aux/extract-ofp-actions
50@@ -67,7 +67,7 @@ def fatal(msg): 51@@ -67,7 +67,7 @@ def fatal(msg):
@@ -187,7 +188,7 @@ index 0062ab8..874e6b4 100755
187 if __name__ == '__main__': 188 if __name__ == '__main__':
188 if '--help' in sys.argv: 189 if '--help' in sys.argv:
189diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors 190diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors
190index 2312b76..336a240 100755 191index e36444e..97d62d2 100755
191--- a/build-aux/extract-ofp-errors 192--- a/build-aux/extract-ofp-errors
192+++ b/build-aux/extract-ofp-errors 193+++ b/build-aux/extract-ofp-errors
193@@ -426,7 +426,7 @@ static const struct ofperr_domain %s = { 194@@ -426,7 +426,7 @@ static const struct ofperr_domain %s = {
@@ -200,7 +201,7 @@ index 2312b76..336a240 100755
200 print (" { -1, -1, -1 }, /* %s */" % enum) 201 print (" { -1, -1, -1 }, /* %s */" % enum)
201 print ("""\ 202 print ("""\
202diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields 203diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields
203index 498b887..425a85f 100755 204index c248e76..80c7d35 100755
204--- a/build-aux/extract-ofp-fields 205--- a/build-aux/extract-ofp-fields
205+++ b/build-aux/extract-ofp-fields 206+++ b/build-aux/extract-ofp-fields
206@@ -728,7 +728,7 @@ def make_ovs_fields(meta_flow_h, meta_flow_xml): 207@@ -728,7 +728,7 @@ def make_ovs_fields(meta_flow_h, meta_flow_xml):
@@ -213,7 +214,7 @@ index 498b887..425a85f 100755
213 recursively_replace(doc, 'oxm_classes', make_oxm_classes_xml(document)) 214 recursively_replace(doc, 'oxm_classes', make_oxm_classes_xml(document))
214 215
215diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs 216diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs
216index 1813638..a67e870 100755 217index c2a91f9..92c4bda 100755
217--- a/build-aux/extract-ofp-msgs 218--- a/build-aux/extract-ofp-msgs
218+++ b/build-aux/extract-ofp-msgs 219+++ b/build-aux/extract-ofp-msgs
219@@ -56,14 +56,14 @@ def fatal(msg): 220@@ -56,14 +56,14 @@ def fatal(msg):
@@ -241,7 +242,7 @@ index 1813638..a67e870 100755
241+ print(line) 242+ print(line)
242 243
243diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc 244diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc
244index 5cf26ee..b34fb11 100755 245index bdf2dcc..e82ad59 100755
245--- a/ovsdb/ovsdb-doc 246--- a/ovsdb/ovsdb-doc
246+++ b/ovsdb/ovsdb-doc 247+++ b/ovsdb/ovsdb-doc
247@@ -258,7 +258,7 @@ represent strong references; thin lines represent weak references. 248@@ -258,7 +258,7 @@ represent strong references; thin lines represent weak references.
@@ -272,11 +273,11 @@ index 5cf26ee..b34fb11 100755
272 except error.Error, e: 273 except error.Error, e:
273 sys.stderr.write("%s: %s\n" % (argv0, e.msg)) 274 sys.stderr.write("%s: %s\n" % (argv0, e.msg))
274diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in 275diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
275index 721ab50..1064448 100755 276index bfbcf23..62442ee 100755
276--- a/ovsdb/ovsdb-idlc.in 277--- a/ovsdb/ovsdb-idlc.in
277+++ b/ovsdb/ovsdb-idlc.in 278+++ b/ovsdb/ovsdb-idlc.in
278@@ -1,5 +1,6 @@ 279@@ -1,5 +1,6 @@
279 #! @PYTHON@ 280 #! /usr/bin/env @PYTHON@
280 281
281+from __future__ import print_function 282+from __future__ import print_function
282 import getopt 283 import getopt
@@ -1259,6 +1260,3 @@ index 721ab50..1064448 100755
1259 elif key in ['-C', '--directory']: 1260 elif key in ['-C', '--directory']:
1260 os.chdir(value) 1261 os.chdir(value)
1261 else: 1262 else:
1262--
12632.5.0
1264