summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-pip
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-pip')
-rw-r--r--meta/recipes-devtools/python/python3-pip/no_shebang_mangling.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-devtools/python/python3-pip/no_shebang_mangling.patch b/meta/recipes-devtools/python/python3-pip/no_shebang_mangling.patch
index b59f4888da..99fa14ee03 100644
--- a/meta/recipes-devtools/python/python3-pip/no_shebang_mangling.patch
+++ b/meta/recipes-devtools/python/python3-pip/no_shebang_mangling.patch
@@ -1,4 +1,4 @@
1From 915bf32cd117cd86cc0d4b96bc9490b1c7119ffd Mon Sep 17 00:00:00 2001 1From 2aa82aeb0783c5fa7777b32bfe1dd3da9ae8fc6e Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org> 2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Wed, 23 Feb 2022 12:27:06 +0000 3Date: Wed, 23 Feb 2022 12:27:06 +0000
4Subject: [PATCH] python3-pip: Don't change shebang 4Subject: [PATCH] python3-pip: Don't change shebang
@@ -8,16 +8,15 @@ to be python3 from the environment when building anything for the target
8(or nativesdk). This avoids incorrect interpreter paths in the target scripts. 8(or nativesdk). This avoids incorrect interpreter paths in the target scripts.
9 9
10Upstream-Status: Inappropriate [OE specific config] 10Upstream-Status: Inappropriate [OE specific config]
11
12--- 11---
13 src/pip/_vendor/distlib/scripts.py | 4 +++- 12 src/pip/_vendor/distlib/scripts.py | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-) 13 1 file changed, 3 insertions(+), 1 deletion(-)
15 14
16diff --git a/src/pip/_vendor/distlib/scripts.py b/src/pip/_vendor/distlib/scripts.py 15diff --git a/src/pip/_vendor/distlib/scripts.py b/src/pip/_vendor/distlib/scripts.py
17index d270624..42c0d10 100644 16index cfa45d2..313f499 100644
18--- a/src/pip/_vendor/distlib/scripts.py 17--- a/src/pip/_vendor/distlib/scripts.py
19+++ b/src/pip/_vendor/distlib/scripts.py 18+++ b/src/pip/_vendor/distlib/scripts.py
20@@ -137,6 +137,8 @@ class ScriptMaker(object): 19@@ -144,6 +144,8 @@ class ScriptMaker(object):
21 See also: http://www.in-ulm.de/~mascheck/various/shebang/#length 20 See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
22 https://hg.mozilla.org/mozilla-central/file/tip/mach 21 https://hg.mozilla.org/mozilla-central/file/tip/mach
23 """ 22 """
@@ -26,7 +25,7 @@ index d270624..42c0d10 100644
26 if os.name != 'posix': 25 if os.name != 'posix':
27 simple_shebang = True 26 simple_shebang = True
28 else: 27 else:
29@@ -348,7 +350,7 @@ class ScriptMaker(object): 28@@ -362,7 +364,7 @@ class ScriptMaker(object):
30 return 29 return
31 30
32 match = FIRST_LINE_RE.match(first_line.replace(b'\r\n', b'\n')) 31 match = FIRST_LINE_RE.match(first_line.replace(b'\r\n', b'\n'))