summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch')
-rw-r--r--recipes-networking/openvswitch/files/python-make-remaining-scripts-use-usr-bin-env.patch298
1 files changed, 260 insertions, 38 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 @@
1From f21a0490555d5fe8f5a9ce982defa666a64151c0 Mon Sep 17 00:00:00 2001 1From a0a2d829642e916bd5d1c498a3e6f3641ed717a0 Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com> 2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Fri, 13 Jan 2017 16:12:55 -0500 3Date: Fri, 13 Jan 2017 16:12:55 -0500
4Subject: [PATCH] python: make remaining scripts use /usr/bin/env 4Subject: [PATCH] python: make remaining scripts use /usr/bin/env
@@ -12,24 +12,43 @@ PYTHON. To make this function smoothly all installed scripts should
12make use of /usr/bin/env to increase the chances of finding python. 12make use of /usr/bin/env to increase the chances of finding python.
13 13
14Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> 14Signed-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
31diff --git a/build-aux/check-structs b/build-aux/check-structs 50diff --git a/build-aux/check-structs b/build-aux/check-structs
32index f79f235..5129b72 100755 51index 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
60diff --git a/build-aux/dpdkstrip.py b/build-aux/dpdkstrip.py
61index 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");
41diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions 70diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions
42index 0062ab8..ee8c4ff 100755 71index 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
51diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors 80diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors
52index 2312b76..e36444e 100755 81index 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
61diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields 90diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields
62index 498b887..c248e76 100755 91index 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
71diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs 100diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs
72index 1813638..c2a91f9 100755 101index 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
110diff --git a/build-aux/sodepends.py b/build-aux/sodepends.py
111index 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 #
120diff --git a/build-aux/soexpand.py b/build-aux/soexpand.py
121index 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 #
130diff --git a/build-aux/text2c b/build-aux/text2c
131index 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
81diff --git a/build-aux/xml2nroff b/build-aux/xml2nroff 140diff --git a/build-aux/xml2nroff b/build-aux/xml2nroff
82index bd4e879..db45c56 100755 141index 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 #
91diff --git a/ovn/utilities/ovn-docker-overlay-driver b/ovn/utilities/ovn-docker-overlay-driver 150diff --git a/ovn/utilities/ovn-detrace.in b/ovn/utilities/ovn-detrace.in
92index 52de3db..3b1fa45 100755 151index 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 #
160diff --git a/ovn/utilities/ovn-docker-overlay-driver.in b/ovn/utilities/ovn-docker-overlay-driver.in
161index 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");
101diff --git a/ovn/utilities/ovn-docker-underlay-driver b/ovn/utilities/ovn-docker-underlay-driver 170diff --git a/ovn/utilities/ovn-docker-underlay-driver.in b/ovn/utilities/ovn-docker-underlay-driver.in
102index 2c9c4b6..551e7a1 100755 171index 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");
180diff --git a/ovsdb/dot2pic b/ovsdb/dot2pic
181index 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 #
111diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc 190diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc
112index 5cf26ee..bdf2dcc 100755 191index 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 #
121diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in 200diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in
122index 134ce22..893c408 100755 201index 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
131diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in 210diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
132index 721ab50..bfbcf23 100755 211index 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 220diff --git a/python/build/soutil.py b/python/build/soutil.py
221index 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 #
230diff --git a/tests/flowgen.py b/tests/flowgen.py
231index 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 #
240diff --git a/tests/ovsdb-monitor-sort.py b/tests/ovsdb-monitor-sort.py
241index 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
250diff --git a/tests/uuidfilt.py b/tests/uuidfilt.py
251index 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
141diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in 260diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
142index 963c50c..c84d7c2 100755 261index 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
270diff --git a/utilities/ovs-check-dead-ifs.in b/utilities/ovs-check-dead-ifs.in
271index 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
280diff --git a/utilities/ovs-dpctl-top.in b/utilities/ovs-dpctl-top.in
281index 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 #
290diff --git a/utilities/ovs-l3ping.in b/utilities/ovs-l3ping.in
291index 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.
300diff --git a/utilities/ovs-parse-backtrace.in b/utilities/ovs-parse-backtrace.in
301index 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 #
310diff --git a/utilities/ovs-pcap.in b/utilities/ovs-pcap.in
311index 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 #
320diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in
321index 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 #
330diff --git a/utilities/ovs-tcpundump.in b/utilities/ovs-tcpundump.in
331index 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 #
340diff --git a/utilities/ovs-test.in b/utilities/ovs-test.in
341index 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.
350diff --git a/utilities/ovs-vlan-test.in b/utilities/ovs-vlan-test.in
351index 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 #
360diff --git a/vtep/ovs-vtep.in b/vtep/ovs-vtep.in
361index 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--
3712.7.4
372