Patchwork Fixed build of qt4-tools-native on Gentoo

login
register
mail settings
Submitter Ciprian Ciubotariu
Date April 12, 2011, 12:42 p.m.
Message ID <1302612157-7633-1-git-send-email-cheepeero@gmx.net>
Download mbox | patch
Permalink /patch/2189/
State New, archived
Headers show

Comments

Ciprian Ciubotariu - April 12, 2011, 12:42 p.m.
More on the problem can be found at

http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg15734.html

Signed-off-by: Ciprian Ciubotariu <cheepeero@gmx.net>
---
 recipes/qt4/files/hack-out-egl_config.patch |   28 +++++++++++++++++++++++++++
 recipes/qt4/qt4-tools-native.inc            |    1 +
 2 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/qt4/files/hack-out-egl_config.patch

Patch

diff --git a/recipes/qt4/files/hack-out-egl_config.patch b/recipes/qt4/files/hack-out-egl_config.patch
new file mode 100644
index 0000000..4c7be2e
--- /dev/null
+++ b/recipes/qt4/files/hack-out-egl_config.patch
@@ -0,0 +1,28 @@ 
+diff -Naur qt-everywhere-opensource-src-4.6.3-orig/configure qt-everywhere-opensource-src-4.6.3/configure
+--- qt-everywhere-opensource-src-4.6.3-orig/configure	2011-04-11 19:53:09.858229325 +0300
++++ qt-everywhere-opensource-src-4.6.3/configure	2011-04-11 19:53:41.865539747 +0300
+@@ -4949,15 +4949,15 @@
+ if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then
+ 
+     # detect EGL support
+-    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl" "EGL (EGL/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
+-        # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h>
+-        CFG_EGL=yes
+-        CFG_EGL_GLES_INCLUDES=no
+-    elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl4gles1" "EGL (GLES/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
+-        # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h>
+-        CFG_EGL=yes
+-        CFG_EGL_GLES_INCLUDES=yes
+-    fi
++#    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl" "EGL (EGL/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
++#        # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h>
++#        CFG_EGL=yes
++#        CFG_EGL_GLES_INCLUDES=no
++#    elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl4gles1" "EGL (GLES/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
++#        # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h>
++#        CFG_EGL=yes
++#        CFG_EGL_GLES_INCLUDES=yes
++#    fi
+     if ( [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es1cl" ] || [ "$CFG_OPENGL" = "es2" ] ) && [ "$CFG_EGL" != "yes" ]; then
+         echo "The EGL functionality test failed!"
+         echo " EGL is required for OpenGL ES to manage contexts & surfaces."
diff --git a/recipes/qt4/qt4-tools-native.inc b/recipes/qt4/qt4-tools-native.inc
index 4a0ccce..2934751 100644
--- a/recipes/qt4/qt4-tools-native.inc
+++ b/recipes/qt4/qt4-tools-native.inc
@@ -10,6 +10,7 @@  INC_PR = "r10"
 inherit native
 
 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
+           file://hack-out-egl_config.patch \
            file://qt-config.patch \
            file://g++.conf \
            file://linux.conf"