summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-09-10 14:31:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-13 07:42:28 +0100
commit0fa20ac73bbff4c7c24123360468464cff003e3a (patch)
tree41ae3baf48445ec464ebcb8b96e651d4caa93341 /meta/recipes-devtools/python
parente0fb62596f1704a9656ff46231b9fac896ad13b2 (diff)
downloadpoky-0fa20ac73bbff4c7c24123360468464cff003e3a.tar.gz
python3: remove redundant patch
None of the Python invocations that this changes are actually called, and there's no need to provide a HOSTPGEN variable when the recipe can just override PGEN directly. (From OE-Core rev: 47a8602171428b7ce5d897f7e2c2f26b203b8b63) 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')
-rw-r--r--meta/recipes-devtools/python/python3-native_3.5.5.bb1
-rw-r--r--meta/recipes-devtools/python/python3/0001-cross-compile-support.patch96
-rw-r--r--meta/recipes-devtools/python/python3_3.5.5.bb3
3 files changed, 1 insertions, 99 deletions
diff --git a/meta/recipes-devtools/python/python3-native_3.5.5.bb b/meta/recipes-devtools/python/python3-native_3.5.5.bb
index 3098027d80..7b940a16d2 100644
--- a/meta/recipes-devtools/python/python3-native_3.5.5.bb
+++ b/meta/recipes-devtools/python/python3-native_3.5.5.bb
@@ -7,7 +7,6 @@ DISTRO_SRC_URI_linuxstdbase = ""
7SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ 7SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
8file://12-distutils-prefix-is-inside-staging-area.patch \ 8file://12-distutils-prefix-is-inside-staging-area.patch \
9file://python-config.patch \ 9file://python-config.patch \
10file://0001-cross-compile-support.patch \
11file://030-fixup-include-dirs.patch \ 10file://030-fixup-include-dirs.patch \
12file://070-dont-clean-ipkg-install.patch \ 11file://070-dont-clean-ipkg-install.patch \
13file://080-distutils-dont_adjust_files.patch \ 12file://080-distutils-dont_adjust_files.patch \
diff --git a/meta/recipes-devtools/python/python3/0001-cross-compile-support.patch b/meta/recipes-devtools/python/python3/0001-cross-compile-support.patch
deleted file mode 100644
index 7cd7e3b490..0000000000
--- a/meta/recipes-devtools/python/python3/0001-cross-compile-support.patch
+++ /dev/null
@@ -1,96 +0,0 @@
1From ecde3ea170999a9ef734e8af4d7c25be5ba81697 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 31 Mar 2017 15:42:46 +0300
4Subject: [PATCH] cross-compile support
5
6We cross compile python. This patch uses tools from host/native
7python instead of in-tree tools
8
9-Khem
10
11Rebased on 3.5.4
12
13Upstream-Status: Inappropriate[Configuration Specific]
14Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
15Signed-off-by: Derek Straka <derek@asterius.io>
16---
17 Makefile.pre.in | 14 ++++++++------
18 1 file changed, 8 insertions(+), 6 deletions(-)
19
20diff --git a/Makefile.pre.in b/Makefile.pre.in
21index 144c1f8629..f252ac2417 100644
22--- a/Makefile.pre.in
23+++ b/Makefile.pre.in
24@@ -223,6 +223,7 @@ LIBOBJS= @LIBOBJS@
25
26 PYTHON= python$(EXE)
27 BUILDPYTHON= python$(BUILDEXE)
28+HOSTPYTHON= $(BUILDPYTHON)
29
30 PYTHON_FOR_REGEN=@PYTHON_FOR_REGEN@
31 PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
32@@ -277,6 +278,7 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
33 ##########################################################################
34 # Parser
35 PGEN= Parser/pgen$(EXE)
36+HOSTPGEN= $(PGEN)$(EXE)
37
38 PSRCS= \
39 Parser/acceler.c \
40@@ -478,7 +480,7 @@ build_all_generate_profile:
41
42 run_profile_task:
43 : # FIXME: can't run for a cross build
44- $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
45+ $(LLVM_PROF_FILE) $(RUNSHARED) $(HOSTPYTHON) $(PROFILE_TASK) || true
46
47 build_all_merge_profile:
48 $(LLVM_PROF_MERGER)
49@@ -772,7 +774,7 @@ regen-grammar: $(PGEN)
50 # Regenerate Include/graminit.h and Python/graminit.c
51 # from Grammar/Grammar using pgen
52 @$(MKDIR_P) Include
53- $(PGEN) $(srcdir)/Grammar/Grammar \
54+ $(HOSTPGEN) $(srcdir)/Grammar/Grammar \
55 $(srcdir)/Include/graminit.h \
56 $(srcdir)/Python/graminit.c
57
58@@ -978,7 +980,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS)
59 ######################################################################
60
61 TESTOPTS= $(EXTRATESTOPTS)
62-TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) $(TESTPYTHONOPTS)
63+TESTPYTHON= $(RUNSHARED) $(HOSTPYTHON) $(TESTPYTHONOPTS)
64 TESTRUNNER= $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py
65 TESTTIMEOUT= 3600
66
67@@ -1470,7 +1472,7 @@ frameworkinstallstructure: $(LDLIBRARY)
68 fi; \
69 done
70 $(LN) -fsn include/python$(LDVERSION) $(DESTDIR)$(prefix)/Headers
71- sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist
72+ sed 's/%VERSION%/'"`$(RUNSHARED) $(HOSTPYTHON) -c 'import platform; print(platform.python_version())'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist
73 $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
74 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAMEWORK)
75 $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
76@@ -1543,7 +1545,7 @@ Python/dtoa.o: Python/dtoa.c
77
78 # Run reindent on the library
79 reindent:
80- ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
81+ $(HOSTPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
82
83 # Rerun configure with the same options as it was run last time,
84 # provided the config.status script exists
85@@ -1678,7 +1680,7 @@ funny:
86
87 # Perform some verification checks on any modified files.
88 patchcheck: @DEF_MAKE_RULE@
89- $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
90+ $(RUNSHARED) $(HOSTPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
91
92 # Dependencies
93
94--
952.11.0
96
diff --git a/meta/recipes-devtools/python/python3_3.5.5.bb b/meta/recipes-devtools/python/python3_3.5.5.bb
index 93878e4e45..6598b486af 100644
--- a/meta/recipes-devtools/python/python3_3.5.5.bb
+++ b/meta/recipes-devtools/python/python3_3.5.5.bb
@@ -11,7 +11,6 @@ DISTRO_SRC_URI ?= "file://sitecustomize.py"
11DISTRO_SRC_URI_linuxstdbase = "" 11DISTRO_SRC_URI_linuxstdbase = ""
12SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ 12SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
13file://python-config.patch \ 13file://python-config.patch \
14file://0001-cross-compile-support.patch \
15file://030-fixup-include-dirs.patch \ 14file://030-fixup-include-dirs.patch \
16file://070-dont-clean-ipkg-install.patch \ 15file://070-dont-clean-ipkg-install.patch \
17file://080-distutils-dont_adjust_files.patch \ 16file://080-distutils-dont_adjust_files.patch \
@@ -101,7 +100,7 @@ do_configure_append() {
101} 100}
102 101
103run_make() { 102run_make() {
104 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/python3-native/pgen \ 103 oe_runmake PGEN=${STAGING_BINDIR_NATIVE}/python3-native/pgen \
105 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python3-native/python3 \ 104 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python3-native/python3 \
106 STAGING_LIBDIR=${STAGING_LIBDIR} \ 105 STAGING_LIBDIR=${STAGING_LIBDIR} \
107 STAGING_INCDIR=${STAGING_INCDIR} \ 106 STAGING_INCDIR=${STAGING_INCDIR} \