diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2016-07-13 20:00:33 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-20 10:28:48 +0100 |
commit | c3753a8b187c24fcac57c37c8a6d98be64af9f3b (patch) | |
tree | 89554edcd646057532928f5d238efa97f83091b6 /meta/recipes-graphics/piglit | |
parent | b384b724ec51da702ee42ace4c38546fc16f296f (diff) | |
download | poky-c3753a8b187c24fcac57c37c8a6d98be64af9f3b.tar.gz |
piglit: Upgrade version, use python3
* Remove backported patch
* Update dependencies to use python3 modules, add depencies added
in the new version
* Install only stripped binaries to keep size down
* Fix bash-completion install location
(From OE-Core rev: f7193a306cfc3ac0a3fdcf891716a59f5b8178e8)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/piglit')
3 files changed, 50 insertions, 38 deletions
diff --git a/meta/recipes-graphics/piglit/piglit/0001-cmake-install-bash-completions-in-the-right-place.patch b/meta/recipes-graphics/piglit/piglit/0001-cmake-install-bash-completions-in-the-right-place.patch new file mode 100644 index 0000000000..e07e810a73 --- /dev/null +++ b/meta/recipes-graphics/piglit/piglit/0001-cmake-install-bash-completions-in-the-right-place.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 26faa2c157a27a18a9f767976730fe0c115e3af4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Wed, 13 Jul 2016 19:19:02 +0300 | ||
4 | Subject: [PATCH] cmake: install bash-completions in the right place | ||
5 | |||
6 | The completionsdir variable is a full path and should not be | ||
7 | prefixed. | ||
8 | |||
9 | This does mean the files may be installed outside of | ||
10 | CMAKE_INSTALL_PREFIX -- the alternative is more difficult and | ||
11 | means that bash completion files may be installed where | ||
12 | bash-completion can't find them. | ||
13 | |||
14 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
15 | Upstream-Status: Submitted [mailing list] | ||
16 | --- | ||
17 | CMakeLists.txt | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
21 | index 8e2abba..784a8f9 100644 | ||
22 | --- a/CMakeLists.txt | ||
23 | +++ b/CMakeLists.txt | ||
24 | @@ -532,7 +532,7 @@ install ( | ||
25 | if (BASH_COMPLETION_FOUND) | ||
26 | install( | ||
27 | FILES completions/bash/piglit | ||
28 | - DESTINATION ${CMAKE_INSTALL_PREFIX}/${BASH_COMPLETION_COMPLETIONSDIR}/ | ||
29 | + DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR}/ | ||
30 | ) | ||
31 | endif (BASH_COMPLETION_FOUND) | ||
32 | |||
33 | -- | ||
34 | 2.8.1 | ||
35 | |||
diff --git a/meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch b/meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch deleted file mode 100644 index c27cc04f01..0000000000 --- a/meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | |||
4 | From e40e0a25f996d2e205c4bdec2c8a5cc7f74e5065 Mon Sep 17 00:00:00 2001 | ||
5 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
6 | Date: Mon, 15 Jun 2015 16:25:30 -0300 | ||
7 | Subject: tests: Fix missing include of Xutil.h | ||
8 | |||
9 | The EGL tests rely on Xutil.h being included. Some EGL implementation | ||
10 | does not explitly include it by default and then the build fails. | ||
11 | |||
12 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
13 | Reviewed-by: Neil Roberts <neil@linux.intel.com> | ||
14 | |||
15 | diff --git a/tests/egl/egl-configless-context.c b/tests/egl/egl-configless-context.c | ||
16 | index 0504a26..154b55c 100644 | ||
17 | --- a/tests/egl/egl-configless-context.c | ||
18 | +++ b/tests/egl/egl-configless-context.c | ||
19 | @@ -32,6 +32,7 @@ | ||
20 | /* Chunks of code in this file are taken from egl-util.c */ | ||
21 | |||
22 | #include <X11/Xlib.h> | ||
23 | +#include <X11/Xutil.h> | ||
24 | |||
25 | #include "piglit-util-gl.h" | ||
26 | #include "piglit-util-egl.h" | ||
27 | -- | ||
28 | cgit v0.10.2 | ||
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb index 607f236c2a..f5ef364492 100644 --- a/meta/recipes-graphics/piglit/piglit_git.bb +++ b/meta/recipes-graphics/piglit/piglit_git.bb | |||
@@ -3,18 +3,19 @@ LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause" | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" |
4 | 4 | ||
5 | SRC_URI = "git://anongit.freedesktop.org/piglit \ | 5 | SRC_URI = "git://anongit.freedesktop.org/piglit \ |
6 | file://0001-tests-Fix-missing-include-of-Xutil.h.patch" | 6 | file://0001-cmake-install-bash-completions-in-the-right-place.patch \ |
7 | " | ||
7 | 8 | ||
8 | # From 2015-02-19 | 9 | # From 2016-07-07 |
9 | SRCREV = "c4585427913e4cb28994b4bfb11d49778273aa2c" | 10 | SRCREV = "c39e41a86551eb390b8da23232dc8577639403d0" |
10 | # (when PV goes above 1.0 remove the trailing r) | 11 | # (when PV goes above 1.0 remove the trailing r) |
11 | PV = "1.0+gitr${SRCPV}" | 12 | PV = "1.0+gitr${SRCPV}" |
12 | 13 | ||
13 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
14 | 15 | ||
15 | DEPENDS = "virtual/libx11 libxrender waffle virtual/libgl libglu python-mako-native python-numpy-native" | 16 | DEPENDS = "libpng virtual/libx11 libxrender waffle virtual/libgl libglu python3-mako-native python3-numpy-native python3-six-native" |
16 | 17 | ||
17 | inherit cmake pythonnative distro_features_check | 18 | inherit cmake python3native distro_features_check bash-completion |
18 | # depends on virtual/libx11 | 19 | # depends on virtual/libx11 |
19 | REQUIRED_DISTRO_FEATURES = "x11" | 20 | REQUIRED_DISTRO_FEATURES = "x11" |
20 | 21 | ||
@@ -34,10 +35,14 @@ do_configure_prepend() { | |||
34 | fi | 35 | fi |
35 | } | 36 | } |
36 | 37 | ||
37 | RDEPENDS_${PN} = "waffle python python-mako python-json python-subprocess \ | 38 | do_install() { |
38 | python-argparse python-importlib python-unixadmin python-xml \ | 39 | oe_runmake -C ${B} 'DESTDIR=${D}' install/strip |
39 | python-multiprocessing python-textutils python-netserver python-shell \ | 40 | } |
40 | mesa-demos bash \ | 41 | |
42 | RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \ | ||
43 | python3-subprocess python3-misc python3-importlib \ | ||
44 | python3-unixadmin python3-xml python3-multiprocessing \ | ||
45 | python3-six python3-shell python3-io mesa-demos bash \ | ||
41 | " | 46 | " |
42 | 47 | ||
43 | INSANE_SKIP_${PN} += "dev-so" | 48 | INSANE_SKIP_${PN} += "dev-so already-stripped" |