Skip to content

Switch oe-core to Python 3

Alexander Kanavin openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest31 patches 0 repliesNew

Changes from the cover letter

- fixed issues found via autobuilder testing: gdbus-codegen issue and python3-dbus issue are fixed explicitly; python3-numpy failure has disappeared somewhere between rebasing and fixing those other items:
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/122257.html

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31bind: switch Python dependency to Python 3.xmeta/recipes-connectivity/bind/bind_9.10.3-P3.bb+2 -20 replies
2/31python-dbus: update to 1.2.4, port to python 3meta/recipes-devtools/python/python3-dbus_1.2.4.bb+8 -70 replies
3/31python3: drop 110-enable-zlib.patchmeta/recipes-devtools/python/python3-native_3.5.1.bb meta/recipes-devtools/python/python3/110-enable-zlib.patch meta/recipes-devtools/python/python3_3.5.1.bb+0 -230 replies
4/31glib: move to Python 3meta/recipes-core/glib-2.0/glib.inc+3 -50 replies
5/31dbus-test: remove unneeded pygobject dependencymeta/recipes-core/dbus/dbus-test_1.10.6.bb+1 -10 replies
6/31python-pygobject: port to Python 3meta/recipes-devtools/python/python3-pygobject/0001-configure.ac-add-sysroot-path-to-GI_DATADIR-don-t-se.patch meta/recipes-devtools/python/python3-pygobject_3.18.2.bb+4 -40 replies
7/31neard: do not package python test scriptsmeta/recipes-connectivity/neard/neard_0.15.bb+1 -120 replies
8/31bluez5: switch to Python 3meta/recipes-connectivity/bluez5/bluez5.inc+5 -10 replies
9/31connman: do not install Python test scriptsmeta/recipes-connectivity/connman/connman.inc+1 -50 replies
10/31ofono: drop the custom-made revert to Python 2 from Python 3meta/recipes-connectivity/ofono/ofono.inc meta/recipes-connectivity/ofono/ofono/Revert-test-Convert-to-Python-3.patch meta/recipes-connectivity/ofono/ofono_1.17.bb+5 -12720 replies
11/31packagegroup-core-full-cmdline: drop python-dbus from the list of servicesmeta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb+0 -10 replies
12/31nfs-utils: switch to Python 3meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb+5 -10 replies
13/31systemd: drop python dependency for ptestsmeta/recipes-core/systemd/systemd_229.bb+1 -10 replies
14/31util-linux: move to Python 3meta/recipes-core/util-linux/util-linux.inc+6 -50 replies
15/31python-pycairo: move to Python 3meta/recipes-devtools/python/python-pycairo_1.10.0.bb meta/recipes-devtools/python/python3-pycairo_1.10.0.bb+40 -410 replies
16/31bootchart2: move to Python 3meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb+6 -100 replies
17/31gdb: move to Python 3meta/recipes-devtools/gdb/gdb-common.inc meta/recipes-devtools/gdb/gdb-cross-canadian.inc meta/recipes-devtools/gdb/gdb-cross.inc +1 more+12 -120 replies
18/31swig: move to Python 3meta/recipes-devtools/swig/swig.inc+3 -40 replies
19/31python-pyrex: remove unused recipemeta/conf/distro/include/distro_alias.inc meta/recipes-devtools/python/python-pyrex-native_0.9.9.bb meta/recipes-devtools/python/python-pyrex/pyrex-fix-optimized-mode.patch +1 more+0 -430 replies
20/31python-imaging: remove unused recipemeta/conf/distro/include/distro_alias.inc meta/conf/distro/include/security_flags.inc meta/recipes-devtools/python/python-imaging/0001-python-imaging-setup.py-force-paths-for-zlib-freetyp.patch +3 more+0 -1970 replies
21/31python-docutils: move to Python 3meta/recipes-devtools/python/python3-dbus_1.2.4.bb meta/recipes-devtools/python/python3-docutils_0.12.bb+4 -40 replies
22/31libuser: move to Python 3meta/recipes-extended/libuser/libuser_0.62.bb+5 -30 replies
23/31libnewt-python: move to Python 3meta/recipes-extended/newt/libnewt-python_0.52.18.bb+3 -30 replies
24/31gnome-doc-utils: remove recipemeta/recipes-gnome/epiphany/epiphany_3.18.4.bb meta/recipes-gnome/gnome-desktop/gnome-desktop3_3.18.2.bb meta/recipes-gnome/gnome/gnome-doc-utils.inc +4 more+1 -2030 replies
25/31lttng-tools: move to Python 3meta/recipes-kernel/lttng/lttng-tools/Revert-Build-look-for-python-3.0-when-building-pytho.patch meta/recipes-kernel/lttng/lttng-tools_git.bb+3 -340 replies
26/31lttng-ust: move to Python 3meta/recipes-kernel/lttng/lttng-ust_git.bb+8 -10 replies
27/31systemtap: move to Python 3meta/recipes-kernel/systemtap/systemtap_git.bb+2 -30 replies
28/31libcap-ng: move to Python 3meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb+7 -50 replies
29/31hwlatdetect: move to Python 3meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb+4 -20 replies
30/31python3-numpy: add a recipemeta/recipes-devtools/python-numpy/python3-numpy_1.10.4.bb+101 -00 replies
31/31automake: drop the Python scriptlets to determine Python's directoriesmeta/recipes-devtools/automake/automake/python-libdir.patch+44 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/31] Switch oe-core to Python 3

This is an updated and rebased patchset that switches oe-core recipes to Python 3 whenever possible. See here for an overview:
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121915.html

Changes:
- fixed issues found via autobuilder testing: gdbus-codegen issue and python3-dbus issue are fixed explicitly; python3-numpy failure has disappeared somewhere between rebasing and fixing those other items:
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/122257.html

The following changes since commit 3c42280b8a5cac184311a59589849fec4e215a14:

sanity: Drop setting C locale (2016-06-01 15:05:47 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib akanavin/deprecate-python2
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=akanavin/deprecate-python2

Alexander Kanavin (31):
bind: switch Python dependency to Python 3.x
python-dbus: update to 1.2.4, port to python 3
python3: drop 110-enable-zlib.patch
glib: move to Python 3
dbus-test: remove unneeded pygobject dependency
python-pygobject: port to Python 3
neard: do not package python test scripts
bluez5: switch to Python 3
connman: do not install Python test scripts
ofono: drop the custom-made revert to Python 2 from Python 3 packagegroup-core-full-cmdline: drop python-dbus from the list of
services
nfs-utils: switch to Python 3
systemd: drop python dependency for ptests
util-linux: move to Python 3
python-pycairo: move to Python 3
bootchart2: move to Python 3
gdb: move to Python 3
swig: move to Python 3
python-pyrex: remove unused recipe
python-imaging: remove unused recipe
python-docutils: move to Python 3
libuser: move to Python 3
libnewt-python: move to Python 3
gnome-doc-utils: remove recipe
lttng-tools: move to Python 3
lttng-ust: move to Python 3
systemtap: move to Python 3
libcap-ng: move to Python 3
hwlatdetect: move to Python 3
python3-numpy: add a recipe
automake: drop the Python scriptlets to determine Python's directories

 meta/conf/distro/include/distro_alias.inc          |    2 -
 meta/conf/distro/include/security_flags.inc        |    1 -
 meta/recipes-connectivity/bind/bind_9.10.3-P3.bb   |    4 +-
 meta/recipes-connectivity/bluez5/bluez5.inc        |    6 +-
 meta/recipes-connectivity/connman/connman.inc      |    6 +-
 meta/recipes-connectivity/neard/neard_0.15.bb      |   13 +-
 .../nfs-utils/nfs-utils_1.3.3.bb                   |    6 +-
 meta/recipes-connectivity/ofono/ofono.inc          |    6 +-
 .../ofono/Revert-test-Convert-to-Python-3.patch    | 1270 --------------------
 meta/recipes-connectivity/ofono/ofono_1.17.bb      |    1 -
 meta/recipes-core/dbus/dbus-test_1.10.6.bb         |    2 +-
 meta/recipes-core/glib-2.0/glib.inc                |    8 +-
 meta/recipes-core/systemd/systemd_229.bb           |    2 +-
 meta/recipes-core/util-linux/util-linux.inc        |   11 +-
 .../automake/automake/python-libdir.patch          |   62 +-
 .../bootchart2/bootchart2_0.14.8.bb                |   16 +-
 meta/recipes-devtools/gdb/gdb-common.inc           |    2 +-
 meta/recipes-devtools/gdb/gdb-cross-canadian.inc   |   12 +-
 meta/recipes-devtools/gdb/gdb-cross.inc            |    4 +-
 meta/recipes-devtools/gdb/gdb_7.11.bb              |    6 +-
 .../python-numpy/python3-numpy_1.10.4.bb           |  101 ++
 ...ing-setup.py-force-paths-for-zlib-freetyp.patch |   55 -
 .../allow.to.disable.some.features.patch           |   65 -
 .../python-imaging/fix-freetype-includes.patch     |   30 -
 .../python/python-imaging_1.1.7.bb                 |   45 -
 .../python/python-pycairo_1.10.0.bb                |   41 -
 .../python/python-pyrex-native_0.9.9.bb            |    5 -
 .../python-pyrex/pyrex-fix-optimized-mode.patch    |   15 -
 meta/recipes-devtools/python/python-pyrex_0.9.9.bb |   22 -
 ...{python-dbus_1.2.0.bb => python3-dbus_1.2.4.bb} |   19 +-
 ...n-docutils_0.12.bb => python3-docutils_0.12.bb} |    4 +-
 .../python/python3-native_3.5.1.bb                 |    1 -
 .../python/python3-pycairo_1.10.0.bb               |   40 +
 ...c-add-sysroot-path-to-GI_DATADIR-don-t-se.patch |    0
 ...bject_3.18.2.bb => python3-pygobject_3.18.2.bb} |    8 +-
 .../python/python3/110-enable-zlib.patch           |   21 -
 meta/recipes-devtools/python/python3_3.5.1.bb      |    1 -
 meta/recipes-devtools/swig/swig.inc                |    7 +-
 meta/recipes-extended/libuser/libuser_0.62.bb      |    8 +-
 .../newt/libnewt-python_0.52.18.bb                 |    6 +-
 .../packagegroup-core-full-cmdline.bb              |    1 -
 meta/recipes-gnome/epiphany/epiphany_3.18.4.bb     |    1 -
 .../gnome-desktop/gnome-desktop3_3.18.2.bb         |    2 +-
 meta/recipes-gnome/gnome/gnome-doc-utils.inc       |   29 -
 .../gnome-doc-utils/sysrooted-pkg-config.patch     |   35 -
 .../use-usr-bin-env-for-python-in-xml2po.patch     |   30 -
 .../gnome/gnome-doc-utils/xsltproc_nonet.patch     |   95 --
 .../recipes-gnome/gnome/gnome-doc-utils_0.20.10.bb |   12 -
 ...d-look-for-python-3.0-when-building-pytho.patch |   30 -
 meta/recipes-kernel/lttng/lttng-tools_git.bb       |    7 +-
 meta/recipes-kernel/lttng/lttng-ust_git.bb         |    9 +-
 meta/recipes-kernel/systemtap/systemtap_git.bb     |    5 +-
 meta/recipes-rt/rt-tests/hwlatdetect_0.96.bb       |    6 +-
 meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb  |   12 +-
 54 files changed, 285 insertions(+), 1923 deletions(-)
 delete mode 100644 meta/recipes-connectivity/ofono/ofono/Revert-test-Convert-to-Python-3.patch
 create mode 100644 meta/recipes-devtools/python-numpy/python3-numpy_1.10.4.bb
 delete mode 100644 meta/recipes-devtools/python/python-imaging/0001-python-imaging-setup.py-force-paths-for-zlib-freetyp.patch
 delete mode 100644 meta/recipes-devtools/python/python-imaging/allow.to.disable.some.features.patch
 delete mode 100644 meta/recipes-devtools/python/python-imaging/fix-freetype-includes.patch
 delete mode 100644 meta/recipes-devtools/python/python-imaging_1.1.7.bb
 delete mode 100644 meta/recipes-devtools/python/python-pycairo_1.10.0.bb
 delete mode 100644 meta/recipes-devtools/python/python-pyrex-native_0.9.9.bb
 delete mode 100644 meta/recipes-devtools/python/python-pyrex/pyrex-fix-optimized-mode.patch
 delete mode 100644 meta/recipes-devtools/python/python-pyrex_0.9.9.bb
 rename meta/recipes-devtools/python/{python-dbus_1.2.0.bb => python3-dbus_1.2.4.bb} (55%)
 rename meta/recipes-devtools/python/{python-docutils_0.12.bb => python3-docutils_0.12.bb} (92%)
 create mode 100644 meta/recipes-devtools/python/python3-pycairo_1.10.0.bb
 rename meta/recipes-devtools/python/{python-pygobject => python3-pygobject}/0001-configure.ac-add-sysroot-path-to-GI_DATADIR-don-t-se.patch (100%)
 rename meta/recipes-devtools/python/{python-pygobject_3.18.2.bb => python3-pygobject_3.18.2.bb} (72%)
 delete mode 100644 meta/recipes-devtools/python/python3/110-enable-zlib.patch
 delete mode 100644 meta/recipes-gnome/gnome/gnome-doc-utils.inc
 delete mode 100644 meta/recipes-gnome/gnome/gnome-doc-utils/sysrooted-pkg-config.patch
 delete mode 100644 meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch
 delete mode 100644 meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch
 delete mode 100644 meta/recipes-gnome/gnome/gnome-doc-utils_0.20.10.bb
 delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/Revert-Build-look-for-python-3.0-when-building-pytho.patch
Signature · 1 line
2.8.1