Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 04df959365e2b54d7503edf0e5534ff094284f2d Mon Sep 17 00:00:00 2001 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 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 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | index 236f005..5c4337f 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 18 | --- a/Makefile.pre.in |
| 19 | +++ b/Makefile.pre.in |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | @@ -1348,12 +1348,9 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 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} |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 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 | -- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | 2.11.0 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | |