blob: 83fd52d87f4900a6b3c62c50d647706d0a77e83c [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 148861fa16f2aaacd518770f337ea54b5182f981 Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishop19323692019-04-05 15:28:33 -04003Date: Tue, 29 Jan 2019 15:03:01 +0100
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05004Subject: [PATCH] Do not use the shell version of python-config that was
5 introduced in 3.4
6
7Revert instead to the original python version: it has our tweaks and
8outputs directories correctly.
9
10Upstream-Status: Inappropriate [oe-specific]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 Makefile.pre.in | 9 +++------
14 1 file changed, 3 insertions(+), 6 deletions(-)
15
16diff --git a/Makefile.pre.in b/Makefile.pre.in
Brad Bishop19323692019-04-05 15:28:33 -040017index 2d2e11f..cc19942 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018--- a/Makefile.pre.in
19+++ b/Makefile.pre.in
Brad Bishop19323692019-04-05 15:28:33 -040020@@ -1431,12 +1431,9 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021 sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py
Brad Bishop19323692019-04-05 15:28:33 -040022 @ # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023 LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
Brad Bishop19323692019-04-05 15:28:33 -040024- @ # 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 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028- cp python-config.py python-config; \
29- fi
Brad Bishop19323692019-04-05 15:28:33 -040030+ @ # 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
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032+ cp python-config.py python-config
33
34
35 # Install the include files