summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/piglit
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2016-07-13 20:00:33 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-20 10:28:48 +0100
commitc3753a8b187c24fcac57c37c8a6d98be64af9f3b (patch)
tree89554edcd646057532928f5d238efa97f83091b6 /meta/recipes-graphics/piglit
parentb384b724ec51da702ee42ace4c38546fc16f296f (diff)
downloadpoky-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')
-rw-r--r--meta/recipes-graphics/piglit/piglit/0001-cmake-install-bash-completions-in-the-right-place.patch35
-rw-r--r--meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch28
-rw-r--r--meta/recipes-graphics/piglit/piglit_git.bb25
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 @@
1From 26faa2c157a27a18a9f767976730fe0c115e3af4 Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Wed, 13 Jul 2016 19:19:02 +0300
4Subject: [PATCH] cmake: install bash-completions in the right place
5
6The completionsdir variable is a full path and should not be
7prefixed.
8
9This does mean the files may be installed outside of
10CMAKE_INSTALL_PREFIX -- the alternative is more difficult and
11means that bash completion files may be installed where
12bash-completion can't find them.
13
14Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
15Upstream-Status: Submitted [mailing list]
16---
17 CMakeLists.txt | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/CMakeLists.txt b/CMakeLists.txt
21index 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--
342.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 @@
1Upstream-Status: Backport
2Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3
4From e40e0a25f996d2e205c4bdec2c8a5cc7f74e5065 Mon Sep 17 00:00:00 2001
5From: Otavio Salvador <otavio@ossystems.com.br>
6Date: Mon, 15 Jun 2015 16:25:30 -0300
7Subject: tests: Fix missing include of Xutil.h
8
9The EGL tests rely on Xutil.h being included. Some EGL implementation
10does not explitly include it by default and then the build fails.
11
12Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13Reviewed-by: Neil Roberts <neil@linux.intel.com>
14
15diff --git a/tests/egl/egl-configless-context.c b/tests/egl/egl-configless-context.c
16index 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--
28cgit 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"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" 3LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0"
4 4
5SRC_URI = "git://anongit.freedesktop.org/piglit \ 5SRC_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
9SRCREV = "c4585427913e4cb28994b4bfb11d49778273aa2c" 10SRCREV = "c39e41a86551eb390b8da23232dc8577639403d0"
10# (when PV goes above 1.0 remove the trailing r) 11# (when PV goes above 1.0 remove the trailing r)
11PV = "1.0+gitr${SRCPV}" 12PV = "1.0+gitr${SRCPV}"
12 13
13S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
14 15
15DEPENDS = "virtual/libx11 libxrender waffle virtual/libgl libglu python-mako-native python-numpy-native" 16DEPENDS = "libpng virtual/libx11 libxrender waffle virtual/libgl libglu python3-mako-native python3-numpy-native python3-six-native"
16 17
17inherit cmake pythonnative distro_features_check 18inherit cmake python3native distro_features_check bash-completion
18# depends on virtual/libx11 19# depends on virtual/libx11
19REQUIRED_DISTRO_FEATURES = "x11" 20REQUIRED_DISTRO_FEATURES = "x11"
20 21
@@ -34,10 +35,14 @@ do_configure_prepend() {
34 fi 35 fi
35} 36}
36 37
37RDEPENDS_${PN} = "waffle python python-mako python-json python-subprocess \ 38do_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
42RDEPENDS_${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
43INSANE_SKIP_${PN} += "dev-so" 48INSANE_SKIP_${PN} += "dev-so already-stripped"