python3-pexpect: change shebang to python3
PATCH 1/1 python3-pexpect: change shebang to python3
From: Changqing Li <[email protected]>
we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like:
python: command not found
--- .../python/python-pexpect.inc | 2 ++ ...hange-shebang-from-python-to-python3.patch | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patch
meta-python/recipes-devtools/python/python-pexpect.inc +2 -0
@@ -4,6 +4,8 @@ SECTION = "devel/python" LICENSE = "ISC" LIC_FILES_CHKSUM = "file://LICENSE;md5=1c7a725251880af8c6a148181665385b" +SRC_URI += "file://0001-FSM.py-change-shebang-from-python-to-python3.patch" + SRC_URI[md5sum] = "153eb25184249d6a85fde9acf4804085" SRC_URI[sha256sum] = "fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"
meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 35462d7b778eea32fd0cc0bbc79d6e6f53d942b4 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Thu, 23 Apr 2020 08:01:42 +0000 +Subject: [PATCH] FSM.py: change shebang from python to python3 + +Upstream-Status: Pending + +Signed-off-by: Changqing Li <[email protected]> +--- + pexpect/FSM.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pexpect/FSM.py b/pexpect/FSM.py +index 46b392e..4e77654 100644 +--- a/pexpect/FSM.py ++++ b/pexpect/FSM.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + '''This module implements a Finite State Machine (FSM). In addition to state + this FSM also maintains a user defined "memory". So this FSM can be used as a +-- +2.24.1 +
Signature · 1 line
2.24.1
Quoted 19 lines · Changqing Li
From: Changqing Li <[email protected]>
we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like:
python: command not foundSigned-off-by Changqing Li <[email protected]>--- .../python/python-pexpect.inc | 2 ++ ...hange-shebang-from-python-to-python3.patch | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patchmeta-python/recipes-devtools/python/python-pexpect.inc +0
-0
meta-python/recipes-devtools/python/python-pexpect.inc SECTION = "devel/python" · line 8
Quoted 5 lines
meta-python/recipes-devtools/python/python-pexpect.inc +2
-0@@ -4,6 +4,8 @@ SECTION = "devel/python" LICENSE = "ISC" LIC_FILES_CHKSUM = "file://LICENSE;md5=1c7a725251880af8c6a148181665385b" +SRC_URI += "file://0001-FSM.py-change-shebang-from-python-to-python3.patch" +
This .inc file should be merged into .bb, as well, also check if meta-python2 depends on this .inc file, if it does then the patching should happen inside py3 version of bb file and not .inc
Quoted 38 lines
meta-python/recipes-devtools/python/python-pexpect.inc +0
-0SRC_URI[md5sum] = "153eb25184249d6a85fde9acf4804085" SRC_URI[sha256sum] = "fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patch new file +25
-0@@ -0,0 +1,25 @@ +From 35462d7b778eea32fd0cc0bbc79d6e6f53d942b4 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Thu, 23 Apr 2020 08:01:42 +0000 +Subject: [PATCH] FSM.py: change shebang from python to python3 + +Upstream-Status: Pending + +Signed-off-by: Changqing Li <[email protected]> +--- + pexpect/FSM.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pexpect/FSM.py b/pexpect/FSM.py +index 46b392e..4e77654 100644 +--- a/pexpect/FSM.py ++++ b/pexpect/FSM.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + '''This module implements a Finite State Machine (FSM). In addition to state + this FSM also maintains a user defined "memory". So this FSM can be used as a +-- +2.24.1 +
meta-python2 has zero connection the meta-python. So it will not depend on any inc files.
Quoted 82 lines · Khem Raj
Quoted 7 lines · Changqing Li
From: Changqing Li <[email protected]>
we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like:
python: command not foundQuoted 6 lines
Signed-off-by Changqing Li <[email protected]>--- .../python/python-pexpect.inc | 2 ++ ...hange-shebang-from-python-to-python3.patch | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644
meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patchReview
Quoted 2 lines
(quoted diff) +0
-0b/meta-python/recipes-devtools/python/python-pexpect.inc
meta-python/recipes-devtools/python/python-pexpect.inc SECTION = "devel/python" · line 7
Quoted 8 lines
index
f02aa994e..c6230b2b5100644meta-python/recipes-devtools/python/python-pexpect.inc +1
-0@@ -4,6 +4,8 @@ SECTION = "devel/python" LICENSE = "ISC" LIC_FILES_CHKSUM = "file://LICENSE;md5=1c7a725251880af8c6a148181665385b" +SRC_URI +="file://0001-FSM.py-change-shebang-from-python-to-python3.patch"
meta-python/recipes-devtools/python/python-pexpect.inc SECTION = "devel/python" · line 8
Quoted 1 line
meta-python/recipes-devtools/python/python-pexpect.inc +1
-0+This .inc file should be merged into .bb, as well, also check if meta-python2 depends on this .inc file, if it does then the patching should happen inside py3 version of bb file and not .inc
meta-python/recipes-devtools/python/python-pexpect.inc SECTION = "devel/python" · line 10
Quoted 2 lines
meta-python/recipes-devtools/python/python-pexpect.inc +0
-0SRC_URI[md5sum] = "153eb25184249d6a85fde9acf4804085" SRC_URI[sha256sum] ="
fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"Quoted 2 lines
diff --git
a/meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patchb/meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patchQuoted 4 lines
new file mode 100644
index 000000000..bee772da6
---/dev/null
+++
b/meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patchQuoted 12 lines
meta-python/recipes-devtools/python/python-pexpect.inc +11
-0@@ -0,0 +1,25 @@ +From 35462d7b778eea32fd0cc0bbc79d6e6f53d942b4 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Thu, 23 Apr 2020 08:01:42 +0000 +Subject: [PATCH] FSM.py: change shebang from python to python3 + +Upstream-Status: Pending + +Signed-off-by: Changqing Li <[email protected]> +--- + pexpect/FSM.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-)meta-python/recipes-devtools/python/python-pexpect.inc line 21
Quoted 10 lines
meta-python/recipes-devtools/python/python-pexpect.inc +10
-0+ +diff --git a/pexpect/FSM.py b/pexpect/FSM.py +index 46b392e..4e77654 100644 +--- a/pexpect/FSM.py ++++ b/pexpect/FSM.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + '''This module implements a Finite State Machine (FSM). In addition tostate
meta-python/recipes-devtools/python/python-pexpect.inc line 22
Quoted 1 line
meta-python/recipes-devtools/python/python-pexpect.inc +1
-0+ this FSM also maintains a user defined "memory". So this FSM can beused as a
Quoted 7 lines
meta-python/recipes-devtools/python/python-pexpect.inc +3
-0+-- +2.24.1 +
Quoted 3 lines · Tim Orling
meta-python2 has zero connection the meta-python. So it will not depend on any inc files.
Thanks, perhaps this patch is ok then, merging inc and bb can be a different one.
Quoted 74 lines · Khem Raj
Quoted 73 lines · Changqing Li
Quoted 19 lines
From: Changqing Li <[email protected]>
we have offcially dropped python2, so it is possible that our code run on python3 only host, so change shebang to python3 to avoid error like:
python: command not foundSigned-off-by Changqing Li <[email protected]>--- .../python/python-pexpect.inc | 2 ++ ...hange-shebang-from-python-to-python3.patch | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patchmeta-python/recipes-devtools/python/python-pexpect.inc +0
-0meta-python/recipes-devtools/python/python-pexpect.inc SECTION = "devel/python" · line 8
Quoted 5 lines
meta-python/recipes-devtools/python/python-pexpect.inc +2
-0@@ -4,6 +4,8 @@ SECTION = "devel/python" LICENSE = "ISC" LIC_FILES_CHKSUM = "file://LICENSE;md5=1c7a725251880af8c6a148181665385b" +SRC_URI += "file://0001-FSM.py-change-shebang-from-python-to-python3.patch" +This .inc file should be merged into .bb, as well, also check if meta-python2 depends on this .inc file, if it does then the patching should happen inside py3 version of bb file and not .inc
Quoted 38 lines
meta-python/recipes-devtools/python/python-pexpect.inc +0
-0SRC_URI[md5sum] = "153eb25184249d6a85fde9acf4804085" SRC_URI[sha256sum] = "fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"meta-python/recipes-devtools/python/python3-pexpect/0001-FSM.py-change-shebang-from-python-to-python3.patch new file +25
-0@@ -0,0 +1,25 @@ +From 35462d7b778eea32fd0cc0bbc79d6e6f53d942b4 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Thu, 23 Apr 2020 08:01:42 +0000 +Subject: [PATCH] FSM.py: change shebang from python to python3 + +Upstream-Status: Pending + +Signed-off-by: Changqing Li <[email protected]> +--- + pexpect/FSM.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pexpect/FSM.py b/pexpect/FSM.py +index 46b392e..4e77654 100644 +--- a/pexpect/FSM.py ++++ b/pexpect/FSM.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + '''This module implements a Finite State Machine (FSM). In addition to state + this FSM also maintains a user defined "memory". So this FSM can be used as a +-- +2.24.1 +