summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-08 20:18:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-09 09:17:04 -0800
commitfe9e4bbee7e079bfd2bc1e8fa6124ef2db2d2efe (patch)
treef1b1aa3b6138dbd5d6c901bbfe2a95fb949d8228 /meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch
parente5f5aa5604a7617af839832ded457c8a824bcf2f (diff)
downloadpoky-fe9e4bbee7e079bfd2bc1e8fa6124ef2db2d2efe.tar.gz
python: refresh patches
The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. (From OE-Core rev: 0b25fcee333e6207a8596d26adfa65fec85c26df) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch')
-rw-r--r--meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch25
1 files changed, 11 insertions, 14 deletions
diff --git a/meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch b/meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch
index de07643f2b..c89d9a3d83 100644
--- a/meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch
+++ b/meta/recipes-devtools/python/python3/sysconfig.py-add-_PYTHON_PROJECT_SRC.patch
@@ -17,12 +17,12 @@ Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
17 Lib/sysconfig.py | 5 ++++- 17 Lib/sysconfig.py | 5 ++++-
18 2 files changed, 8 insertions(+), 2 deletions(-) 18 2 files changed, 8 insertions(+), 2 deletions(-)
19 19
20diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py 20Index: Python-3.5.3/Lib/distutils/sysconfig.py
21index a545ab9..74317d1 100644 21===================================================================
22--- a/Lib/distutils/sysconfig.py 22--- Python-3.5.3.orig/Lib/distutils/sysconfig.py
23+++ b/Lib/distutils/sysconfig.py 23+++ Python-3.5.3/Lib/distutils/sysconfig.py
24@@ -554,7 +554,10 @@ def get_config_vars(*args): 24@@ -498,7 +498,10 @@ def get_config_vars(*args):
25 _config_vars['exec_prefix'] = EXEC_PREFIX 25 _config_vars['SO'] = SO
26 26
27 # Always convert srcdir to an absolute path 27 # Always convert srcdir to an absolute path
28- srcdir = _config_vars.get('srcdir', project_base) 28- srcdir = _config_vars.get('srcdir', project_base)
@@ -33,11 +33,11 @@ index a545ab9..74317d1 100644
33 if os.name == 'posix': 33 if os.name == 'posix':
34 if python_build: 34 if python_build:
35 # If srcdir is a relative path (typically '.' or '..') 35 # If srcdir is a relative path (typically '.' or '..')
36diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py 36Index: Python-3.5.3/Lib/sysconfig.py
37index 7287f11..cc92998 100644 37===================================================================
38--- a/Lib/sysconfig.py 38--- Python-3.5.3.orig/Lib/sysconfig.py
39+++ b/Lib/sysconfig.py 39+++ Python-3.5.3/Lib/sysconfig.py
40@@ -562,7 +562,10 @@ def get_config_vars(*args): 40@@ -544,7 +544,10 @@ def get_config_vars(*args):
41 _CONFIG_VARS['userbase'] = _getuserbase() 41 _CONFIG_VARS['userbase'] = _getuserbase()
42 42
43 # Always convert srcdir to an absolute path 43 # Always convert srcdir to an absolute path
@@ -49,6 +49,3 @@ index 7287f11..cc92998 100644
49 if os.name == 'posix': 49 if os.name == 'posix':
50 if _PYTHON_BUILD: 50 if _PYTHON_BUILD:
51 # If srcdir is a relative path (typically '.' or '..') 51 # If srcdir is a relative path (typically '.' or '..')
52--
531.7.9.5
54