diff options
| -rw-r--r-- | meta/recipes-devtools/python/python3-native_3.5.1.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3/0001-Do-not-use-the-shell-version-of-python-config-that-w.patch | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-native_3.5.1.bb b/meta/recipes-devtools/python/python3-native_3.5.1.bb index 152da1c5e2..7bad11aafa 100644 --- a/meta/recipes-devtools/python/python3-native_3.5.1.bb +++ b/meta/recipes-devtools/python/python3-native_3.5.1.bb | |||
| @@ -25,6 +25,7 @@ file://unixccompiler.patch \ | |||
| 25 | ${DISTRO_SRC_URI} \ | 25 | ${DISTRO_SRC_URI} \ |
| 26 | file://sysconfig.py-add-_PYTHON_PROJECT_SRC.patch \ | 26 | file://sysconfig.py-add-_PYTHON_PROJECT_SRC.patch \ |
| 27 | file://setup.py-check-cross_compiling-when-get-FLAGS.patch \ | 27 | file://setup.py-check-cross_compiling-when-get-FLAGS.patch \ |
| 28 | file://0001-Do-not-use-the-shell-version-of-python-config-that-w.patch \ | ||
| 28 | " | 29 | " |
| 29 | SRC_URI[md5sum] = "e9ea6f2623fffcdd871b7b19113fde80" | 30 | SRC_URI[md5sum] = "e9ea6f2623fffcdd871b7b19113fde80" |
| 30 | SRC_URI[sha256sum] = "c6d57c0c366d9060ab6c0cdf889ebf3d92711d466cc0119c441dbf2746f725c9" | 31 | SRC_URI[sha256sum] = "c6d57c0c366d9060ab6c0cdf889ebf3d92711d466cc0119c441dbf2746f725c9" |
diff --git a/meta/recipes-devtools/python/python3/0001-Do-not-use-the-shell-version-of-python-config-that-w.patch b/meta/recipes-devtools/python/python3/0001-Do-not-use-the-shell-version-of-python-config-that-w.patch new file mode 100644 index 0000000000..b7e0ac6354 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-Do-not-use-the-shell-version-of-python-config-that-w.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 045c99b5f1eb6e4e0d8ad1ef9f0ba6574f738150 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Fri, 23 Oct 2015 12:25:09 +0300 | ||
| 4 | Subject: [PATCH] Do not use the shell version of python-config that was | ||
| 5 | introduced in 3.4 | ||
| 6 | |||
| 7 | Revert instead to the original python version: it has our tweaks and | ||
| 8 | outputs directories correctly. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [oe-specific] | ||
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 12 | --- | ||
| 13 | Makefile.pre.in | 9 +++------ | ||
| 14 | 1 file changed, 3 insertions(+), 6 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/Makefile.pre.in b/Makefile.pre.in | ||
| 17 | index d7fc9a0..47e60bc 100644 | ||
| 18 | --- a/Makefile.pre.in | ||
| 19 | +++ b/Makefile.pre.in | ||
| 20 | @@ -1270,12 +1270,9 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh | ||
| 21 | sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py | ||
| 22 | # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR} | ||
| 23 | sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config | ||
| 24 | - # On Darwin, always use the python version of the script, the shell | ||
| 25 | - # version doesn't use the compiler customizations that are provided | ||
| 26 | - # in python (_osx_support.py). | ||
| 27 | - if test `uname -s` = Darwin; then \ | ||
| 28 | - cp python-config.py python-config; \ | ||
| 29 | - fi | ||
| 30 | + # In OpenEmbedded, always use the python version of the script, the shell | ||
| 31 | + # version is broken in multiple ways, and doesn't return correct directories | ||
| 32 | + cp python-config.py python-config | ||
| 33 | |||
| 34 | |||
| 35 | # Install the include files | ||
| 36 | -- | ||
| 37 | 2.1.4 | ||
| 38 | |||
