diff options
Diffstat (limited to 'recipes-networking/openvswitch/files')
2 files changed, 262 insertions, 51 deletions
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 deff10b0..0dc6b11b 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From f21a0490555d5fe8f5a9ce982defa666a64151c0 Mon Sep 17 00:00:00 2001 | 1 | From a0a2d829642e916bd5d1c498a3e6f3641ed717a0 Mon Sep 17 00:00:00 2001 |
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
3 | Date: Fri, 13 Jan 2017 16:12:55 -0500 | 3 | Date: Fri, 13 Jan 2017 16:12:55 -0500 |
4 | Subject: [PATCH] python: make remaining scripts use /usr/bin/env | 4 | Subject: [PATCH] python: make remaining scripts use /usr/bin/env |
@@ -12,24 +12,43 @@ PYTHON. To make this function smoothly all installed scripts should | |||
12 | make use of /usr/bin/env to increase the chances of finding python. | 12 | make use of /usr/bin/env to increase the chances of finding python. |
13 | 13 | ||
14 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | 14 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> |
15 | |||
16 | --- | 15 | --- |
17 | build-aux/check-structs | 2 +- | 16 | build-aux/check-structs | 2 +- |
18 | build-aux/extract-ofp-actions | 2 +- | 17 | build-aux/dpdkstrip.py | 2 +- |
19 | build-aux/extract-ofp-errors | 2 +- | 18 | build-aux/extract-ofp-actions | 2 +- |
20 | build-aux/extract-ofp-fields | 2 +- | 19 | build-aux/extract-ofp-errors | 2 +- |
21 | build-aux/extract-ofp-msgs | 2 +- | 20 | build-aux/extract-ofp-fields | 2 +- |
22 | build-aux/xml2nroff | 2 +- | 21 | build-aux/extract-ofp-msgs | 2 +- |
23 | ovn/utilities/ovn-docker-overlay-driver | 2 +- | 22 | build-aux/sodepends.py | 2 +- |
24 | ovn/utilities/ovn-docker-underlay-driver | 2 +- | 23 | build-aux/soexpand.py | 2 +- |
25 | ovsdb/ovsdb-doc | 2 +- | 24 | build-aux/text2c | 2 +- |
26 | ovsdb/ovsdb-dot.in | 2 +- | 25 | build-aux/xml2nroff | 2 +- |
27 | ovsdb/ovsdb-idlc.in | 2 +- | 26 | ovn/utilities/ovn-detrace.in | 2 +- |
28 | utilities/bugtool/ovs-bugtool.in | 2 +- | 27 | ovn/utilities/ovn-docker-overlay-driver.in | 2 +- |
29 | 12 files changed, 12 insertions(+), 12 deletions(-) | 28 | ovn/utilities/ovn-docker-underlay-driver.in | 2 +- |
29 | ovsdb/dot2pic | 2 +- | ||
30 | ovsdb/ovsdb-doc | 2 +- | ||
31 | ovsdb/ovsdb-dot.in | 2 +- | ||
32 | ovsdb/ovsdb-idlc.in | 2 +- | ||
33 | python/build/soutil.py | 2 +- | ||
34 | tests/flowgen.py | 2 +- | ||
35 | tests/ovsdb-monitor-sort.py | 2 +- | ||
36 | tests/uuidfilt.py | 2 +- | ||
37 | utilities/bugtool/ovs-bugtool.in | 2 +- | ||
38 | utilities/ovs-check-dead-ifs.in | 2 +- | ||
39 | utilities/ovs-dpctl-top.in | 2 +- | ||
40 | utilities/ovs-l3ping.in | 2 +- | ||
41 | utilities/ovs-parse-backtrace.in | 2 +- | ||
42 | utilities/ovs-pcap.in | 2 +- | ||
43 | utilities/ovs-tcpdump.in | 2 +- | ||
44 | utilities/ovs-tcpundump.in | 2 +- | ||
45 | utilities/ovs-test.in | 2 +- | ||
46 | utilities/ovs-vlan-test.in | 2 +- | ||
47 | vtep/ovs-vtep.in | 2 +- | ||
48 | 32 files changed, 32 insertions(+), 32 deletions(-) | ||
30 | 49 | ||
31 | diff --git a/build-aux/check-structs b/build-aux/check-structs | 50 | diff --git a/build-aux/check-structs b/build-aux/check-structs |
32 | index f79f235..5129b72 100755 | 51 | index 37ffa06..eb44c91 100755 |
33 | --- a/build-aux/check-structs | 52 | --- a/build-aux/check-structs |
34 | +++ b/build-aux/check-structs | 53 | +++ b/build-aux/check-structs |
35 | @@ -1,4 +1,4 @@ | 54 | @@ -1,4 +1,4 @@ |
@@ -38,8 +57,18 @@ index f79f235..5129b72 100755 | |||
38 | 57 | ||
39 | import os.path | 58 | import os.path |
40 | import sys | 59 | import sys |
60 | diff --git a/build-aux/dpdkstrip.py b/build-aux/dpdkstrip.py | ||
61 | index 48c7f06..b8b8ba9 100755 | ||
62 | --- a/build-aux/dpdkstrip.py | ||
63 | +++ b/build-aux/dpdkstrip.py | ||
64 | @@ -1,4 +1,4 @@ | ||
65 | -#! /usr/bin/env python | ||
66 | +#! /usr/bin/env python3 | ||
67 | # Copyright (c) 2017 Red Hat, Inc. | ||
68 | # | ||
69 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
41 | diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions | 70 | diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions |
42 | index 0062ab8..ee8c4ff 100755 | 71 | index bd7131f..4d05ef9 100755 |
43 | --- a/build-aux/extract-ofp-actions | 72 | --- a/build-aux/extract-ofp-actions |
44 | +++ b/build-aux/extract-ofp-actions | 73 | +++ b/build-aux/extract-ofp-actions |
45 | @@ -1,4 +1,4 @@ | 74 | @@ -1,4 +1,4 @@ |
@@ -49,7 +78,7 @@ index 0062ab8..ee8c4ff 100755 | |||
49 | import sys | 78 | import sys |
50 | import os.path | 79 | import os.path |
51 | diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors | 80 | diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors |
52 | index 2312b76..e36444e 100755 | 81 | index 71ae0bd..58ba006 100755 |
53 | --- a/build-aux/extract-ofp-errors | 82 | --- a/build-aux/extract-ofp-errors |
54 | +++ b/build-aux/extract-ofp-errors | 83 | +++ b/build-aux/extract-ofp-errors |
55 | @@ -1,4 +1,4 @@ | 84 | @@ -1,4 +1,4 @@ |
@@ -59,7 +88,7 @@ index 2312b76..e36444e 100755 | |||
59 | import sys | 88 | import sys |
60 | import os.path | 89 | import os.path |
61 | diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields | 90 | diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields |
62 | index 498b887..c248e76 100755 | 91 | index 184b75e..cf339f8 100755 |
63 | --- a/build-aux/extract-ofp-fields | 92 | --- a/build-aux/extract-ofp-fields |
64 | +++ b/build-aux/extract-ofp-fields | 93 | +++ b/build-aux/extract-ofp-fields |
65 | @@ -1,4 +1,4 @@ | 94 | @@ -1,4 +1,4 @@ |
@@ -69,7 +98,7 @@ index 498b887..c248e76 100755 | |||
69 | import getopt | 98 | import getopt |
70 | import sys | 99 | import sys |
71 | diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs | 100 | diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs |
72 | index 1813638..c2a91f9 100755 | 101 | index a67e870..92c4bda 100755 |
73 | --- a/build-aux/extract-ofp-msgs | 102 | --- a/build-aux/extract-ofp-msgs |
74 | +++ b/build-aux/extract-ofp-msgs | 103 | +++ b/build-aux/extract-ofp-msgs |
75 | @@ -1,4 +1,4 @@ | 104 | @@ -1,4 +1,4 @@ |
@@ -78,6 +107,36 @@ index 1813638..c2a91f9 100755 | |||
78 | 107 | ||
79 | import sys | 108 | import sys |
80 | import os.path | 109 | import os.path |
110 | diff --git a/build-aux/sodepends.py b/build-aux/sodepends.py | ||
111 | index 90cfaa0..45812bc 100755 | ||
112 | --- a/build-aux/sodepends.py | ||
113 | +++ b/build-aux/sodepends.py | ||
114 | @@ -1,4 +1,4 @@ | ||
115 | -#! /usr/bin/env python | ||
116 | +#! /usr/bin/env python3 | ||
117 | |||
118 | # Copyright (c) 2008, 2011, 2017 Nicira, Inc. | ||
119 | # | ||
120 | diff --git a/build-aux/soexpand.py b/build-aux/soexpand.py | ||
121 | index 53ca640..00adcf4 100755 | ||
122 | --- a/build-aux/soexpand.py | ||
123 | +++ b/build-aux/soexpand.py | ||
124 | @@ -1,4 +1,4 @@ | ||
125 | -#! /usr/bin/env python | ||
126 | +#! /usr/bin/env python3 | ||
127 | |||
128 | # Copyright (c) 2008, 2017 Nicira, Inc. | ||
129 | # | ||
130 | diff --git a/build-aux/text2c b/build-aux/text2c | ||
131 | index cb1f256..ab7910e 100755 | ||
132 | --- a/build-aux/text2c | ||
133 | +++ b/build-aux/text2c | ||
134 | @@ -1,4 +1,4 @@ | ||
135 | -#! /usr/bin/python | ||
136 | +#! /usr/bin/env python3 | ||
137 | |||
138 | import re | ||
139 | import sys | ||
81 | diff --git a/build-aux/xml2nroff b/build-aux/xml2nroff | 140 | diff --git a/build-aux/xml2nroff b/build-aux/xml2nroff |
82 | index bd4e879..db45c56 100755 | 141 | index bd4e879..db45c56 100755 |
83 | --- a/build-aux/xml2nroff | 142 | --- a/build-aux/xml2nroff |
@@ -88,28 +147,48 @@ index bd4e879..db45c56 100755 | |||
88 | 147 | ||
89 | # Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc. | 148 | # Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc. |
90 | # | 149 | # |
91 | diff --git a/ovn/utilities/ovn-docker-overlay-driver b/ovn/utilities/ovn-docker-overlay-driver | 150 | diff --git a/ovn/utilities/ovn-detrace.in b/ovn/utilities/ovn-detrace.in |
92 | index 52de3db..3b1fa45 100755 | 151 | index e2e5b4c..5549219 100755 |
93 | --- a/ovn/utilities/ovn-docker-overlay-driver | 152 | --- a/ovn/utilities/ovn-detrace.in |
94 | +++ b/ovn/utilities/ovn-docker-overlay-driver | 153 | +++ b/ovn/utilities/ovn-detrace.in |
95 | @@ -1,4 +1,4 @@ | 154 | @@ -1,4 +1,4 @@ |
96 | -#! /usr/bin/python | 155 | -#! @PYTHON@ |
97 | +#! /usr/bin/env python3 | 156 | +#!/usr/bin/env @PYTHON@ |
157 | # | ||
158 | # Copyright (c) 2017 eBay Inc. | ||
159 | # | ||
160 | diff --git a/ovn/utilities/ovn-docker-overlay-driver.in b/ovn/utilities/ovn-docker-overlay-driver.in | ||
161 | index 65edfcd..895426b 100755 | ||
162 | --- a/ovn/utilities/ovn-docker-overlay-driver.in | ||
163 | +++ b/ovn/utilities/ovn-docker-overlay-driver.in | ||
164 | @@ -1,4 +1,4 @@ | ||
165 | -#! @PYTHON@ | ||
166 | +#!/usr/bin/env @PYTHON@ | ||
98 | # Copyright (C) 2015 Nicira, Inc. | 167 | # Copyright (C) 2015 Nicira, Inc. |
99 | # | 168 | # |
100 | # Licensed under the Apache License, Version 2.0 (the "License"); | 169 | # Licensed under the Apache License, Version 2.0 (the "License"); |
101 | diff --git a/ovn/utilities/ovn-docker-underlay-driver b/ovn/utilities/ovn-docker-underlay-driver | 170 | diff --git a/ovn/utilities/ovn-docker-underlay-driver.in b/ovn/utilities/ovn-docker-underlay-driver.in |
102 | index 2c9c4b6..551e7a1 100755 | 171 | index d91ce9f..e0c8db6 100755 |
103 | --- a/ovn/utilities/ovn-docker-underlay-driver | 172 | --- a/ovn/utilities/ovn-docker-underlay-driver.in |
104 | +++ b/ovn/utilities/ovn-docker-underlay-driver | 173 | +++ b/ovn/utilities/ovn-docker-underlay-driver.in |
105 | @@ -1,4 +1,4 @@ | 174 | @@ -1,4 +1,4 @@ |
106 | -#! /usr/bin/python | 175 | -#! @PYTHON@ |
107 | +#! /usr/bin/env python3 | 176 | +#!/usr/bin/env @PYTHON@ |
108 | # Copyright (C) 2015 Nicira, Inc. | 177 | # Copyright (C) 2015 Nicira, Inc. |
109 | # | 178 | # |
110 | # Licensed under the Apache License, Version 2.0 (the "License"); | 179 | # Licensed under the Apache License, Version 2.0 (the "License"); |
180 | diff --git a/ovsdb/dot2pic b/ovsdb/dot2pic | ||
181 | index de67261..174e723 100755 | ||
182 | --- a/ovsdb/dot2pic | ||
183 | +++ b/ovsdb/dot2pic | ||
184 | @@ -1,4 +1,4 @@ | ||
185 | -#! /usr/bin/env python | ||
186 | +#! /usr/bin/env python3 | ||
187 | |||
188 | # Copyright (c) 2009, 2010, 2011, 2013, 2017 Nicira, Inc. | ||
189 | # | ||
111 | diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc | 190 | diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc |
112 | index 5cf26ee..bdf2dcc 100755 | 191 | index 406c293..d55c6e6 100755 |
113 | --- a/ovsdb/ovsdb-doc | 192 | --- a/ovsdb/ovsdb-doc |
114 | +++ b/ovsdb/ovsdb-doc | 193 | +++ b/ovsdb/ovsdb-doc |
115 | @@ -1,4 +1,4 @@ | 194 | @@ -1,4 +1,4 @@ |
@@ -119,7 +198,7 @@ index 5cf26ee..bdf2dcc 100755 | |||
119 | # Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc. | 198 | # Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc. |
120 | # | 199 | # |
121 | diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in | 200 | diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in |
122 | index 134ce22..893c408 100755 | 201 | index 8eea617..38ba33a 100755 |
123 | --- a/ovsdb/ovsdb-dot.in | 202 | --- a/ovsdb/ovsdb-dot.in |
124 | +++ b/ovsdb/ovsdb-dot.in | 203 | +++ b/ovsdb/ovsdb-dot.in |
125 | @@ -1,4 +1,4 @@ | 204 | @@ -1,4 +1,4 @@ |
@@ -129,17 +208,57 @@ index 134ce22..893c408 100755 | |||
129 | from datetime import date | 208 | from datetime import date |
130 | import ovs.db.error | 209 | import ovs.db.error |
131 | diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in | 210 | diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in |
132 | index 721ab50..bfbcf23 100755 | 211 | index 1ea2115..4ecb2e2 100755 |
133 | --- a/ovsdb/ovsdb-idlc.in | 212 | --- a/ovsdb/ovsdb-idlc.in |
134 | +++ b/ovsdb/ovsdb-idlc.in | 213 | +++ b/ovsdb/ovsdb-idlc.in |
135 | @@ -1,4 +1,4 @@ | 214 | @@ -1,4 +1,4 @@ |
136 | -#! @PYTHON@ | 215 | -#! @PYTHON@ |
137 | +#! /usr/bin/env @PYTHON@ | 216 | +#!/usr/bin/env @PYTHON@ |
138 | 217 | ||
218 | from __future__ import print_function | ||
139 | import getopt | 219 | import getopt |
140 | import os | 220 | diff --git a/python/build/soutil.py b/python/build/soutil.py |
221 | index b8027af..8f52803 100755 | ||
222 | --- a/python/build/soutil.py | ||
223 | +++ b/python/build/soutil.py | ||
224 | @@ -1,4 +1,4 @@ | ||
225 | -#! /usr/bin/env python | ||
226 | +#! /usr/bin/env python3 | ||
227 | |||
228 | # Copyright (c) 2008, 2017 Nicira, Inc. | ||
229 | # | ||
230 | diff --git a/tests/flowgen.py b/tests/flowgen.py | ||
231 | index 221a8f2..5d96d76 100755 | ||
232 | --- a/tests/flowgen.py | ||
233 | +++ b/tests/flowgen.py | ||
234 | @@ -1,4 +1,4 @@ | ||
235 | -#! /usr/bin/env python | ||
236 | +#! /usr/bin/env python3 | ||
237 | |||
238 | # Copyright (c) 2009, 2010, 2011, 2012, 2015, 2017 Nicira, Inc. | ||
239 | # | ||
240 | diff --git a/tests/ovsdb-monitor-sort.py b/tests/ovsdb-monitor-sort.py | ||
241 | index 7d368a7..ab4c38c 100755 | ||
242 | --- a/tests/ovsdb-monitor-sort.py | ||
243 | +++ b/tests/ovsdb-monitor-sort.py | ||
244 | @@ -1,4 +1,4 @@ | ||
245 | -#! /usr/bin/env python | ||
246 | +#! /usr/bin/env python3 | ||
247 | |||
248 | # Breaks lines read from stdin into groups using blank lines as | ||
249 | # group separators, then sorts lines within the groups for | ||
250 | diff --git a/tests/uuidfilt.py b/tests/uuidfilt.py | ||
251 | index ea72812..f1a9aff 100755 | ||
252 | --- a/tests/uuidfilt.py | ||
253 | +++ b/tests/uuidfilt.py | ||
254 | @@ -1,4 +1,4 @@ | ||
255 | -#!/usr/bin/env python | ||
256 | +#!/usr/bin/env python3 | ||
257 | |||
258 | import re | ||
259 | import sys | ||
141 | diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in | 260 | diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in |
142 | index 963c50c..c84d7c2 100755 | 261 | index 8d220fd..76cedf4 100755 |
143 | --- a/utilities/bugtool/ovs-bugtool.in | 262 | --- a/utilities/bugtool/ovs-bugtool.in |
144 | +++ b/utilities/bugtool/ovs-bugtool.in | 263 | +++ b/utilities/bugtool/ovs-bugtool.in |
145 | @@ -1,4 +1,4 @@ | 264 | @@ -1,4 +1,4 @@ |
@@ -148,3 +267,106 @@ index 963c50c..c84d7c2 100755 | |||
148 | 267 | ||
149 | # This library is free software; you can redistribute it and/or | 268 | # This library is free software; you can redistribute it and/or |
150 | # modify it under the terms of version 2.1 of the GNU Lesser General Public | 269 | # modify it under the terms of version 2.1 of the GNU Lesser General Public |
270 | diff --git a/utilities/ovs-check-dead-ifs.in b/utilities/ovs-check-dead-ifs.in | ||
271 | index ac54f6c..13d86b3 100755 | ||
272 | --- a/utilities/ovs-check-dead-ifs.in | ||
273 | +++ b/utilities/ovs-check-dead-ifs.in | ||
274 | @@ -1,4 +1,4 @@ | ||
275 | -#! @PYTHON@ | ||
276 | +#!/usr/bin/env @PYTHON@ | ||
277 | |||
278 | import os | ||
279 | import re | ||
280 | diff --git a/utilities/ovs-dpctl-top.in b/utilities/ovs-dpctl-top.in | ||
281 | index 7f0f1f8..ece707a 100755 | ||
282 | --- a/utilities/ovs-dpctl-top.in | ||
283 | +++ b/utilities/ovs-dpctl-top.in | ||
284 | @@ -1,4 +1,4 @@ | ||
285 | -#! @PYTHON@ | ||
286 | +#!/usr/bin/env @PYTHON@ | ||
287 | # | ||
288 | # Copyright (c) 2013 Nicira, Inc. | ||
289 | # | ||
290 | diff --git a/utilities/ovs-l3ping.in b/utilities/ovs-l3ping.in | ||
291 | index 1b07972..9852699 100644 | ||
292 | --- a/utilities/ovs-l3ping.in | ||
293 | +++ b/utilities/ovs-l3ping.in | ||
294 | @@ -1,4 +1,4 @@ | ||
295 | -#! @PYTHON@ | ||
296 | +#!/usr/bin/env @PYTHON@ | ||
297 | # | ||
298 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
299 | # you may not use this file except in compliance with the License. | ||
300 | diff --git a/utilities/ovs-parse-backtrace.in b/utilities/ovs-parse-backtrace.in | ||
301 | index 350cbd9..1960fb4 100755 | ||
302 | --- a/utilities/ovs-parse-backtrace.in | ||
303 | +++ b/utilities/ovs-parse-backtrace.in | ||
304 | @@ -1,4 +1,4 @@ | ||
305 | -#! @PYTHON@ | ||
306 | +#!/usr/bin/env @PYTHON@ | ||
307 | # | ||
308 | # Copyright (c) 2012 Nicira, Inc. | ||
309 | # | ||
310 | diff --git a/utilities/ovs-pcap.in b/utilities/ovs-pcap.in | ||
311 | index fc15321..bd55a41 100755 | ||
312 | --- a/utilities/ovs-pcap.in | ||
313 | +++ b/utilities/ovs-pcap.in | ||
314 | @@ -1,4 +1,4 @@ | ||
315 | -#! @PYTHON@ | ||
316 | +#!/usr/bin/env @PYTHON@ | ||
317 | # | ||
318 | # Copyright (c) 2010 Nicira, Inc. | ||
319 | # | ||
320 | diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in | ||
321 | index 91fa14e..bad67b7 100755 | ||
322 | --- a/utilities/ovs-tcpdump.in | ||
323 | +++ b/utilities/ovs-tcpdump.in | ||
324 | @@ -1,4 +1,4 @@ | ||
325 | -#! @PYTHON@ | ||
326 | +#!/usr/bin/env @PYTHON@ | ||
327 | # | ||
328 | # Copyright (c) 2016 Red Hat, Inc. | ||
329 | # | ||
330 | diff --git a/utilities/ovs-tcpundump.in b/utilities/ovs-tcpundump.in | ||
331 | index c99015b..9a617ce 100755 | ||
332 | --- a/utilities/ovs-tcpundump.in | ||
333 | +++ b/utilities/ovs-tcpundump.in | ||
334 | @@ -1,4 +1,4 @@ | ||
335 | -#! @PYTHON@ | ||
336 | +#!/usr/bin/env @PYTHON@ | ||
337 | # | ||
338 | # Copyright (c) 2010 Nicira, Inc. | ||
339 | # | ||
340 | diff --git a/utilities/ovs-test.in b/utilities/ovs-test.in | ||
341 | index fb1f9ad..4dba169 100644 | ||
342 | --- a/utilities/ovs-test.in | ||
343 | +++ b/utilities/ovs-test.in | ||
344 | @@ -1,4 +1,4 @@ | ||
345 | -#! @PYTHON@ | ||
346 | +#!/usr/bin/env @PYTHON@ | ||
347 | # | ||
348 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
349 | # you may not use this file except in compliance with the License. | ||
350 | diff --git a/utilities/ovs-vlan-test.in b/utilities/ovs-vlan-test.in | ||
351 | index e229498..5b70118 100755 | ||
352 | --- a/utilities/ovs-vlan-test.in | ||
353 | +++ b/utilities/ovs-vlan-test.in | ||
354 | @@ -1,4 +1,4 @@ | ||
355 | -#! @PYTHON@ | ||
356 | +#!/usr/bin/env @PYTHON@ | ||
357 | # | ||
358 | # Copyright (c) 2010 Nicira, Inc. | ||
359 | # | ||
360 | diff --git a/vtep/ovs-vtep.in b/vtep/ovs-vtep.in | ||
361 | index 98748e4..3f12ae2 100755 | ||
362 | --- a/vtep/ovs-vtep.in | ||
363 | +++ b/vtep/ovs-vtep.in | ||
364 | @@ -1,4 +1,4 @@ | ||
365 | -#! @PYTHON@ | ||
366 | +#!/usr/bin/env @PYTHON@ | ||
367 | # Copyright (C) 2013 Nicira, Inc. All Rights Reserved. | ||
368 | # | ||
369 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
370 | -- | ||
371 | 2.7.4 | ||
372 | |||
diff --git a/recipes-networking/openvswitch/files/python-switch-remaining-scripts-to-use-python3.patch b/recipes-networking/openvswitch/files/python-switch-remaining-scripts-to-use-python3.patch index 6a1b8320..540bda6d 100644 --- a/recipes-networking/openvswitch/files/python-switch-remaining-scripts-to-use-python3.patch +++ b/recipes-networking/openvswitch/files/python-switch-remaining-scripts-to-use-python3.patch | |||
@@ -13,11 +13,10 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | |||
13 | utilities/checkpatch.py | 2 +- | 13 | utilities/checkpatch.py | 2 +- |
14 | utilities/ovs-dev.py | 2 +- | 14 | utilities/ovs-dev.py | 2 +- |
15 | utilities/ovs-pipegen.py | 2 +- | 15 | utilities/ovs-pipegen.py | 2 +- |
16 | vtep/ovs-vtep | 2 +- | ||
17 | xenserver/etc_xapi.d_plugins_openvswitch-cfg-update | 2 +- | 16 | xenserver/etc_xapi.d_plugins_openvswitch-cfg-update | 2 +- |
18 | xenserver/opt_xensource_libexec_interface-reconfigure | 2 +- | 17 | xenserver/opt_xensource_libexec_interface-reconfigure | 2 +- |
19 | xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync | 2 +- | 18 | xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync | 2 +- |
20 | 9 files changed, 9 insertions(+), 9 deletions(-) | 19 | 8 files changed, 8 insertions(+), 8 deletions(-) |
21 | 20 | ||
22 | diff --git a/ofproto/ipfix-gen-entities b/ofproto/ipfix-gen-entities | 21 | diff --git a/ofproto/ipfix-gen-entities b/ofproto/ipfix-gen-entities |
23 | index 0be7199..d2cce42 100755 | 22 | index 0be7199..d2cce42 100755 |
@@ -46,7 +45,7 @@ index 26eb5c3..2e1932b 100755 | |||
46 | @@ -1,4 +1,4 @@ | 45 | @@ -1,4 +1,4 @@ |
47 | -#!/usr/bin/env python | 46 | -#!/usr/bin/env python |
48 | +#!/usr/bin/env python3 | 47 | +#!/usr/bin/env python3 |
49 | # Copyright (c) 2016 Red Hat, Inc. | 48 | # Copyright (c) 2016, 2017 Red Hat, Inc. |
50 | # | 49 | # |
51 | # Licensed under the Apache License, Version 2.0 (the "License"); | 50 | # Licensed under the Apache License, Version 2.0 (the "License"); |
52 | diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py | 51 | diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py |
@@ -69,16 +68,6 @@ index 4bf240f..2a8f13e 100755 | |||
69 | # Copyright (c) 2013, 2014, 2015 Nicira, Inc. | 68 | # Copyright (c) 2013, 2014, 2015 Nicira, Inc. |
70 | # | 69 | # |
71 | # Licensed under the Apache License, Version 2.0 (the "License"); | 70 | # Licensed under the Apache License, Version 2.0 (the "License"); |
72 | diff --git a/vtep/ovs-vtep b/vtep/ovs-vtep | ||
73 | index fd652d4..19d63f9 100755 | ||
74 | --- a/vtep/ovs-vtep | ||
75 | +++ b/vtep/ovs-vtep | ||
76 | @@ -1,4 +1,4 @@ | ||
77 | -#! /usr/bin/env python | ||
78 | +#! /usr/bin/env python3 | ||
79 | # Copyright (C) 2013 Nicira, Inc. All Rights Reserved. | ||
80 | # | ||
81 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
82 | diff --git a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update | 71 | diff --git a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update |
83 | index e7404e3..5edad76 100755 | 72 | index e7404e3..5edad76 100755 |
84 | --- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update | 73 | --- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update |