diff options
author | Jose Lamego <jose.a.lamego@linux.intel.com> | 2017-10-19 14:28:25 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:33:22 +0000 |
commit | b55218a024f2b529ccbe0e321228b9595ce67b51 (patch) | |
tree | 5b8fb85c448cf91610bd2687e12c7778682c0f4a /meta | |
parent | b063b982a4b1d1a28cc35ff9b60bb6b310fe344a (diff) | |
download | poky-b55218a024f2b529ccbe0e321228b9595ce67b51.tar.gz |
python-scons*: upgrade to 3.0.0
Both python-scons and python-scons-native need to be upgraded to latest
upstream version.
LIC_FILES_CHKSUM changed due to updated year in date, but rest of file
remain the same.
Following dependencies were added to enable appropriate package usage:
python-shell, python-pprint and python-importlib.
A patch was taken from upstream to support python2 print statements
in SConscripts. This should be included in next version.
These changes were tested in qemux86 with core-image-minimal.
(From OE-Core rev: 4fe7774f08ba46bd1d68e56eff3f4912db107c25)
Signed-off-by: Jose Lamego <jose.a.lamego@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')
-rw-r--r-- | meta/recipes-devtools/python/python-scons-native_3.0.0.bb (renamed from meta/recipes-devtools/python/python-scons-native_2.5.1.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch | 38 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python-scons_3.0.0.bb (renamed from meta/recipes-devtools/python/python-scons_2.5.1.bb) | 12 |
3 files changed, 46 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python-scons-native_2.5.1.bb b/meta/recipes-devtools/python/python-scons-native_3.0.0.bb index dae89ab5d2..dae89ab5d2 100644 --- a/meta/recipes-devtools/python/python-scons-native_2.5.1.bb +++ b/meta/recipes-devtools/python/python-scons-native_3.0.0.bb | |||
diff --git a/meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch b/meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch new file mode 100644 index 0000000000..b1a790219e --- /dev/null +++ b/meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 885aabdb313685405737112dcb7d7774eee6d879 Mon Sep 17 00:00:00 2001 | ||
2 | From: Thomas Berg <merlin66b@gmail.com> | ||
3 | Date: Thu, 19 Oct 2017 14:02:21 -0500 | ||
4 | Subject: [PATCH] SConscript: Support python2 print statements | ||
5 | |||
6 | This fixes a regression introduced in scons-3.0.0, where | ||
7 | SConscripts containing python 2 print statements would cause | ||
8 | syntax errors even when executing scons with python 2.7. | ||
9 | |||
10 | This ensures backward compatibility, allowing users to build | ||
11 | legacy code with scons-3.0.0 without having to patch it. | ||
12 | |||
13 | Taken from | ||
14 | https://github.com/SConsProject/scons/commit/2e0de3c55f22b3eaa7767b69740b898f3d2f46bf | ||
15 | |||
16 | Upstream-Status: Accepted | ||
17 | |||
18 | Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com> | ||
19 | --- | ||
20 | engine/SCons/Script/SConscript.py | 2 -- | ||
21 | 1 file changed, 2 deletions(-) | ||
22 | |||
23 | diff --git a/engine/SCons/Script/SConscript.py b/engine/SCons/Script/SConscript.py | ||
24 | index bc05540..332d1fa 100644 | ||
25 | --- a/engine/SCons/Script/SConscript.py | ||
26 | +++ b/engine/SCons/Script/SConscript.py | ||
27 | @@ -5,8 +5,6 @@ files. | ||
28 | |||
29 | """ | ||
30 | |||
31 | -from __future__ import print_function | ||
32 | - | ||
33 | # | ||
34 | # Copyright (c) 2001 - 2017 The SCons Foundation | ||
35 | # | ||
36 | -- | ||
37 | 2.7.4 | ||
38 | |||
diff --git a/meta/recipes-devtools/python/python-scons_2.5.1.bb b/meta/recipes-devtools/python/python-scons_3.0.0.bb index 3f43856199..33bfb45e2e 100644 --- a/meta/recipes-devtools/python/python-scons_2.5.1.bb +++ b/meta/recipes-devtools/python/python-scons_3.0.0.bb | |||
@@ -1,13 +1,14 @@ | |||
1 | SUMMARY = "Software Construction tool (make/autotools replacement)" | 1 | SUMMARY = "Software Construction tool (make/autotools replacement)" |
2 | SECTION = "devel/python" | 2 | SECTION = "devel/python" |
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3a885dff6d14e4cd876d9008a09a42de" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=46ddf66004e5be5566367cb525a66fc6" |
5 | SRCNAME = "scons" | 5 | SRCNAME = "scons" |
6 | 6 | ||
7 | SRC_URI = "https://files.pythonhosted.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" | 7 | SRC_URI = "https://files.pythonhosted.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ |
8 | file://SConscript-Support-python2-print-statements.patch" | ||
8 | 9 | ||
9 | SRC_URI[md5sum] = "3eac81e5e8206304a9b4683c57665aa4" | 10 | SRC_URI[md5sum] = "7ca558edaaa1942fe38f3105ca2400fb" |
10 | SRC_URI[sha256sum] = "c8de85fc02ed1a687b1f2ac791eaa0c1707b4382a204f17d782b5b111b9fdf07" | 11 | SRC_URI[sha256sum] = "aa5afb33c2bbd33c311e47e912412195739e9ffb2e933534a31f85fba8f3470e" |
11 | 12 | ||
12 | UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/SCons/" | 13 | UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/SCons/" |
13 | 14 | ||
@@ -20,4 +21,7 @@ RDEPENDS_${PN} = "\ | |||
20 | python-io \ | 21 | python-io \ |
21 | python-json \ | 22 | python-json \ |
22 | python-subprocess \ | 23 | python-subprocess \ |
24 | python-shell \ | ||
25 | python-pprint \ | ||
26 | python-importlib \ | ||
23 | " | 27 | " |