summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/ofono
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-06-02 12:25:47 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:26 +0100
commit0bde4b9f0483d05f64862a151ff814570c0efbd2 (patch)
tree7ea2c67f9f4990ddd5aa22644606dabf007f228e /meta/recipes-connectivity/ofono
parent5a3a4a7fbb1b2140a739f0282ff5740750b7185e (diff)
downloadpoky-0bde4b9f0483d05f64862a151ff814570c0efbd2.tar.gz
ofono: drop the custom-made revert to Python 2 from Python 3
(From OE-Core rev: 5645bd904b41fb765a03c4246ce6bcc3cda28f9d) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/ofono')
-rw-r--r--meta/recipes-connectivity/ofono/ofono.inc6
-rw-r--r--meta/recipes-connectivity/ofono/ofono/Revert-test-Convert-to-Python-3.patch1270
-rw-r--r--meta/recipes-connectivity/ofono/ofono_1.17.bb1
3 files changed, 5 insertions, 1272 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc
index c415a39981..72bbcacbd5 100644
--- a/meta/recipes-connectivity/ofono/ofono.inc
+++ b/meta/recipes-connectivity/ofono/ofono.inc
@@ -26,6 +26,10 @@ SYSTEMD_SERVICE_${PN} = "ofono.service"
26do_install_append() { 26do_install_append() {
27 install -d ${D}${sysconfdir}/init.d/ 27 install -d ${D}${sysconfdir}/init.d/
28 install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono 28 install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
29
30 # Ofono still has one test tool that refers to Python 2 in the shebang
31 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/ofono/test/set-ddr
32
29} 33}
30 34
31PACKAGES =+ "${PN}-tests" 35PACKAGES =+ "${PN}-tests"
@@ -34,4 +38,4 @@ RDEPENDS_${PN} += "dbus"
34 38
35FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" 39FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}"
36FILES_${PN}-tests = "${libdir}/${BPN}/test" 40FILES_${PN}-tests = "${libdir}/${BPN}/test"
37RDEPENDS_${PN}-tests = "python python-pygobject python-dbus" 41RDEPENDS_${PN}-tests = "python3 python3-pygobject python3-dbus"
diff --git a/meta/recipes-connectivity/ofono/ofono/Revert-test-Convert-to-Python-3.patch b/meta/recipes-connectivity/ofono/ofono/Revert-test-Convert-to-Python-3.patch
deleted file mode 100644
index 5f8ca77101..0000000000
--- a/meta/recipes-connectivity/ofono/ofono/Revert-test-Convert-to-Python-3.patch
+++ /dev/null
@@ -1,1270 +0,0 @@
1Upstream-Status: Inappropriate [configuration]
2
3From 572fc23f6efd65a2ef9e6c957b2506108738672b Mon Sep 17 00:00:00 2001
4From: Cristian Iorga <cristian.iorga@intel.com>
5Date: Mon, 25 Aug 2014 16:59:39 +0300
6Subject: [PATCH] Revert "test: Convert to Python 3"
7
8This reverts commit c027ab9fbc1a8e8c9e76bcd123df1ad7696307c2.
9---
10 test/activate-context | 2 +-
11 test/answer-calls | 2 +-
12 test/backtrace | 2 +-
13 test/cancel-ussd | 2 +-
14 test/cdma-connman-disable | 2 +-
15 test/cdma-connman-enable | 2 +-
16 test/cdma-dial-number | 2 +-
17 test/cdma-hangup | 2 +-
18 test/cdma-list-call | 2 +-
19 test/cdma-set-credentials | 2 +-
20 test/change-pin | 2 +-
21 test/create-internet-context | 2 +-
22 test/create-mms-context | 2 +-
23 test/create-multiparty | 2 +-
24 test/deactivate-all | 2 +-
25 test/deactivate-context | 2 +-
26 test/dial-number | 2 +-
27 test/disable-call-forwarding | 2 +-
28 test/disable-gprs | 2 +-
29 test/disable-modem | 2 +-
30 test/display-icon | 2 +-
31 test/enable-cbs | 2 +-
32 test/enable-gprs | 2 +-
33 test/enable-modem | 2 +-
34 test/enter-pin | 2 +-
35 test/get-icon | 2 +-
36 test/get-operators | 2 +-
37 test/get-tech-preference | 2 +-
38 test/hangup-active | 2 +-
39 test/hangup-all | 2 +-
40 test/hangup-call | 2 +-
41 test/hangup-multiparty | 2 +-
42 test/hold-and-answer | 2 +-
43 test/initiate-ussd | 4 ++--
44 test/list-calls | 2 +-
45 test/list-contexts | 2 +-
46 test/list-messages | 2 +-
47 test/list-modems | 2 +-
48 test/list-operators | 2 +-
49 test/lock-pin | 2 +-
50 test/lockdown-modem | 2 +-
51 test/monitor-ofono | 4 ++--
52 test/offline-modem | 2 +-
53 test/online-modem | 2 +-
54 test/private-chat | 2 +-
55 test/process-context-settings | 2 +-
56 test/receive-sms | 2 +-
57 test/reject-calls | 2 +-
58 test/release-and-answer | 2 +-
59 test/release-and-swap | 2 +-
60 test/remove-contexts | 2 +-
61 test/reset-pin | 2 +-
62 test/scan-for-operators | 2 +-
63 test/send-sms | 2 +-
64 test/send-ussd | 4 ++--
65 test/send-vcal | 2 +-
66 test/send-vcard | 2 +-
67 test/set-call-forwarding | 2 +-
68 test/set-cbs-topics | 2 +-
69 test/set-context-property | 2 +-
70 test/set-fast-dormancy | 2 +-
71 test/set-gsm-band | 2 +-
72 test/set-mic-volume | 2 +-
73 test/set-mms-details | 2 +-
74 test/set-msisdn | 2 +-
75 test/set-roaming-allowed | 2 +-
76 test/set-speaker-volume | 2 +-
77 test/set-tech-preference | 2 +-
78 test/set-tty | 2 +-
79 test/set-umts-band | 2 +-
80 test/set-use-sms-reports | 2 +-
81 test/swap-calls | 2 +-
82 test/test-advice-of-charge | 2 +-
83 test/test-call-barring | 2 +-
84 test/test-call-forwarding | 2 +-
85 test/test-call-settings | 2 +-
86 test/test-cbs | 4 ++--
87 test/test-gnss | 4 ++--
88 test/test-message-waiting | 2 +-
89 test/test-modem | 2 +-
90 test/test-network-registration | 2 +-
91 test/test-phonebook | 2 +-
92 test/test-push-notification | 2 +-
93 test/test-smart-messaging | 2 +-
94 test/test-sms | 18 +++++++++---------
95 test/test-ss | 2 +-
96 test/test-ss-control-cb | 2 +-
97 test/test-ss-control-cf | 2 +-
98 test/test-ss-control-cs | 2 +-
99 test/test-stk-menu | 34 +++++++++++++++++-----------------
100 test/unlock-pin | 2 +-
101 94 files changed, 124 insertions(+), 124 deletions(-)
102
103diff --git a/test/activate-context b/test/activate-context
104index e4fc702..4241396 100755
105--- a/test/activate-context
106+++ b/test/activate-context
107@@ -1,4 +1,4 @@
108-#!/usr/bin/python3
109+#!/usr/bin/python
110
111 import sys
112 import dbus
113diff --git a/test/answer-calls b/test/answer-calls
114index daa794b..45ff08f 100755
115--- a/test/answer-calls
116+++ b/test/answer-calls
117@@ -1,4 +1,4 @@
118-#!/usr/bin/python3
119+#!/usr/bin/python
120
121 import dbus
122
123diff --git a/test/backtrace b/test/backtrace
124index 03c7632..c624709 100755
125--- a/test/backtrace
126+++ b/test/backtrace
127@@ -1,4 +1,4 @@
128-#!/usr/bin/python3
129+#!/usr/bin/python
130
131 import os
132 import re
133diff --git a/test/cancel-ussd b/test/cancel-ussd
134index e7559ba..1797f26 100755
135--- a/test/cancel-ussd
136+++ b/test/cancel-ussd
137@@ -1,4 +1,4 @@
138-#!/usr/bin/python3
139+#!/usr/bin/python
140
141 import sys
142 import dbus
143diff --git a/test/cdma-connman-disable b/test/cdma-connman-disable
144index 3adc14d..0ddc0cd 100755
145--- a/test/cdma-connman-disable
146+++ b/test/cdma-connman-disable
147@@ -1,4 +1,4 @@
148-#!/usr/bin/python3
149+#!/usr/bin/python
150
151 import dbus
152 import sys
153diff --git a/test/cdma-connman-enable b/test/cdma-connman-enable
154index ac16a2d..a3cca01 100755
155--- a/test/cdma-connman-enable
156+++ b/test/cdma-connman-enable
157@@ -1,4 +1,4 @@
158-#!/usr/bin/python3
159+#!/usr/bin/python
160
161 import dbus
162 import sys
163diff --git a/test/cdma-dial-number b/test/cdma-dial-number
164index 683431e..9cdfb24 100755
165--- a/test/cdma-dial-number
166+++ b/test/cdma-dial-number
167@@ -1,4 +1,4 @@
168-#!/usr/bin/python3
169+#!/usr/bin/python
170
171 import sys
172 import dbus
173diff --git a/test/cdma-hangup b/test/cdma-hangup
174index 41ffa60..493ece4 100755
175--- a/test/cdma-hangup
176+++ b/test/cdma-hangup
177@@ -1,4 +1,4 @@
178-#!/usr/bin/python3
179+#!/usr/bin/python
180
181 import sys
182 import dbus
183diff --git a/test/cdma-list-call b/test/cdma-list-call
184index b132353..5d36a69 100755
185--- a/test/cdma-list-call
186+++ b/test/cdma-list-call
187@@ -1,4 +1,4 @@
188-#!/usr/bin/python3
189+#!/usr/bin/python
190
191 import dbus
192
193diff --git a/test/cdma-set-credentials b/test/cdma-set-credentials
194index a60c86e..a286b0e 100755
195--- a/test/cdma-set-credentials
196+++ b/test/cdma-set-credentials
197@@ -1,4 +1,4 @@
198-#!/usr/bin/python3
199+#!/usr/bin/python
200
201 import dbus
202 import sys
203diff --git a/test/change-pin b/test/change-pin
204index 301c6ce..000ce53 100755
205--- a/test/change-pin
206+++ b/test/change-pin
207@@ -1,4 +1,4 @@
208-#!/usr/bin/python3
209+#!/usr/bin/python
210
211 import dbus
212 import sys
213diff --git a/test/create-internet-context b/test/create-internet-context
214index 1089053..efd0998 100755
215--- a/test/create-internet-context
216+++ b/test/create-internet-context
217@@ -1,4 +1,4 @@
218-#!/usr/bin/python3
219+#!/usr/bin/python
220
221 import sys
222 import dbus
223diff --git a/test/create-mms-context b/test/create-mms-context
224index 598336f..e5be08d 100755
225--- a/test/create-mms-context
226+++ b/test/create-mms-context
227@@ -1,4 +1,4 @@
228-#!/usr/bin/python3
229+#!/usr/bin/python
230
231 import sys
232 import dbus
233diff --git a/test/create-multiparty b/test/create-multiparty
234index 1b76010..97047c3 100755
235--- a/test/create-multiparty
236+++ b/test/create-multiparty
237@@ -1,4 +1,4 @@
238-#!/usr/bin/python3
239+#!/usr/bin/python
240
241 import sys
242 import dbus
243diff --git a/test/deactivate-all b/test/deactivate-all
244index 5aa8587..427009e 100755
245--- a/test/deactivate-all
246+++ b/test/deactivate-all
247@@ -1,4 +1,4 @@
248-#!/usr/bin/python3
249+#!/usr/bin/python
250
251 import sys
252 import dbus
253diff --git a/test/deactivate-context b/test/deactivate-context
254index 5c86a71..df47d2e 100755
255--- a/test/deactivate-context
256+++ b/test/deactivate-context
257@@ -1,4 +1,4 @@
258-#!/usr/bin/python3
259+#!/usr/bin/python
260
261 import sys
262 import dbus
263diff --git a/test/dial-number b/test/dial-number
264index fe5adad..ee674d9 100755
265--- a/test/dial-number
266+++ b/test/dial-number
267@@ -1,4 +1,4 @@
268-#!/usr/bin/python3
269+#!/usr/bin/python
270
271 import sys
272 import dbus
273diff --git a/test/disable-call-forwarding b/test/disable-call-forwarding
274index 811e4fa..3609816 100755
275--- a/test/disable-call-forwarding
276+++ b/test/disable-call-forwarding
277@@ -1,4 +1,4 @@
278-#!/usr/bin/python3
279+#!/usr/bin/python
280
281 import sys
282 from gi.repository import GLib
283diff --git a/test/disable-gprs b/test/disable-gprs
284index 61ce216..c6c40a5 100755
285--- a/test/disable-gprs
286+++ b/test/disable-gprs
287@@ -1,4 +1,4 @@
288-#!/usr/bin/python3
289+#!/usr/bin/python
290
291 import dbus
292 import sys
293diff --git a/test/disable-modem b/test/disable-modem
294index 6fba857..ca8c8d8 100755
295--- a/test/disable-modem
296+++ b/test/disable-modem
297@@ -1,4 +1,4 @@
298-#!/usr/bin/python3
299+#!/usr/bin/python
300
301 import dbus
302 import sys
303diff --git a/test/display-icon b/test/display-icon
304index ac40818..753d14d 100755
305--- a/test/display-icon
306+++ b/test/display-icon
307@@ -1,4 +1,4 @@
308-#!/usr/bin/python3
309+#!/usr/bin/python
310
311 import sys
312 import dbus
313diff --git a/test/enable-cbs b/test/enable-cbs
314index 4a8bf66..c08bf2b 100755
315--- a/test/enable-cbs
316+++ b/test/enable-cbs
317@@ -1,4 +1,4 @@
318-#!/usr/bin/python3
319+#!/usr/bin/python
320
321 import dbus
322 import sys
323diff --git a/test/enable-gprs b/test/enable-gprs
324index 68d5ef0..8664891 100755
325--- a/test/enable-gprs
326+++ b/test/enable-gprs
327@@ -1,4 +1,4 @@
328-#!/usr/bin/python3
329+#!/usr/bin/python
330
331 import dbus
332 import sys
333diff --git a/test/enable-modem b/test/enable-modem
334index fc5958a..dfaaaa8 100755
335--- a/test/enable-modem
336+++ b/test/enable-modem
337@@ -1,4 +1,4 @@
338-#!/usr/bin/python3
339+#!/usr/bin/python
340
341 import dbus
342 import sys
343diff --git a/test/enter-pin b/test/enter-pin
344index 9556363..c6ee669 100755
345--- a/test/enter-pin
346+++ b/test/enter-pin
347@@ -1,4 +1,4 @@
348-#!/usr/bin/python3
349+#!/usr/bin/python
350
351 import dbus
352 import sys
353diff --git a/test/get-icon b/test/get-icon
354index 5569a33..fdaaee7 100755
355--- a/test/get-icon
356+++ b/test/get-icon
357@@ -1,4 +1,4 @@
358-#!/usr/bin/python3
359+#!/usr/bin/python
360
361 import dbus
362 import sys
363diff --git a/test/get-operators b/test/get-operators
364index 0f35c80..62354c5 100755
365--- a/test/get-operators
366+++ b/test/get-operators
367@@ -1,4 +1,4 @@
368-#!/usr/bin/python3
369+#!/usr/bin/python
370
371 import dbus
372 import sys
373diff --git a/test/get-tech-preference b/test/get-tech-preference
374index 7ba6365..77d20d0 100755
375--- a/test/get-tech-preference
376+++ b/test/get-tech-preference
377@@ -1,4 +1,4 @@
378-#!/usr/bin/python3
379+#!/usr/bin/python
380
381 import dbus, sys
382
383diff --git a/test/hangup-active b/test/hangup-active
384index 82e0eb0..5af62ab 100755
385--- a/test/hangup-active
386+++ b/test/hangup-active
387@@ -1,4 +1,4 @@
388-#!/usr/bin/python3
389+#!/usr/bin/python
390
391 import sys
392 import dbus
393diff --git a/test/hangup-all b/test/hangup-all
394index 3a0138d..32933db 100755
395--- a/test/hangup-all
396+++ b/test/hangup-all
397@@ -1,4 +1,4 @@
398-#!/usr/bin/python3
399+#!/usr/bin/python
400
401 import sys
402 import dbus
403diff --git a/test/hangup-call b/test/hangup-call
404index 5a2de20..447020c 100755
405--- a/test/hangup-call
406+++ b/test/hangup-call
407@@ -1,4 +1,4 @@
408-#!/usr/bin/python3
409+#!/usr/bin/python
410
411 import sys
412 import dbus
413diff --git a/test/hangup-multiparty b/test/hangup-multiparty
414index 24751c3..48fe342 100755
415--- a/test/hangup-multiparty
416+++ b/test/hangup-multiparty
417@@ -1,4 +1,4 @@
418-#!/usr/bin/python3
419+#!/usr/bin/python
420
421 import sys
422 import dbus
423diff --git a/test/hold-and-answer b/test/hold-and-answer
424index da3be57..2c47e27 100755
425--- a/test/hold-and-answer
426+++ b/test/hold-and-answer
427@@ -1,4 +1,4 @@
428-#!/usr/bin/python3
429+#!/usr/bin/python
430
431 import sys
432 import dbus
433diff --git a/test/initiate-ussd b/test/initiate-ussd
434index faf50d0..d7022f1 100755
435--- a/test/initiate-ussd
436+++ b/test/initiate-ussd
437@@ -1,4 +1,4 @@
438-#!/usr/bin/python3
439+#!/usr/bin/python
440
441 import sys
442 import dbus
443@@ -45,7 +45,7 @@ if state == "idle":
444 print("State: %s" % (state))
445
446 while state == "user-response":
447- response = input("Enter response: ")
448+ response = raw_input("Enter response: ")
449
450 result = ussd.Respond(response, timeout=100)
451
452diff --git a/test/list-calls b/test/list-calls
453index f3ee991..08668c6 100755
454--- a/test/list-calls
455+++ b/test/list-calls
456@@ -1,4 +1,4 @@
457-#!/usr/bin/python3
458+#!/usr/bin/python
459
460 import dbus
461
462diff --git a/test/list-contexts b/test/list-contexts
463index 78278ca..f0d4094 100755
464--- a/test/list-contexts
465+++ b/test/list-contexts
466@@ -1,4 +1,4 @@
467-#!/usr/bin/python3
468+#!/usr/bin/python
469
470 import dbus
471
472diff --git a/test/list-messages b/test/list-messages
473index 9f5bce3..cfccbea 100755
474--- a/test/list-messages
475+++ b/test/list-messages
476@@ -1,4 +1,4 @@
477-#!/usr/bin/python3
478+#!/usr/bin/python
479
480 import dbus
481
482diff --git a/test/list-modems b/test/list-modems
483index b9f510a..ed66124 100755
484--- a/test/list-modems
485+++ b/test/list-modems
486@@ -1,4 +1,4 @@
487-#!/usr/bin/python3
488+#!/usr/bin/python
489
490 import dbus
491
492diff --git a/test/list-operators b/test/list-operators
493index 064c4e3..349bf41 100755
494--- a/test/list-operators
495+++ b/test/list-operators
496@@ -1,4 +1,4 @@
497-#!/usr/bin/python3
498+#!/usr/bin/python
499
500 import dbus
501 import sys
502diff --git a/test/lock-pin b/test/lock-pin
503index 96ea9c2..5579735 100755
504--- a/test/lock-pin
505+++ b/test/lock-pin
506@@ -1,4 +1,4 @@
507-#!/usr/bin/python3
508+#!/usr/bin/python
509
510 import dbus
511 import sys
512diff --git a/test/lockdown-modem b/test/lockdown-modem
513index 4e04205..781abb6 100755
514--- a/test/lockdown-modem
515+++ b/test/lockdown-modem
516@@ -1,4 +1,4 @@
517-#!/usr/bin/python3
518+#!/usr/bin/python
519
520 import dbus
521 import sys
522diff --git a/test/monitor-ofono b/test/monitor-ofono
523index 8830757..bd31617 100755
524--- a/test/monitor-ofono
525+++ b/test/monitor-ofono
526@@ -1,4 +1,4 @@
527-#!/usr/bin/python3
528+#!/usr/bin/python
529
530 from gi.repository import GLib
531
532@@ -6,7 +6,7 @@ import dbus
533 import dbus.mainloop.glib
534
535 _dbus2py = {
536- dbus.String : str,
537+ dbus.String : unicode,
538 dbus.UInt32 : int,
539 dbus.Int32 : int,
540 dbus.Int16 : int,
541diff --git a/test/offline-modem b/test/offline-modem
542index e8c043a..ea1f522 100755
543--- a/test/offline-modem
544+++ b/test/offline-modem
545@@ -1,4 +1,4 @@
546-#!/usr/bin/python3
547+#!/usr/bin/python
548
549 import dbus, sys
550
551diff --git a/test/online-modem b/test/online-modem
552index 029c4a5..310ed7d 100755
553--- a/test/online-modem
554+++ b/test/online-modem
555@@ -1,4 +1,4 @@
556-#!/usr/bin/python3
557+#!/usr/bin/python
558
559 import dbus, sys
560
561diff --git a/test/private-chat b/test/private-chat
562index e7e5406..ef2ef6c 100755
563--- a/test/private-chat
564+++ b/test/private-chat
565@@ -1,4 +1,4 @@
566-#!/usr/bin/python3
567+#!/usr/bin/python
568
569 import sys
570 import dbus
571diff --git a/test/process-context-settings b/test/process-context-settings
572index 8a3ecfa..0f058b2 100755
573--- a/test/process-context-settings
574+++ b/test/process-context-settings
575@@ -1,4 +1,4 @@
576-#!/usr/bin/python3
577+#!/usr/bin/python
578
579 import os
580 import dbus
581diff --git a/test/receive-sms b/test/receive-sms
582index a0c6915..c23eb14 100755
583--- a/test/receive-sms
584+++ b/test/receive-sms
585@@ -1,4 +1,4 @@
586-#!/usr/bin/python3
587+#!/usr/bin/python
588
589 from gi.repository import GLib
590
591diff --git a/test/reject-calls b/test/reject-calls
592index 71b243e..9edf1ff 100755
593--- a/test/reject-calls
594+++ b/test/reject-calls
595@@ -1,4 +1,4 @@
596-#!/usr/bin/python3
597+#!/usr/bin/python
598
599 import dbus
600
601diff --git a/test/release-and-answer b/test/release-and-answer
602index dec8e17..25fd818 100755
603--- a/test/release-and-answer
604+++ b/test/release-and-answer
605@@ -1,4 +1,4 @@
606-#!/usr/bin/python3
607+#!/usr/bin/python
608
609 import sys
610 import dbus
611diff --git a/test/release-and-swap b/test/release-and-swap
612index cb8c84e..7b3569f 100755
613--- a/test/release-and-swap
614+++ b/test/release-and-swap
615@@ -1,4 +1,4 @@
616-#!/usr/bin/python3
617+#!/usr/bin/python
618
619 import sys
620 import dbus
621diff --git a/test/remove-contexts b/test/remove-contexts
622index b54184e..c5082cb 100755
623--- a/test/remove-contexts
624+++ b/test/remove-contexts
625@@ -1,4 +1,4 @@
626-#!/usr/bin/python3
627+#!/usr/bin/python
628
629 import dbus
630
631diff --git a/test/reset-pin b/test/reset-pin
632index 3fbd126..b429254 100755
633--- a/test/reset-pin
634+++ b/test/reset-pin
635@@ -1,4 +1,4 @@
636-#!/usr/bin/python3
637+#!/usr/bin/python
638
639 import dbus
640 import sys
641diff --git a/test/scan-for-operators b/test/scan-for-operators
642index b4fc05e..749c710 100755
643--- a/test/scan-for-operators
644+++ b/test/scan-for-operators
645@@ -1,4 +1,4 @@
646-#!/usr/bin/python3
647+#!/usr/bin/python
648
649 import dbus
650 import sys
651diff --git a/test/send-sms b/test/send-sms
652index 98808aa..e06444d 100755
653--- a/test/send-sms
654+++ b/test/send-sms
655@@ -1,4 +1,4 @@
656-#!/usr/bin/python3
657+#!/usr/bin/python
658
659 import sys
660 import dbus
661diff --git a/test/send-ussd b/test/send-ussd
662index a20e098..e585883 100755
663--- a/test/send-ussd
664+++ b/test/send-ussd
665@@ -1,4 +1,4 @@
666-#!/usr/bin/python3
667+#!/usr/bin/python
668
669 import sys
670 import dbus
671@@ -46,7 +46,7 @@ if state == "idle":
672 print("State: %s" % (state))
673
674 while state == "user-response":
675- response = input("Enter response: ")
676+ response = raw_input("Enter response: ")
677
678 print(ussd.Respond(response, timeout=100))
679
680diff --git a/test/send-vcal b/test/send-vcal
681index 566daef..7f8272b 100755
682--- a/test/send-vcal
683+++ b/test/send-vcal
684@@ -1,4 +1,4 @@
685-#!/usr/bin/python3
686+#!/usr/bin/python
687
688 import sys
689 import dbus
690diff --git a/test/send-vcard b/test/send-vcard
691index 4dedf51..250b36f 100755
692--- a/test/send-vcard
693+++ b/test/send-vcard
694@@ -1,4 +1,4 @@
695-#!/usr/bin/python3
696+#!/usr/bin/python
697
698 import sys
699 import dbus
700diff --git a/test/set-call-forwarding b/test/set-call-forwarding
701index 49d1ce0..9fd358b 100755
702--- a/test/set-call-forwarding
703+++ b/test/set-call-forwarding
704@@ -1,4 +1,4 @@
705-#!/usr/bin/python3
706+#!/usr/bin/python
707
708 import sys
709 from gi.repository import GLib
710diff --git a/test/set-cbs-topics b/test/set-cbs-topics
711index db95e16..78d6d44 100755
712--- a/test/set-cbs-topics
713+++ b/test/set-cbs-topics
714@@ -1,4 +1,4 @@
715-#!/usr/bin/python3
716+#!/usr/bin/python
717
718 import dbus
719 import sys
720diff --git a/test/set-context-property b/test/set-context-property
721index 5ff7a67..64a6fb8 100755
722--- a/test/set-context-property
723+++ b/test/set-context-property
724@@ -1,4 +1,4 @@
725-#!/usr/bin/python3
726+#!/usr/bin/python
727
728 import sys
729 import dbus
730diff --git a/test/set-fast-dormancy b/test/set-fast-dormancy
731index ef77bcd..7bf7715 100755
732--- a/test/set-fast-dormancy
733+++ b/test/set-fast-dormancy
734@@ -1,4 +1,4 @@
735-#!/usr/bin/python3
736+#!/usr/bin/python
737
738 import dbus
739 import sys
740diff --git a/test/set-gsm-band b/test/set-gsm-band
741index b37bcb5..3c17c10 100755
742--- a/test/set-gsm-band
743+++ b/test/set-gsm-band
744@@ -1,4 +1,4 @@
745-#!/usr/bin/python3
746+#!/usr/bin/python
747
748 import dbus
749 import sys
750diff --git a/test/set-mic-volume b/test/set-mic-volume
751index cd6c73f..e0bff49 100755
752--- a/test/set-mic-volume
753+++ b/test/set-mic-volume
754@@ -1,4 +1,4 @@
755-#!/usr/bin/python3
756+#!/usr/bin/python
757
758 import sys
759 import dbus
760diff --git a/test/set-mms-details b/test/set-mms-details
761index 6ee59fa..d2d0838 100755
762--- a/test/set-mms-details
763+++ b/test/set-mms-details
764@@ -1,4 +1,4 @@
765-#!/usr/bin/python3
766+#!/usr/bin/python
767
768 import sys
769 import dbus
770diff --git a/test/set-msisdn b/test/set-msisdn
771index b5fe819..01f284d 100755
772--- a/test/set-msisdn
773+++ b/test/set-msisdn
774@@ -1,4 +1,4 @@
775-#!/usr/bin/python3
776+#!/usr/bin/python
777
778 import dbus
779 import sys
780diff --git a/test/set-roaming-allowed b/test/set-roaming-allowed
781index 698c8b6..9e3e058 100755
782--- a/test/set-roaming-allowed
783+++ b/test/set-roaming-allowed
784@@ -1,4 +1,4 @@
785-#!/usr/bin/python3
786+#!/usr/bin/python
787
788 import sys
789 import dbus
790diff --git a/test/set-speaker-volume b/test/set-speaker-volume
791index 6d4e301..7962f39 100755
792--- a/test/set-speaker-volume
793+++ b/test/set-speaker-volume
794@@ -1,4 +1,4 @@
795-#!/usr/bin/python3
796+#!/usr/bin/python
797
798 import sys
799 import dbus
800diff --git a/test/set-tech-preference b/test/set-tech-preference
801index b549abc..2666cbd 100755
802--- a/test/set-tech-preference
803+++ b/test/set-tech-preference
804@@ -1,4 +1,4 @@
805-#!/usr/bin/python3
806+#!/usr/bin/python
807
808 import dbus
809 import sys
810diff --git a/test/set-tty b/test/set-tty
811index eed1fba..53d6b99 100755
812--- a/test/set-tty
813+++ b/test/set-tty
814@@ -1,4 +1,4 @@
815-#!/usr/bin/python3
816+#!/usr/bin/python
817
818 import dbus
819 import sys
820diff --git a/test/set-umts-band b/test/set-umts-band
821index 0bae5c4..c1e6448 100755
822--- a/test/set-umts-band
823+++ b/test/set-umts-band
824@@ -1,4 +1,4 @@
825-#!/usr/bin/python3
826+#!/usr/bin/python
827
828 import dbus
829 import sys
830diff --git a/test/set-use-sms-reports b/test/set-use-sms-reports
831index 288d4e1..a4efe4f 100755
832--- a/test/set-use-sms-reports
833+++ b/test/set-use-sms-reports
834@@ -1,4 +1,4 @@
835-#!/usr/bin/python3
836+#!/usr/bin/python
837
838 import dbus
839 import sys
840diff --git a/test/swap-calls b/test/swap-calls
841index 018a8d3..eeb257b 100755
842--- a/test/swap-calls
843+++ b/test/swap-calls
844@@ -1,4 +1,4 @@
845-#!/usr/bin/python3
846+#!/usr/bin/python
847
848 import sys
849 import dbus
850diff --git a/test/test-advice-of-charge b/test/test-advice-of-charge
851index 6e87e61..0f1f57f 100755
852--- a/test/test-advice-of-charge
853+++ b/test/test-advice-of-charge
854@@ -1,4 +1,4 @@
855-#!/usr/bin/python3
856+#!/usr/bin/python
857
858 from gi.repository import GLib
859 import sys
860diff --git a/test/test-call-barring b/test/test-call-barring
861index eedb69f..be4ab57 100755
862--- a/test/test-call-barring
863+++ b/test/test-call-barring
864@@ -1,4 +1,4 @@
865-#!/usr/bin/python3
866+#!/usr/bin/python
867
868 from gi.repository import GLib
869 import sys
870diff --git a/test/test-call-forwarding b/test/test-call-forwarding
871index 5db84d7..01a7294 100755
872--- a/test/test-call-forwarding
873+++ b/test/test-call-forwarding
874@@ -1,4 +1,4 @@
875-#!/usr/bin/python3
876+#!/usr/bin/python
877
878 from gi.repository import GLib
879
880diff --git a/test/test-call-settings b/test/test-call-settings
881index 435594c..5d7ee49 100755
882--- a/test/test-call-settings
883+++ b/test/test-call-settings
884@@ -1,4 +1,4 @@
885-#!/usr/bin/python3
886+#!/usr/bin/python
887
888 from gi.repository import GLib
889
890diff --git a/test/test-cbs b/test/test-cbs
891index a5cec06..13cdd80 100755
892--- a/test/test-cbs
893+++ b/test/test-cbs
894@@ -1,4 +1,4 @@
895-#!/usr/bin/python3
896+#!/usr/bin/python
897
898 import dbus
899 import dbus.mainloop.glib
900@@ -78,7 +78,7 @@ def set_topics(cbs):
901 invalidData = False;
902 index = 0
903
904- topics = input('Enter the topic ID(s) you want to register to: ')
905+ topics = raw_input('Enter the topic ID(s) you want to register to: ')
906
907 while index < len(topics):
908 if topics[index] == ',' or topics[index] == '-':
909diff --git a/test/test-gnss b/test/test-gnss
910index 6ae64db..aa0b160 100755
911--- a/test/test-gnss
912+++ b/test/test-gnss
913@@ -1,4 +1,4 @@
914-#!/usr/bin/python3
915+#!/usr/bin/python
916
917 from gi.repository import GLib
918 import sys
919@@ -40,7 +40,7 @@ def print_menu():
920 def stdin_handler(channel, condition, gnss, path):
921 in_key = os.read(channel.unix_get_fd(), 160).rstrip().decode('UTF-8')
922 if in_key == '0':
923- xml = input('type the element and press enter: ')
924+ xml = raw_input('type the element and press enter: ')
925 try:
926 gnss.SendPositioningElement(dbus.String(xml))
927 print("ok")
928diff --git a/test/test-message-waiting b/test/test-message-waiting
929index 432862e..b93fbf3 100755
930--- a/test/test-message-waiting
931+++ b/test/test-message-waiting
932@@ -1,4 +1,4 @@
933-#!/usr/bin/python3
934+#!/usr/bin/python
935
936 from gi.repository import GLib
937 import sys
938diff --git a/test/test-modem b/test/test-modem
939index aa38b1f..29dbf14 100755
940--- a/test/test-modem
941+++ b/test/test-modem
942@@ -1,4 +1,4 @@
943-#!/usr/bin/python3
944+#!/usr/bin/python
945
946 from gi.repository import GLib
947
948diff --git a/test/test-network-registration b/test/test-network-registration
949index 68b4347..c5ad586 100755
950--- a/test/test-network-registration
951+++ b/test/test-network-registration
952@@ -1,4 +1,4 @@
953-#!/usr/bin/python3
954+#!/usr/bin/python
955
956 from gi.repository import GLib
957 import sys
958diff --git a/test/test-phonebook b/test/test-phonebook
959index 42646d3..116fd4f 100755
960--- a/test/test-phonebook
961+++ b/test/test-phonebook
962@@ -1,4 +1,4 @@
963-#!/usr/bin/python3
964+#!/usr/bin/python
965
966 import dbus, sys
967
968diff --git a/test/test-push-notification b/test/test-push-notification
969index d972ad3..ecc6afb 100755
970--- a/test/test-push-notification
971+++ b/test/test-push-notification
972@@ -1,4 +1,4 @@
973-#!/usr/bin/python3
974+#!/usr/bin/python
975
976 from gi.repository import GLib
977
978diff --git a/test/test-smart-messaging b/test/test-smart-messaging
979index f22efd2..188ac1e 100755
980--- a/test/test-smart-messaging
981+++ b/test/test-smart-messaging
982@@ -1,4 +1,4 @@
983-#!/usr/bin/python3
984+#!/usr/bin/python
985
986 from gi.repository import GLib
987
988diff --git a/test/test-sms b/test/test-sms
989index 30ac651..49935e1 100755
990--- a/test/test-sms
991+++ b/test/test-sms
992@@ -1,4 +1,4 @@
993-#!/usr/bin/python3
994+#!/usr/bin/python
995 # -*- coding: utf-8 -*-
996
997 from gi.repository import GLib
998@@ -132,7 +132,7 @@ def stdin_handler(channel, condition, sms, value, number):
999 lock = "on"
1000 if in_key == '0':
1001 print_send_sms_menu()
1002- sms_type = input('Select SMS type: ')
1003+ sms_type = raw_input('Select SMS type: ')
1004
1005 if sms_type == '1':
1006 message_send(sms, number, value)
1007@@ -150,49 +150,49 @@ def stdin_handler(channel, condition, sms, value, number):
1008
1009 elif in_key == '1':
1010 message_delivery_report(sms, 1)
1011- send_msg = input('Send test message[y/n]?: ')
1012+ send_msg = raw_input('Send test message[y/n]?: ')
1013 if send_msg == 'y':
1014 message_send(sms, number, ("(1)" + value +
1015 ": UseDeliveryReports[TRUE]"))
1016
1017 elif in_key == '2':
1018 message_delivery_report(sms, 0)
1019- send_msg = input('Send test message[y/n]?: ')
1020+ send_msg = raw_input('Send test message[y/n]?: ')
1021 if send_msg == 'y':
1022 message_send(sms, number, ("(2) " + value +
1023 ": UseDeliveryReports[FALSE]"))
1024
1025 elif in_key == '3':
1026 message_service_center_address(sms, SCA)
1027- send_msg = input('Send test message[y/n]?: ')
1028+ send_msg = raw_input('Send test message[y/n]?: ')
1029 if send_msg == 'y':
1030 message_send(sms, number, ("(3) " + value +
1031 ": ServiceCenterAddress"))
1032
1033 elif in_key == '4':
1034 message_bearer(sms, "ps-only")
1035- send_msg = input('Send test message[y/n]?: ')
1036+ send_msg = raw_input('Send test message[y/n]?: ')
1037 if send_msg == 'y':
1038 message_send(sms, number, ("(4) " + value +
1039 ": Bearer[ps-only]"))
1040
1041 elif in_key == '5':
1042 message_bearer(sms, "cs-only")
1043- send_msg = input('Send test message[y/n]?: ')
1044+ send_msg = raw_input('Send test message[y/n]?: ')
1045 if send_msg == 'y':
1046 message_send(sms, number, ("(5) " + value +
1047 ": Bearer[cs-only]"))
1048
1049 elif in_key == '6':
1050 message_bearer(sms, "ps-preferred")
1051- send_msg = input('Send test message[y/n]?: ')
1052+ send_msg = raw_input('Send test message[y/n]?: ')
1053 if send_msg == 'y':
1054 message_send(sms, number, ("(6) " + value +
1055 ": Bearer[ps-preferred]"))
1056
1057 elif in_key == '7':
1058 message_bearer(sms, "cs-preferred")
1059- send_msg = input('Send test message[y/n]?: ')
1060+ send_msg = raw_input('Send test message[y/n]?: ')
1061 if send_msg == 'y':
1062 message_send(sms,number, ("(7) " + value +
1063 ": Bearer[cs-preferred]"))
1064diff --git a/test/test-ss b/test/test-ss
1065index 4cd8732..2c80806 100755
1066--- a/test/test-ss
1067+++ b/test/test-ss
1068@@ -1,4 +1,4 @@
1069-#!/usr/bin/python3
1070+#!/usr/bin/python
1071
1072 import sys
1073 import dbus
1074diff --git a/test/test-ss-control-cb b/test/test-ss-control-cb
1075index ddae6d3..86bac9b 100755
1076--- a/test/test-ss-control-cb
1077+++ b/test/test-ss-control-cb
1078@@ -1,4 +1,4 @@
1079-#!/usr/bin/python3
1080+#!/usr/bin/python
1081
1082 from gi.repository import GLib
1083
1084diff --git a/test/test-ss-control-cf b/test/test-ss-control-cf
1085index 095eb5d..d30bf4f 100755
1086--- a/test/test-ss-control-cf
1087+++ b/test/test-ss-control-cf
1088@@ -1,4 +1,4 @@
1089-#!/usr/bin/python3
1090+#!/usr/bin/python
1091
1092 from gi.repository import GLib
1093
1094diff --git a/test/test-ss-control-cs b/test/test-ss-control-cs
1095index 8180474..e0ed1d1 100755
1096--- a/test/test-ss-control-cs
1097+++ b/test/test-ss-control-cs
1098@@ -1,4 +1,4 @@
1099-#!/usr/bin/python3
1100+#!/usr/bin/python
1101
1102 from gi.repository import GLib
1103
1104diff --git a/test/test-stk-menu b/test/test-stk-menu
1105index 0cf8fa2..ac0a5bd 100755
1106--- a/test/test-stk-menu
1107+++ b/test/test-stk-menu
1108@@ -1,4 +1,4 @@
1109-#!/usr/bin/python3
1110+#!/usr/bin/python
1111
1112 from gi.repository import GLib
1113
1114@@ -58,7 +58,7 @@ class StkAgent(dbus.service.Object):
1115 index += 1
1116
1117 print("\nDefault: %d" % (default))
1118- select = input("Enter Selection (t, b):")
1119+ select = raw_input("Enter Selection (t, b):")
1120
1121 if select == 'b':
1122 raise GoBack("User wishes to go back")
1123@@ -75,7 +75,7 @@ class StkAgent(dbus.service.Object):
1124 print("DisplayText (%s)" % (title))
1125 print("Icon: (%d)" % (int(icon)))
1126 print("Urgent: (%d)" % (urgent))
1127- key = input("Press return to clear ('t' terminates, "
1128+ key = raw_input("Press return to clear ('t' terminates, "
1129 "'b' goes back, 'n' busy, "
1130 "'w' return and wait):")
1131
1132@@ -108,7 +108,7 @@ class StkAgent(dbus.service.Object):
1133 print("Hide typing: (%s)" % (hide_typing))
1134 print("Enter characters, min: %d, max: %d:" % (min_chars,
1135 max_chars))
1136- userin = input("")
1137+ userin = raw_input("")
1138
1139 return userin
1140
1141@@ -122,7 +122,7 @@ class StkAgent(dbus.service.Object):
1142 print("Hide typing: (%s)" % (hide_typing))
1143 print("Enter digits, min: %d, max: %d:" % (min_chars,
1144 max_chars))
1145- userin = input("'t' terminates, 'b' goes back:")
1146+ userin = raw_input("'t' terminates, 'b' goes back:")
1147
1148 if userin == 'b':
1149 raise GoBack("User wishes to go back")
1150@@ -136,7 +136,7 @@ class StkAgent(dbus.service.Object):
1151 def RequestKey(self, title, icon):
1152 print("Title: (%s)" % (title))
1153 print("Icon: (%d)" % (int(icon)))
1154- key = input("Enter Key (t, b):")
1155+ key = raw_input("Enter Key (t, b):")
1156
1157 if key == 'b':
1158 raise GoBack("User wishes to go back")
1159@@ -150,7 +150,7 @@ class StkAgent(dbus.service.Object):
1160 def RequestDigit(self, title, icon):
1161 print("Title: (%s)" % (title))
1162 print("Icon: (%d)" % (int(icon)))
1163- key = input("Enter Digit (t, b):")
1164+ key = raw_input("Enter Digit (t, b):")
1165
1166 if key == 'b':
1167 raise GoBack("User wishes to go back")
1168@@ -164,7 +164,7 @@ class StkAgent(dbus.service.Object):
1169 def RequestQuickDigit(self, title, icon):
1170 print("Title: (%s)" % (title))
1171 print("Icon: (%d)" % (int(icon)))
1172- key = input("Quick digit (0-9, *, #, t, b):")
1173+ key = raw_input("Quick digit (0-9, *, #, t, b):")
1174
1175 if key == 'b':
1176 raise GoBack("User wishes to go back")
1177@@ -178,7 +178,7 @@ class StkAgent(dbus.service.Object):
1178 def RequestConfirmation(self, title, icon):
1179 print("Title: (%s)" % (title))
1180 print("Icon: (%d)" % (int(icon)))
1181- key = input("Enter Confirmation (t, b, y, n):")
1182+ key = raw_input("Enter Confirmation (t, b, y, n):")
1183
1184 if key == 'b':
1185 raise GoBack("User wishes to go back")
1186@@ -194,7 +194,7 @@ class StkAgent(dbus.service.Object):
1187 def ConfirmCallSetup(self, info, icon):
1188 print("Information: (%s)" % (info))
1189 print("Icon: (%d)" % (int(icon)))
1190- key = input("Enter Confirmation (t, y, n):")
1191+ key = raw_input("Enter Confirmation (t, y, n):")
1192
1193 if key == 't':
1194 raise EndSession("User wishes to terminate session")
1195@@ -209,7 +209,7 @@ class StkAgent(dbus.service.Object):
1196 print("Information: (%s)" % (info))
1197 print("Icon: (%d)" % (int(icon)))
1198 print("URL (%s)" % (url))
1199- key = input("Enter Confirmation (y, n):")
1200+ key = raw_input("Enter Confirmation (y, n):")
1201
1202 if key == 'y':
1203 return True
1204@@ -232,7 +232,7 @@ class StkAgent(dbus.service.Object):
1205 signal.alarm(5)
1206
1207 try:
1208- key = input("Press return to end before end of"
1209+ key = raw_input("Press return to end before end of"
1210 " single tone (t):")
1211 signal.alarm(0)
1212
1213@@ -250,7 +250,7 @@ class StkAgent(dbus.service.Object):
1214 print("LoopTone: %s" % (tone))
1215 print("Text: %s" % (text))
1216 print("Icon: %d" % (int(icon)))
1217- key = input("Press return to end before timeout "
1218+ key = raw_input("Press return to end before timeout "
1219 "('t' terminates, 'w' return and wait):")
1220
1221 if key == 'w':
1222@@ -279,7 +279,7 @@ class StkAgent(dbus.service.Object):
1223 def DisplayAction(self, text, icon):
1224 print("Text: (%s)" % (text))
1225 print("Icon: (%d)" % (int(icon)))
1226- key = input("Press 't' to terminate the session ")
1227+ key = raw_input("Press 't' to terminate the session ")
1228
1229 if key == 't':
1230 raise EndSession("User wishes to terminate session")
1231@@ -289,7 +289,7 @@ class StkAgent(dbus.service.Object):
1232 def ConfirmOpenChannel(self, info, icon):
1233 print("Open channel confirmation: (%s)" % (info))
1234 print("Icon: (%d)" % (int(icon)))
1235- key = input("Enter Confirmation (t, y, n):")
1236+ key = raw_input("Enter Confirmation (t, y, n):")
1237
1238 if key == 't':
1239 raise EndSession("User wishes to terminate session")
1240@@ -299,7 +299,7 @@ class StkAgent(dbus.service.Object):
1241 return False
1242
1243 _dbus2py = {
1244- dbus.String : str,
1245+ dbus.String : unicode,
1246 dbus.UInt32 : int,
1247 dbus.Int32 : int,
1248 dbus.Int16 : int,
1249@@ -396,7 +396,7 @@ if __name__ == '__main__':
1250 except:
1251 pass
1252
1253- select = int(input("Enter Selection: "))
1254+ select = int(raw_input("Enter Selection: "))
1255 stk.SelectItem(select, path)
1256 elif mode == 'agent':
1257 path = "/test/agent"
1258diff --git a/test/unlock-pin b/test/unlock-pin
1259index 61f4765..10b6626 100755
1260--- a/test/unlock-pin
1261+++ b/test/unlock-pin
1262@@ -1,4 +1,4 @@
1263-#!/usr/bin/python3
1264+#!/usr/bin/python
1265
1266 import dbus
1267 import sys
1268--
12691.9.1
1270
diff --git a/meta/recipes-connectivity/ofono/ofono_1.17.bb b/meta/recipes-connectivity/ofono/ofono_1.17.bb
index 947f9d714a..69f395777d 100644
--- a/meta/recipes-connectivity/ofono/ofono_1.17.bb
+++ b/meta/recipes-connectivity/ofono/ofono_1.17.bb
@@ -3,7 +3,6 @@ require ofono.inc
3SRC_URI = "\ 3SRC_URI = "\
4 ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ 4 ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
5 file://ofono \ 5 file://ofono \
6 file://Revert-test-Convert-to-Python-3.patch \
7" 6"
8SRC_URI[md5sum] = "d280b1d267ba5bf391d2a898fea7c748" 7SRC_URI[md5sum] = "d280b1d267ba5bf391d2a898fea7c748"
9SRC_URI[sha256sum] = "cbf20f07fd15253c682b23c1786d517f505c3688f7c4ea93da777e1523b89635" 8SRC_URI[sha256sum] = "cbf20f07fd15253c682b23c1786d517f505c3688f7c4ea93da777e1523b89635"