Upgrade piglit
cover Upgrade piglit
This set upgrades piglit, adds python-six (new piglit dependency), moves piglit to python3 and fixes all the python module issues that popped up.
A word of warning to anyone else using piglit: it was big before and has now tripled in size (30000 new tests!). The installed size is over 1.5GB and packaging takes a very long time.
For reference, the results with PIGLIT_NO_WINDOW=1 look like this on a NUC (Haswell with HD5000 graphics) running current master:
name: quick
---- ------
pass: 33717
fail: 438
crash: 5
skip: 30887
warn: 7
total: 65054Jussi
The following changes since commit 5c11e365e19357f721c49d076971567e7b64b61b:
lib/oeqa: add Galculator to SDK and runtime tests (2016-07-01 16:22:48 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib jku/piglit
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/piglit
Jussi Kukkonen (5):
python-six: Add to oe-core
python3: Add compression to python3-shell dependencies
python3: Add dependencies for python3-misc
python3-native: Add "io" to rprovides
piglit: Upgrade version, use python3
.../python/python-3.5-manifest.inc | 2 +- meta/recipes-devtools/python/python-six.inc | 23 ++++++++++++++++++ meta/recipes-devtools/python/python-six_1.10.0.bb | 4 ++++ .../python/python3-native_3.5.1.bb | 2 +- meta/recipes-devtools/python/python3-six_1.10.0.bb | 4 ++++ meta/recipes-devtools/python/python3_3.5.1.bb | 2 +- ...0001-tests-Fix-missing-include-of-Xutil.h.patch | 28 ---------------------- meta/recipes-graphics/piglit/piglit_git.bb | 18 +++++++------- scripts/contrib/python/generate-manifest-3.5.py | 2 +- 9 files changed, 44 insertions(+), 41 deletions(-) create mode 100644 meta/recipes-devtools/python/python-six.inc create mode 100644 meta/recipes-devtools/python/python-six_1.10.0.bb create mode 100644 meta/recipes-devtools/python/python3-six_1.10.0.bb delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch
Signature · 1 line
2.1.4
PATCH 1/5 python-six: Add to oe-core
Recipes are moved from meta-openembedded/meta-python
Changes compared to meta-python version:
* Modified to not inherit pypi
* Fix python-io dependency for python3
* Support native, nativesdk
--- meta/recipes-devtools/python/python-six.inc | 23 ++++++++++++++++++++++ meta/recipes-devtools/python/python-six_1.10.0.bb | 4 ++++ meta/recipes-devtools/python/python3-six_1.10.0.bb | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 meta/recipes-devtools/python/python-six.inc create mode 100644 meta/recipes-devtools/python/python-six_1.10.0.bb create mode 100644 meta/recipes-devtools/python/python3-six_1.10.0.bb
meta/recipes-devtools/python/python-six.inc new file +23 -0
@@ -0,0 +1,23 @@ +SUMMARY = "Python 2 and 3 compatibility library" +HOMEPAGE = "https://pypi.python.org/pypi/six/" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=6f00d4a50713fa859858dd9abaa35b21" + +SRC_URI = "https://files.pythonhosted.org/packages/source/s/six/six-${PV}.tar.gz" +SRC_URI[md5sum] = "34eed507548117b2ab523ab14b2f8b55" +SRC_URI[sha256sum] = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a" + +UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/six/" +UPSTREAM_CHECK_REGEX = "/six/(?P<pver>(\d+[\.\-_]*)+)" + +BBCLASSEXTEND = "native nativesdk" + +S = "${WORKDIR}/six-${PV}" + +do_compile_append() { + ${PYTHON} setup.py -q bdist_egg --dist-dir ./ +} +do_install_append() { + install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/ +}
meta/recipes-devtools/python/python-six_1.10.0.bb new file +4 -0
@@ -0,0 +1,4 @@ +inherit setuptools +require python-six.inc + +RDEPENDS_${PN} += "python-io"
meta/recipes-devtools/python/python3-six_1.10.0.bb new file +4 -0
@@ -0,0 +1,4 @@ +inherit setuptools3 +require python-six.inc + +RDEPENDS_${PN} += "python3-io"
Signature · 1 line
2.1.4
PATCH 2/5 python3: Add compression to python3-shell dependencies
python3-shell needs python3-compression for tarfile.
--- meta/recipes-devtools/python/python-3.5-manifest.inc | 2 +- scripts/contrib/python/generate-manifest-3.5.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python-3.5-manifest.inc +1 -1
@@ -194,7 +194,7 @@ RDEPENDS_${PN}-resource="${PN}-core" FILES_${PN}-resource="${libdir}/python3.5/lib-dynload/resource.*.so " SUMMARY_${PN}-shell="Python shell-like functionality" -RDEPENDS_${PN}-shell="${PN}-core ${PN}-re" +RDEPENDS_${PN}-shell="${PN}-core ${PN}-re ${PN}-compression" FILES_${PN}-shell="${libdir}/python3.5/cmd.* ${libdir}/python3.5/commands.* ${libdir}/python3.5/dircache.* ${libdir}/python3.5/fnmatch.* ${libdir}/python3.5/glob.* ${libdir}/python3.5/popen2.* ${libdir}/python3.5/shlex.* ${libdir}/python3.5/shutil.* " SUMMARY_${PN}-smtpd="Python Simple Mail Transport Daemon"
scripts/contrib/python/generate-manifest-3.5.py +1 -1
@@ -336,7 +336,7 @@ if __name__ == "__main__": m.addPackage( "${PN}-resource", "Python resource control interface", "${PN}-core", "lib-dynload/resource.*.so" ) - m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re", + m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re ${PN}-compression", "cmd.* commands.* dircache.* fnmatch.* glob.* popen2.* shlex.* shutil.*" ) m.addPackage( "${PN}-subprocess", "Python subprocess support", "${PN}-core ${PN}-io ${PN}-re ${PN}-fcntl ${PN}-pickle",
Signature · 1 line
2.1.4
PATCH 3/5 python3: Add dependencies for python3-misc
In reply to Jussi Kukkonenhttp.server requires email.parser. argparse requires codecs and textutils.
--- meta/recipes-devtools/python/python3_3.5.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3_3.5.1.bb +1 -1
@@ -213,7 +213,7 @@ INSANE_SKIP_${PN}-dev += "dev-elf" # catch all the rest (unsorted) PACKAGES += "${PN}-misc" -RDEPENDS_${PN}-misc += "${PN}-core" +RDEPENDS_${PN}-misc += "${PN}-core ${PN}-email ${PN}-codecs ${PN}-textutils" RDEPENDS_${PN}-modules += "${PN}-misc" FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}"
Signature · 1 line
2.1.4
PATCH 4/5 python3-native: Add "io" to rprovides
In reply to Jussi Kukkonen--- meta/recipes-devtools/python/python3-native_3.5.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-native_3.5.1.bb +1 -1
@@ -41,7 +41,7 @@ DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native s inherit native -RPROVIDES += "python3-distutils-native python3-compression-native python3-textutils-native python3-core-native python3-importlib-native" +RPROVIDES += "python3-distutils-native python3-compression-native python3-textutils-native python3-core-native python3-importlib-native python3-io-native" EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip"
Signature · 1 line
2.1.4
PATCH 5/5 piglit: Upgrade version, use python3
In reply to Jussi Kukkonen* Remove backported patch
* Update dependencies to use python3 modules, add depencies added in the new version
--- ...0001-tests-Fix-missing-include-of-Xutil.h.patch | 28 ---------------------- meta/recipes-graphics/piglit/piglit_git.bb | 18 +++++++------- 2 files changed, 9 insertions(+), 37 deletions(-) delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch
meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch deleted +0 -28
@@ -1,28 +0,0 @@ -Upstream-Status: Backport -Signed-off-by: Otavio Salvador <[email protected]> - -From e40e0a25f996d2e205c4bdec2c8a5cc7f74e5065 Mon Sep 17 00:00:00 2001 -From: Otavio Salvador <[email protected]> -Date: Mon, 15 Jun 2015 16:25:30 -0300 -Subject: tests: Fix missing include of Xutil.h - -The EGL tests rely on Xutil.h being included. Some EGL implementation -does not explitly include it by default and then the build fails. - -Signed-off-by: Otavio Salvador <[email protected]> -Reviewed-by: Neil Roberts <[email protected]> - -diff --git a/tests/egl/egl-configless-context.c b/tests/egl/egl-configless-context.c -index 0504a26..154b55c 100644 ---- a/tests/egl/egl-configless-context.c -+++ b/tests/egl/egl-configless-context.c -@@ -32,6 +32,7 @@ - /* Chunks of code in this file are taken from egl-util.c */ - - #include <X11/Xlib.h> -+#include <X11/Xutil.h> - - #include "piglit-util-gl.h" - #include "piglit-util-egl.h" --- -cgit v0.10.2
meta/recipes-graphics/piglit/piglit_git.bb +9 -9
@@ -3,18 +3,18 @@ LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" SRC_URI = "git://anongit.freedesktop.org/piglit \ - file://0001-tests-Fix-missing-include-of-Xutil.h.patch" + " -# From 2015-02-19 -SRCREV = "c4585427913e4cb28994b4bfb11d49778273aa2c" +# From 2016-07-07 +SRCREV = "c39e41a86551eb390b8da23232dc8577639403d0" # (when PV goes above 1.0 remove the trailing r) PV = "1.0+gitr${SRCPV}" S = "${WORKDIR}/git" -DEPENDS = "virtual/libx11 libxrender waffle virtual/libgl libglu python-mako-native python-numpy-native" +DEPENDS = "libpng virtual/libx11 libxrender waffle virtual/libgl libglu python3-mako-native python3-numpy-native python3-six-native" -inherit cmake pythonnative distro_features_check +inherit cmake python3native distro_features_check # depends on virtual/libx11 REQUIRED_DISTRO_FEATURES = "x11"
@@ -34,10 +34,10 @@ do_configure_prepend() { fi } -RDEPENDS_${PN} = "waffle python python-mako python-json python-subprocess \ - python-argparse python-importlib python-unixadmin python-xml \ - python-multiprocessing python-textutils python-netserver python-shell \ - mesa-demos bash \ +RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \ + python3-subprocess python3-misc python3-importlib \ + python3-unixadmin python3-xml python3-multiprocessing \ + python3-six python3-shell python3-io mesa-demos bash \ " INSANE_SKIP_${PN} += "dev-so"
Signature · 1 line
2.1.4
Re: [PATCH 1/5] python-six: Add to oe-core
In reply to Jussi Kukkonenmeta/recipes-devtools/python/python-six.inc line 23
Quoted 7 lines · Jussi Kukkonen
meta/recipes-devtools/python/python-six.inc new file +6
-0+do_compile_append() { + ${PYTHON} setup.py -q bdist_egg --dist-dir ./ +} +do_install_append() { + install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/ +}
Is this actually required? The setuptools class should be doing all the magic, and this appears to be building and installing an egg, which we generally try not to do.
Ross
Re: [PATCH 1/5] python-six: Add to oe-core
Quoted 11 lines · Ross
On 7 July 2016 at 16:39, Jussi Kukkonen <[email protected] <mailto:[email protected]>> wrote:
+do_compile_append() { + ${PYTHON} setup.py -q bdist_egg --dist-dir ./ +} +do_install_append() { + install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/ +}
Quoted 3 lines
Is this actually required? The setuptools class should be doing all the magic, and this appears to be building and installing an egg, which we generally try not to do.
Ross
As far as I remember, if the package uses the setuptools class this should be handled automatically.
Quoted 2 lines
Re: [PATCH 1/5] python-six: Add to oe-core
In reply to Burton, RossQuoted 15 lines · Ross
meta/recipes-devtools/python/python-six.inc line 23
Quoted 7 lines · Jussi Kukkonen
meta/recipes-devtools/python/python-six.inc new file +6
-0+do_compile_append() { + ${PYTHON} setup.py -q bdist_egg --dist-dir ./ +} +do_install_append() { + install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/ +}Is this actually required? The setuptools class should be doing all the magic, and this appears to be building and installing an egg, which we generally try not to do.
If eggs are not wanted (and that seems to make sense) then these functions should be removed ... but I don't understand the commit that introduced this (6b4cee975 in meta-oe):
python-six: Error fix for recipes depend on python-six
If you bitbake recipes which depends on python-six such as python-cryptography. And also your network is not very well. Error will occur as following:
Download error on https://pypi.python.org/simple/six/:
[Errno -5] No address associated with hostname -- Some packages may
not be found!
Couldn't find index page for 'six' (maybe misspelled?) No local packages or download links found for six
So add do_compile_append() to fix it.
Not sure where a URL like that comes from or why it would be accessed during build? Li Xin, any comment?
I'll send a revised patch without the appends.
- Jussi
Re: [PATCH 1/5] python-six: Add to oe-core
Quoted 2 lines · Jussi Kukkonen
Not sure where a URL like that comes from or why it would be accessed during build? Li Xin, any comment?
A few recipes in meta-oe have this issue, for example python-mccabe:
DEBUG: Executing shell function do_compile
Download error on https://pypi.python.org/simple/pytest-runner/: [Errno 110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 110] Connection timed out -- Some packages may not be found!
No local packages or download links found for pytest-runner
Traceback (most recent call last):
File "setup.py", line 57, in <module>
'Topic :: Software Development :: Quality Assurance',
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", line 269, in __init__
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", line 313, in fetch_build_eggs
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 826, in resolve
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 1092, in best_match
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 1104, in obtain
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", line 380, in fetch_build_egg
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/command/easy_install.py", line 659, in easy_install distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/ak/development/poky/build-meta-openembedded/tmp/work/i586-poky-linux/python-mccabe/0.4.0-r0/temp/log.do_compile.3493)
Alex
Re: [PATCH 1/5] python-six: Add to oe-core
Quoted 20 lines · Alexander Kanavin
On 07/11/2016 02:46 PM, Jussi Kukkonen wrote:
Not sure where a URL like that comes from or why it would be accessed
Quoted 2 lines
during build? Li Xin, any comment?
A few recipes in meta-oe have this issue, for example python-mccabe:
DEBUG: Executing shell function
do_compile
Download error on https://pypi.python.org/simple/pytest-runner/: [Errno
110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 110] Connection
timed out -- Some packages may not be found!
No local packages or download links found for pytest-runner
Traceback (most recent call last):
File "setup.py", line 57, in <module>
'Topic :: Software Development :: Quality Assurance',
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/core.py",
Quoted 9 lines
line 111, in setup
_setup_distribution= dist = klass(attrs)
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", line 269, in__init__
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", line 313, infetch_build_eggs
So mccabe recipe doesn't depend on pytest-runner but does have it in "setup_requires": as a result setuptools tries to download and unpack the pytest-runner egg. I think that might be solved by depending on pytest-runner, although "setup_requires" handling does have some issues so I'm not sure about that: https://github.com/pypa/pip/issues/410 .
Interestingly python-cryptography does not have six in "setup_requires" so I still don't understand why it would do this. I'll do a few tests on that before sending the updated patch set.
Jussi
File
Quoted 28 lines
"
/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 826, in resolve
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 1092, inbest_match
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 1104, in obtain
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", line 380, infetch_build_egg
File
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/command/easy_install.py", line 659, ineasy_install
distutils.errors.DistutilsError: Could not find suitable distribution forRequirement.parse('pytest-runner')
WARNING: exit code 1 from a shell command.
ERROR: Function failed:do_compile(log file is located at/home/ak/development/poky/build-meta-openembedded/tmp/work/i586-poky-linux/python-mccabe/0.4.0-r0/temp/log.do_compile.3493)Alex
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [PATCH 1/5] python-six: Add to oe-core
Quoted 3 lines · Jussi Kukkonen
Interestingly python-cryptography does not have six in "
setup_requires" so I still don't understand why it would do this. I'll do a few tests on that before sending the updated patch set.
Maybe it simply used to have that in the past, and no longer does.
Alex
Quoted 4 lines · Jussi Kukkonen
A word of warning to anyone else using piglit: it was big before and has now tripled in size (30000 new tests!). The installed size is over 1.5GB and packaging takes a very long time.
I did a quick hack to the current piglit in master (poky-contrib:ross/piglit) to strip the binaries. We don't get debug symbols (which are 4gb before the upgrade) and build time on my Xeon drops from 10 minutes to 5 minutes.
I think this is an acceptable compromise!
Ross