Skip to contentSkip to conversation

qtbase: Fix build with clang

PATCH In review Khem Raj 3 participants 10 messages Aug 24, 2015 – Aug 25, 2015

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/4 qtbase: Fix build with clang

This patch is a backport from upstream qt5 fixes building with clang from meta-clang

---
 recipes-qt/qt5/qtbase-native_git.bb                |  1 +
 .../qt5/qtbase/0015-Fix-build-with-clang-3.7.patch | 71 ++++++++++++++++++++++
 recipes-qt/qt5/qtbase_git.bb                       |  1 +
 3 files changed, 73 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch
recipes-qt/qt5/qtbase-native_git.bb +1 -0
index ebd7280..1d09a19 100644
@@ -24,6 +24,7 @@ SRC_URI += "\
     file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
     file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 
 # common for qtbase-native and nativesdk-qtbase
recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +71 -0

71 lines not on this page · raw message

recipes-qt/qt5/qtbase_git.bb +1 -0
index f472c98..5603fb2 100644
@@ -18,6 +18,7 @@ SRC_URI += "\
     file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
     file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 
 # specific for target qtbase
Signature · 1 line
2.1.4
author
#1 lore raw

PATCH v2 2/4 qtwayland: Fix build for raspberryPi

rpi uses bcom EGL implementation and it has descrepency when it comes to defining 'EGLNativePixmapType', lets typecast the ussage of this type to avoid this sort of errors.

---
 ...egl-Typecast-proper-EGLNativeWindowType-t.patch | 56 ++++++++++++++++++++++
 recipes-qt/qt5/qtwayland_git.bb                    |  1 +
 2 files changed, 57 insertions(+)
 create mode 100644 recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch
recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch new file +56 -0
new file mode 100644
index 0000000..2e1f2c4
@@ -0,0 +1,56 @@
+From 91746518a0cd56d7b0bfda69ba6cf743bf051fb9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 23 Aug 2015 17:33:25 -0700
+Subject: [PATCH] xcomposite-egl: Typecast proper EGLNativeWindowType to
+ eglCreateWindowSurface params
+
+This surfaces on rpi which has slightly different definition of
+EGLNativeWindowType
+
+Fixes errors like
+
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtwayland/5.4.2+gitAUTOINC+182488129c-r0/git/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp:117:26: error: no matching function for call
+      to 'eglCreatePixmapSurface'
+    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,pixmap,attribList.constData());
+                         ^~~~~~~~~~~~~~~~~~~~~~
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/egl.h:270:31: note: candidate function not viable: no known conversion from 'Pixmap' (aka 'unsigned long') to 'EGLNativePixmapType' (aka 'void *') for 3rd argument; take the
+      address of the argument with &
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
+                              ^
+1 error generated.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ .../client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp               | 2 +-
+ .../compositor/xcomposite-egl/xcompositeeglintegration.cpp              | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp b/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
+index 01d6324..e268ede 100644
+--- a/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
++++ b/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
+@@ -122,7 +122,7 @@ void QWaylandXCompositeEGLWindow::createEglSurface()
+     XCompositeRedirectWindow(m_glxIntegration->xDisplay(), m_xWindow, CompositeRedirectManual);
+     XMapWindow(m_glxIntegration->xDisplay(), m_xWindow);
+ 
+-    m_surface = eglCreateWindowSurface(m_glxIntegration->eglDisplay(), m_config, m_xWindow,0);
++    m_surface = eglCreateWindowSurface(m_glxIntegration->eglDisplay(), m_config, (EGLNativeWindowType)m_xWindow,0);
+     if (m_surface == EGL_NO_SURFACE) {
+         qFatal("Could not make eglsurface");
+     }
+diff --git a/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp b/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
+index 2401d67..61664b5 100644
+--- a/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
++++ b/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
+@@ -114,7 +114,7 @@ void XCompositeEglClientBufferIntegration::bindTextureToBuffer(struct ::wl_resou
+     attribList.append(EGL_TEXTURE_2D);
+     attribList.append(EGL_NONE);
+ 
+-    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,pixmap,attribList.constData());
++    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,(EGLNativeWindowType)pixmap,attribList.constData());
+     if (surface == EGL_NO_SURFACE) {
+         qDebug() << "Failed to create eglsurface" << pixmap << compositorBuffer->window();
+     }
+-- 
+2.1.4
+
recipes-qt/qt5/qtwayland_git.bb +1 -0
index 361b54a..0043519 100644
@@ -35,6 +35,7 @@ FILES_${PN}-plugins-dbg += " \
 
 SRC_URI += " \
     file://0001-examples-wayland-include-server-buffer-only-when-bui.patch \
+    file://0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch \
 "
 
 QT_VERSION ?= "5.5.0"
Signature · 1 line
2.1.4
#2 lore raw

Re: [meta-qt5][PATCH V2 2/4] qtwayland: Fix build for raspberryPi

Quoted 5 lines · Khem Raj

rpi uses bcom EGL implementation and it has descrepency when it comes to defining 'EGLNativePixmapType', lets typecast the ussage of this type to avoid this sort of errors.

Upstream-Status?

Quoted 52 lines
---
 ...egl-Typecast-proper-EGLNativeWindowType-t.patch | 56 ++++++++++++++++++++++
 recipes-qt/qt5/qtwayland_git.bb                    |  1 +
 2 files changed, 57 insertions(+)
 create mode 100644 recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch
recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch new file +40 -0
new file mode 100644
index 0000000..2e1f2c4
@@ -0,0 +1,56 @@
+From 91746518a0cd56d7b0bfda69ba6cf743bf051fb9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 23 Aug 2015 17:33:25 -0700
+Subject: [PATCH] xcomposite-egl: Typecast proper EGLNativeWindowType to
+ eglCreateWindowSurface params
+
+This surfaces on rpi which has slightly different definition of
+EGLNativeWindowType
+
+Fixes errors like
+
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtwayland/5.4.2+gitAUTOINC+182488129c-r0/git/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp:117:26: error: no matching function for call
+      to 'eglCreatePixmapSurface'
+    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,pixmap,attribList.constData());
+                         ^~~~~~~~~~~~~~~~~~~~~~
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/egl.h:270:31: note: candidate function not viable: no known conversion from 'Pixmap' (aka 'unsigned long') to 'EGLNativePixmapType' (aka 'void *') for 3rd argument; take the
+      address of the argument with &
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
+                              ^
+1 error generated.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ .../client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp               | 2 +-
+ .../compositor/xcomposite-egl/xcompositeeglintegration.cpp              | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp b/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
+index 01d6324..e268ede 100644
+--- a/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
++++ b/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
+@@ -122,7 +122,7 @@ void QWaylandXCompositeEGLWindow::createEglSurface()
+     XCompositeRedirectWindow(m_glxIntegration->xDisplay(), m_xWindow, CompositeRedirectManual);
+     XMapWindow(m_glxIntegration->xDisplay(), m_xWindow);
+
+-    m_surface = eglCreateWindowSurface(m_glxIntegration->eglDisplay(), m_config, m_xWindow,0);
++    m_surface = eglCreateWindowSurface(m_glxIntegration->eglDisplay(), m_config, (EGLNativeWindowType)m_xWindow,0);
+     if (m_surface == EGL_NO_SURFACE) {
+         qFatal("Could not make eglsurface");
+     }

recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch line 50

Quoted 10 lines
recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch new file +10 -0
+diff --git a/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp b/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
+index 2401d67..61664b5 100644
+--- a/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
++++ b/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
+@@ -114,7 +114,7 @@ void XCompositeEglClientBufferIntegration::bindTextureToBuffer(struct ::wl_resou
+     attribList.append(EGL_TEXTURE_2D);
+     attribList.append(EGL_NONE);
+
+-    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,pixmap,attribList.constData());
++    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,(EGLNativeWindowType)pixmap,attribList.constData());

^ When looking at [1] this does not look correct to me.

Generally I think errors caused by a specific egl implementation should not be fixed in packets using egl - and yes I know we have these hacks in qt.

[1] https://www.khronos.org/registry/egl/sdk/docs/man/html/eglCreatePixmapSurface.xhtml

Andreas

author
#3 lore raw

Re: [meta-qt5][PATCH V2 2/4] qtwayland: Fix build for raspberryPi

Quoted 10 lines · Andreas Müller
Quoted 5 lines · Khem Raj

rpi uses bcom EGL implementation and it has descrepency when it comes to defining 'EGLNativePixmapType', lets typecast the ussage of this type to avoid this sort of errors.

Upstream-Status?

Pending

Quoted 76 lines
Quoted 52 lines

---
...egl-Typecast-proper-EGLNativeWindowType-t.patch | 56 ++++++++++++++++++++++
recipes-qt/qt5/qtwayland_git.bb | 1 +

2 files changed, 57 insertions(+)

create mode 100644 recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch

recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch new file +40 -0
new file mode 100644
index 0000000..2e1f2c4
@@ -0,0 +1,56 @@
+From 91746518a0cd56d7b0bfda69ba6cf743bf051fb9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 23 Aug 2015 17:33:25 -0700
+Subject: [PATCH] xcomposite-egl: Typecast proper EGLNativeWindowType to
+ eglCreateWindowSurface params
+
+This surfaces on rpi which has slightly different definition of
+EGLNativeWindowType
+
+Fixes errors like
+
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtwayland/5.4.2+gitAUTOINC+182488129c-r0/git/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp:117:26: error: no matching function for call
+      to 'eglCreatePixmapSurface'
+    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,pixmap,attribList.constData());
+                         ^~~~~~~~~~~~~~~~~~~~~~
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/raspberrypi2/usr/include/EGL/egl.h:270:31: note: candidate function not viable: no known conversion from 'Pixmap' (aka 'unsigned long') to 'EGLNativePixmapType' (aka 'void *') for 3rd argument; take the
+      address of the argument with &
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
+                              ^
+1 error generated.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ .../client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp               | 2 +-
+ .../compositor/xcomposite-egl/xcompositeeglintegration.cpp              | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp b/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
+index 01d6324..e268ede 100644
+--- a/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
++++ b/src/hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp
+@@ -122,7 +122,7 @@ void QWaylandXCompositeEGLWindow::createEglSurface()
+     XCompositeRedirectWindow(m_glxIntegration->xDisplay(), m_xWindow, CompositeRedirectManual);
+     XMapWindow(m_glxIntegration->xDisplay(), m_xWindow);
+
+-    m_surface = eglCreateWindowSurface(m_glxIntegration->eglDisplay(), m_config, m_xWindow,0);
++    m_surface = eglCreateWindowSurface(m_glxIntegration->eglDisplay(), m_config, (EGLNativeWindowType)m_xWindow,0);
+     if (m_surface == EGL_NO_SURFACE) {
+         qFatal("Could not make eglsurface");
+     }

recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch line 50

Quoted 10 lines
recipes-qt/qt5/qtwayland/0001-xcomposite-egl-Typecast-proper-EGLNativeWindowType-t.patch new file +10 -0
+diff --git a/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp b/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
+index 2401d67..61664b5 100644
+--- a/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
++++ b/src/hardwareintegration/compositor/xcomposite-egl/xcompositeeglintegration.cpp
+@@ -114,7 +114,7 @@ void XCompositeEglClientBufferIntegration::bindTextureToBuffer(struct ::wl_resou
+     attribList.append(EGL_TEXTURE_2D);
+     attribList.append(EGL_NONE);
+
+-    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,pixmap,attribList.constData());
++    EGLSurface surface = eglCreatePixmapSurface(mEglDisplay,config,(EGLNativeWindowType)pixmap,attribList.constData());

^ When looking at [1] this does not look correct to me.

Generally I think errors caused by a specific egl implementation should not be fixed in packets using egl - and yes I know we have these hacks in qt.

[1] https://www.khronos.org/registry/egl/sdk/docs/man/html/eglCreatePixmapSurface.xhtml

Andreas
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#4 lore raw

PATCH v2 3/4 README: Correct syntax for git send-email

In reply to Khem Raj

Add some more help on sending more than 1 patch (if needed)

---
 README | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
README +4 -1
index 06335bb..e9ba2b9 100644
@@ -16,7 +16,10 @@ for detail.
 Send pull requests to [email protected] with '[meta-qt5]' in the subject'
 
 When sending single patches, please using something like:
-'git send-email -M -1 --to [email protected] --subject-prefix=meta-qt5][PATCH'
+
+git send-email -M -1 --to [email protected] --subject-prefix='meta-qt5][PATCH'
+
+Change option '-1' to '-n' for n number of patches in series
 
 You are encouraged to fork the mirror on github[1] to share your
 patches. This is preferred for patch sets consisting of more than one
Signature · 1 line
2.1.4
author
#5 lore raw

PATCH v2 4/4 recipes, conf: Direct QT_GIT to use github mirrors

In reply to Khem Raj

This helps in load balancing code.qt.io may be overloaded and bails out occasionally when doing fresh clones

---
 conf/layer.conf                              | 4 ++--
 recipes-qt/examples/qt5everywheredemo_1.0.bb | 2 +-
 recipes-qt/qt5/qt5-git.inc                   | 2 +-
 recipes-qt/qt5/qtwebengine_git.bb            | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
conf/layer.conf +2 -2
index 92558b3..f83bd96 100644
@@ -5,7 +5,7 @@
 # Therefore if you want a given layer to be considered high priority
 # for the .inc and .conf etc. then consider it adding at the beginning
 # of BBPATH. For bblayers bitbake will use BBFILES_PRIORITY to resolve
-# the recipe contention so the order of directories in BBFILES does 
+# the recipe contention so the order of directories in BBFILES does
 # not matter.
 
 # We have a conf and classes directory, append to BBPATH
@@ -27,4 +27,4 @@ LICENSE_PATH += "${LAYERDIR}/licenses"
 
 IMAGE_FEATURES[validitems] += "qtcreator-debug"
 
-QT_GIT ?= "git://code.qt.io"
+QT_GIT ?= "git://github.com/qtproject"
recipes-qt/examples/qt5everywheredemo_1.0.bb +1 -1
index 0546b00..057aaaa 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://main.cpp;md5=1187cb795a0f96bce64e63dd1a67dc2b"
 DEPENDS = "qtdeclarative qtgraphicaleffects"
 
 SRCREV = "c17fe9e0ec0882ac4c4dc1168095f569acab5d09"
-SRC_URI = "${QT_GIT}/qt-labs/qt5-everywhere-demo.git"
+SRC_URI = "${QT_GIT}/qt-labs-qt5-everywhere-demo"
 
 S = "${WORKDIR}/git/QtDemo"
 
recipes-qt/qt5/qt5-git.inc +1 -1
index ea37b55..b73ce4f 100644
@@ -5,7 +5,7 @@ QT_MODULE_BRANCH ?= "5.5"
 
 # each module needs to define valid SRCREV
 SRC_URI = " \
-    ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \
+    ${QT_GIT}/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \
 "
 
 S = "${WORKDIR}/git"
recipes-qt/qt5/qtwebengine_git.bb +1 -1
index 2933bf7..27873b7 100644
@@ -75,7 +75,7 @@ RDEPENDS_${PN}-examples += " \
 QT_MODULE_BRANCH_CHROMIUM = "40.0.2214-based"
 
 SRC_URI += " \
-    ${QT_GIT}/qt/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};destsuffix=git/src/3rdparty \
+    ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};destsuffix=git/src/3rdparty \
     file://0001-functions.prf-Don-t-match-QMAKE_EXT_CPP-or-QMAKE_EXT.patch \
     file://0002-functions.prf-Make-sure-we-only-use-the-file-name-to.patch \
     file://0003-functions.prf-allow-build-for-linux-oe-g-platform.patch \
Signature · 1 line
2.1.4
#6 lore raw
In reply to Khem Raj

Is it needed for nativesdk-qtbase as well?

Quoted 142 lines · Khem Raj

This patch is a backport from upstream qt5 fixes building with clang from meta-clang

---
 recipes-qt/qt5/qtbase-native_git.bb                |  1 +
 .../qt5/qtbase/0015-Fix-build-with-clang-3.7.patch | 71
++++++++++++++++++++++
 recipes-qt/qt5/qtbase_git.bb                       |  1 +
 3 files changed, 73 insertions(+)
 create mode 100644

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch

recipes-qt/qt5/ renamed from recipes-qt/qt5/qtbase-native_git.bb +0 -0

qtbase-native_git.bb
index ebd7280..1d09a19 100644

recipes-qt/qt5/qtbase-native_git.bb +1 -0
@@ -24,6 +24,7 @@ SRC_URI += "\
 
 file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
 
 file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 # common for qtbase-native and nativesdk-qtbase
recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +13 -0
new file mode 100644
index 0000000..181d63c
@@ -0,0 +1,71 @@
+This is backport of https://codereview.qt-project.org/#/c/121545/
+
+From 6a6acc496728ce96198d27f9ddd44c2367758d42 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 23 Aug 2015 15:19:41 -0700
+Subject: [PATCH] Fix build with clang 3.7
+
+Nullable is a language extension in clang 3.7 (indicating whether or
+not a pointer can be null).
+http://clang.llvm.org/docs/AttributeReference.html#nullable
+Using it as a class name breaks building with this compiler
+
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:241:1:

error: declaration of anonymous

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +4 -0
+      struct must be a definition
+struct _Nullable: public std::unary_function<Name, bool>
+^
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:241:56:

error: expected unqualified-id

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +3 -0
+struct _Nullable: public std::unary_function<Name, bool>
+                                                       ^
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:303:98:

error: expected expression
+ NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (_Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +2 -0
+
                       ^
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:638:107:

error: expected expression
+ NameList::iterator first_not_nullable = std::find_if
(dot, rule->rhs.end (), std::not1 (_Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +29 -0
+
                                ^
+4 errors generated.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/tools/qlalr/lalr.cpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/tools/qlalr/lalr.cpp b/src/tools/qlalr/lalr.cpp
+index be1df7d..55ef056 100644
+--- a/src/tools/qlalr/lalr.cpp
++++ b/src/tools/qlalr/lalr.cpp
+@@ -238,11 +238,11 @@ void Grammar::buildExtendedGrammar ()
+   non_terminals.insert (accept_symbol);
+ }
+
+-struct _Nullable: public std::unary_function<Name, bool>
++struct Nullable: public std::unary_function<Name, bool>
+ {
+   Automaton *_M_automaton;
+
+-  _Nullable (Automaton *aut):
++  Nullable (Automaton *aut):
+     _M_automaton (aut) {}
+
+   bool operator () (Name name) const
+@@ -300,7 +300,7 @@ void Automaton::buildNullables ()
+
+       for (RulePointer rule = _M_grammar->rules.begin (); rule !=

_M_grammar->rules.end (); ++rule)
+ {
+- NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (_Nullable (this)));
++ NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +8 -0
+
+           if (nn == rule->rhs.end ())
+             changed |= nullables.insert (rule->lhs).second;
+@@ -635,7 +635,7 @@ void Automaton::buildIncludesDigraph ()
+                   if (! _M_grammar->isNonTerminal (*A))
+                     continue;
+
+-                  NameList::iterator first_not_nullable = std::find_if

(dot, rule->rhs.end (), std::not1 (_Nullable (this)));
++ NameList::iterator first_not_nullable = std::find_if
(dot, rule->rhs.end (), std::not1 (Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +6 -0
+                   if (first_not_nullable != rule->rhs.end ())
+                     continue;
+
+--
+2.1.4
+
recipes-qt/qt5/qtbase_git.bb +1 -0
index f472c98..5603fb2 100644
@@ -18,6 +18,7 @@ SRC_URI += "\
 
 file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
 
 file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 # specific for target qtbase
--
2.1.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#7 lore raw
Quoted 1 line · Martin Jansa

Is it needed for nativesdk-qtbase as well?

one can still use clang-native to compile native packages, as of now I do not enable clang for native packages by default but its possible and for consistency, it will be better to have them in both native and target recipes

Quoted 150 lines · Khem Raj
Quoted 137 lines

This patch is a backport from upstream qt5 fixes building with clang from meta-clang

---
 recipes-qt/qt5/qtbase-native_git.bb                |  1 +
 .../qt5/qtbase/0015-Fix-build-with-clang-3.7.patch | 71
++++++++++++++++++++++
 recipes-qt/qt5/qtbase_git.bb                       |  1 +
 3 files changed, 73 insertions(+)
 create mode 100644

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch

recipes-qt/qt5/ renamed from recipes-qt/qt5/qtbase-native_git.bb +0 -0

qtbase-native_git.bb
index ebd7280..1d09a19 100644

recipes-qt/qt5/qtbase-native_git.bb +1 -0
@@ -24,6 +24,7 @@ SRC_URI += "\
 
 file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
 
 file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 # common for qtbase-native and nativesdk-qtbase
recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +13 -0
new file mode 100644
index 0000000..181d63c
@@ -0,0 +1,71 @@
+This is backport of https://codereview.qt-project.org/#/c/121545/
+
+From 6a6acc496728ce96198d27f9ddd44c2367758d42 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 23 Aug 2015 15:19:41 -0700
+Subject: [PATCH] Fix build with clang 3.7
+
+Nullable is a language extension in clang 3.7 (indicating whether or
+not a pointer can be null).
+http://clang.llvm.org/docs/AttributeReference.html#nullable
+Using it as a class name breaks building with this compiler
+
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:241:1:

error: declaration of anonymous

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +4 -0
+      struct must be a definition
+struct _Nullable: public std::unary_function<Name, bool>
+^
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:241:56:

error: expected unqualified-id

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +3 -0
+struct _Nullable: public std::unary_function<Name, bool>
+                                                       ^
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:303:98:

error: expected expression
+ NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (_Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +2 -0
+
                       ^
+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:638:107:

error: expected expression
+ NameList::iterator first_not_nullable = std::find_if
(dot, rule->rhs.end (), std::not1 (_Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +29 -0
+
                                ^
+4 errors generated.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/tools/qlalr/lalr.cpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/tools/qlalr/lalr.cpp b/src/tools/qlalr/lalr.cpp
+index be1df7d..55ef056 100644
+--- a/src/tools/qlalr/lalr.cpp
++++ b/src/tools/qlalr/lalr.cpp
+@@ -238,11 +238,11 @@ void Grammar::buildExtendedGrammar ()
+   non_terminals.insert (accept_symbol);
+ }
+
+-struct _Nullable: public std::unary_function<Name, bool>
++struct Nullable: public std::unary_function<Name, bool>
+ {
+   Automaton *_M_automaton;
+
+-  _Nullable (Automaton *aut):
++  Nullable (Automaton *aut):
+     _M_automaton (aut) {}
+
+   bool operator () (Name name) const
+@@ -300,7 +300,7 @@ void Automaton::buildNullables ()
+
+       for (RulePointer rule = _M_grammar->rules.begin (); rule !=

_M_grammar->rules.end (); ++rule)
+ {
+- NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (_Nullable (this)));
++ NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +8 -0
+
+           if (nn == rule->rhs.end ())
+             changed |= nullables.insert (rule->lhs).second;
+@@ -635,7 +635,7 @@ void Automaton::buildIncludesDigraph ()
+                   if (! _M_grammar->isNonTerminal (*A))
+                     continue;
+
+-                  NameList::iterator first_not_nullable = std::find_if

(dot, rule->rhs.end (), std::not1 (_Nullable (this)));
++ NameList::iterator first_not_nullable = std::find_if
(dot, rule->rhs.end (), std::not1 (Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +6 -0
+                   if (first_not_nullable != rule->rhs.end ())
+                     continue;
+
+--
+2.1.4
+
recipes-qt/qt5/qtbase_git.bb +1 -0
index f472c98..5603fb2 100644
@@ -18,6 +18,7 @@ SRC_URI += "\
 
 file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
 
 file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 # specific for target qtbase
--
2.1.4
Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw

It's added in "shared" section of SRC_URI patches, so for consistency it should be applied in nativesdk-qtbase as well :).

Quoted 174 lines · Khem Raj
Quoted 1 line · Martin Jansa

Is it needed for nativesdk-qtbase as well?

one can still use clang-native to compile native packages, as of now I do not enable clang for native packages by default but its possible and for consistency, it will be better to have them in both native and target recipes

Quoted 16 lines · Khem Raj
Quoted 14 lines

This patch is a backport from upstream qt5 fixes building with clang from meta-clang

---
 recipes-qt/qt5/qtbase-native_git.bb                |  1 +
 .../qt5/qtbase/0015-Fix-build-with-clang-3.7.patch | 71
++++++++++++++++++++++
 recipes-qt/qt5/qtbase_git.bb                       |  1 +
 3 files changed, 73 insertions(+)
 create mode 100644

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch

Quoted 8 lines

recipes-qt/qt5/qtbase-native_git.bb SRC_URI += "\ · line 25

Quoted 8 lines
recipes-qt/qt5/ renamed from recipes-qt/qt5/qtbase-native_git.bb +0 -0

qtbase-native_git.bb
index ebd7280..1d09a19 100644

recipes-qt/qt5/qtbase-native_git.bb +0 -0
@@ -24,6 +24,7 @@ SRC_URI += "\
 
 file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch

\

Quoted 2 lines

recipes-qt/qt5/qtbase-native_git.bb SRC_URI += "\ · line 26

Quoted 2 lines
recipes-qt/qt5/qtbase-native_git.bb +0 -0
 file://0006-configure-bump-path-length-from-256-to-512-character.patch

\

Quoted 17 lines
Quoted 17 lines
recipes-qt/qt5/qtbase-native_git.bb +1 -0
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 
 # common for qtbase-native and nativesdk-qtbase
recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +5 -0
new file mode 100644
index 0000000..181d63c
@@ -0,0 +1,71 @@
+This is backport of https://codereview.qt-project.org/#/c/121545/
+
+From 6a6acc496728ce96198d27f9ddd44c2367758d42 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 23 Aug 2015 15:19:41 -0700
Quoted 8 lines

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch line 12

Quoted 8 lines
recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +7 -0
+Subject: [PATCH] Fix build with clang 3.7
+
+Nullable is a language extension in clang 3.7 (indicating whether or
+not a pointer can be null).
+http://clang.llvm.org/docs/AttributeReference.html#nullable
+Using it as a class name breaks building with this compiler
+

+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:241:1:

Quoted 5 lines

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch line 16

Quoted 5 lines

error: declaration of anonymous

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +3 -0
+      struct must be a definition
+struct _Nullable: public std::unary_function<Name, bool>
+^

+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:241:56:

Quoted 4 lines

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch

Quoted 4 lines

error: expected unqualified-id

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +2 -0
+struct _Nullable: public std::unary_function<Name, bool>
+                                                       ^

+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:303:98:

Quoted 6 lines
Quoted 6 lines

error: expected expression
+ NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (_Nullable (this)));
+

                       ^

+/mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/src/tools/qlalr/lalr.cpp:638:107:

Quoted 49 lines
Quoted 49 lines

error: expected expression
+ NameList::iterator first_not_nullable = std::find_if
(dot, rule->rhs.end (), std::not1 (_Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +29 -0
+
                                ^
+4 errors generated.
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/tools/qlalr/lalr.cpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/tools/qlalr/lalr.cpp b/src/tools/qlalr/lalr.cpp
+index be1df7d..55ef056 100644
+--- a/src/tools/qlalr/lalr.cpp
++++ b/src/tools/qlalr/lalr.cpp
+@@ -238,11 +238,11 @@ void Grammar::buildExtendedGrammar ()
+   non_terminals.insert (accept_symbol);
+ }
+
+-struct _Nullable: public std::unary_function<Name, bool>
++struct Nullable: public std::unary_function<Name, bool>
+ {
+   Automaton *_M_automaton;
+
+-  _Nullable (Automaton *aut):
++  Nullable (Automaton *aut):
+     _M_automaton (aut) {}
+
+   bool operator () (Name name) const
+@@ -300,7 +300,7 @@ void Automaton::buildNullables ()
+
+       for (RulePointer rule = _M_grammar->rules.begin (); rule !=

_M_grammar->rules.end (); ++rule)
+ {
+- NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (_Nullable (this)));
++ NameList::iterator nn = std::find_if (rule->rhs.begin (),
rule->rhs.end (), std::not1 (Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +8 -0
+
+           if (nn == rule->rhs.end ())
+             changed |= nullables.insert (rule->lhs).second;
+@@ -635,7 +635,7 @@ void Automaton::buildIncludesDigraph ()
+                   if (! _M_grammar->isNonTerminal (*A))
+                     continue;
+
+-                  NameList::iterator first_not_nullable = std::find_if

(dot, rule->rhs.end (), std::not1 (_Nullable (this)));
++ NameList::iterator first_not_nullable = std::find_if

Quoted 8 lines

recipes-qt/qt5/

Quoted 8 lines

(dot, rule->rhs.end (), std::not1 (Nullable (this)));

recipes-qt/qt5/qtbase/0015-Fix-build-with-clang-3.7.patch new file +6 -0
+                   if (first_not_nullable != rule->rhs.end ())
+                     continue;
+
+--
+2.1.4
+
recipes-qt/qt5/ renamed from recipes-qt/qt5/qtbase_git.bb +0 -0

qtbase_git.bb

Quoted 6 lines

recipes-qt/qt5/qtbase_git.bb SRC_URI += "\ · line 19

Quoted 6 lines

index f472c98..5603fb2 100644

recipes-qt/qt5/qtbase_git.bb +0 -0
@@ -18,6 +18,7 @@ SRC_URI += "\
 
 file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch

\

Quoted 2 lines

recipes-qt/qt5/qtbase_git.bb SRC_URI += "\ · line 20

Quoted 2 lines
recipes-qt/qt5/qtbase_git.bb +0 -0
 file://0006-configure-bump-path-length-from-256-to-512-character.patch

\

Quoted 14 lines
Quoted 8 lines
recipes-qt/qt5/qtbase_git.bb +1 -0
     file://0008-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0015-Fix-build-with-clang-3.7.patch \
 "
 
 # specific for target qtbase
--
2.1.4
Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

PATCH v3 1/1 qtbase: Fix build with clang

From: Khem Raj <[email protected]>

This patch is a backport from upstream qt5 fixes building with clang from meta-clang

---
 recipes-qt/qt5/nativesdk-qtbase_git.bb             |   7 +-
 recipes-qt/qt5/qtbase-native_git.bb                |   5 +-
 recipes-qt/qt5/qtbase/0008-Always-build-uic.patch  |  31 -----
 .../qt5/qtbase/0008-Fix-build-with-clang-3.7.patch |  72 +++++++++++
 ...-build-it-in-configure-but-allow-to-build.patch |  68 -----------
 ...external-hostbindir-option-for-native-sdk.patch | 134 ---------------------
 recipes-qt/qt5/qtbase/0009-Always-build-uic.patch  |  31 +++++
 ...Invert-conditional-for-defining-QT_SOCKLE.patch |  36 ------
 ...-build-it-in-configure-but-allow-to-build.patch |  68 +++++++++++
 ...external-hostbindir-option-for-native-sdk.patch | 134 +++++++++++++++++++++
 ...reserve-built-qmake-and-swap-with-native-.patch |  30 -----
 ...Invert-conditional-for-defining-QT_SOCKLE.patch |  36 ++++++
 ...reserve-built-qmake-and-swap-with-native-.patch |  30 +++++
 recipes-qt/qt5/qtbase_git.bb                       |   5 +-
 14 files changed, 381 insertions(+), 306 deletions(-)
 delete mode 100644 recipes-qt/qt5/qtbase/0008-Always-build-uic.patch
 create mode 100644 recipes-qt/qt5/qtbase/0008-Fix-build-with-clang-3.7.patch
 delete mode 100644 recipes-qt/qt5/qtbase/0008-qmake-don-t-build-it-in-configure-but-allow-to-build.patch
 delete mode 100644 recipes-qt/qt5/qtbase/0009-Add-external-hostbindir-option-for-native-sdk.patch
 create mode 100644 recipes-qt/qt5/qtbase/0009-Always-build-uic.patch
 delete mode 100644 recipes-qt/qt5/qtbase/0009-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch
 create mode 100644 recipes-qt/qt5/qtbase/0009-qmake-don-t-build-it-in-configure-but-allow-to-build.patch
 create mode 100644 recipes-qt/qt5/qtbase/0010-Add-external-hostbindir-option-for-native-sdk.patch
 delete mode 100644 recipes-qt/qt5/qtbase/0010-configure-preserve-built-qmake-and-swap-with-native-.patch
 create mode 100644 recipes-qt/qt5/qtbase/0010-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch
 create mode 100644 recipes-qt/qt5/qtbase/0011-configure-preserve-built-qmake-and-swap-with-native-.patch
recipes-qt/qt5/nativesdk-qtbase_git.bb +4 -3
index 28e6d09..320cad6 100644
@@ -28,17 +28,18 @@ SRC_URI += "\
     file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
     file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0007-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0008-Fix-build-with-clang-3.7.patch \
 "
 
 # common for qtbase-native and nativesdk-qtbase
 SRC_URI += " \
-    file://0008-Always-build-uic.patch \
-    file://0009-Add-external-hostbindir-option-for-native-sdk.patch \
+    file://0009-Always-build-uic.patch \
+    file://0010-Add-external-hostbindir-option-for-native-sdk.patch \
 "
 
 # specific for nativesdk-qtbase
 SRC_URI += " \
-    file://0010-configure-preserve-built-qmake-and-swap-with-native-.patch \
+    file://0011-configure-preserve-built-qmake-and-swap-with-native-.patch \
 "
 
 # CMake's toolchain configuration of nativesdk-qtbase
recipes-qt/qt5/qtbase-native_git.bb +3 -2
index e449b01..ac68f2b 100644
@@ -24,12 +24,13 @@ SRC_URI += "\
     file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
     file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0007-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0008-Fix-build-with-clang-3.7.patch \
 "
 
 # common for qtbase-native and nativesdk-qtbase
 SRC_URI += " \
-    file://0008-Always-build-uic.patch \
-    file://0009-Add-external-hostbindir-option-for-native-sdk.patch \
+    file://0009-Always-build-uic.patch \
+    file://0010-Add-external-hostbindir-option-for-native-sdk.patch \
 "
 
 CLEANBROKEN = "1"
recipes-qt/qt5/qtbase/0008-Always-build-uic.patch deleted +0 -31
deleted file mode 100644
index 11e1bcb..0000000
@@ -1,31 +0,0 @@
-From 7159760b75cc338faee3e95d26d3aea377473681 Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-Date: Sat, 16 Nov 2013 00:32:30 +0100
-Subject: [PATCH 08/10] Always build uic
-
-Even if we are not building gui or widgets. This tool is needed later
-as a native tool when compiling the target.
-
-Change-Id: I257668ac28c22b192e7ec7736e6c23fa3be6bab6
-Signed-off-by: Mikko Levonmaa <[email protected]>
-Signed-off-by: Martin Jansa <[email protected]>
----
- src/src.pro | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/src.pro b/src/src.pro
-index b4d62aa..5e19215 100644
---- a/src/src.pro
-+++ b/src/src.pro
-@@ -182,7 +182,7 @@ contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent
-         }
-     }
- }
--SUBDIRS += src_plugins src_tools_qdoc
-+SUBDIRS += src_plugins src_tools_qdoc src_tools_uic
- 
- nacl: SUBDIRS -= src_network src_testlib
- 
--- 
-2.5.0
-
recipes-qt/qt5/qtbase/0008-Fix-build-with-clang-3.7.patch new file +72 -0

72 lines not on this page · raw message

recipes-qt/qt5/qtbase/0008-qmake-don-t-build-it-in-configure-but-allow-to-build.patch deleted +0 -68

68 lines not on this page · raw message

recipes-qt/qt5/qtbase/0009-Add-external-hostbindir-option-for-native-sdk.patch deleted +0 -134

134 lines not on this page · raw message

recipes-qt/qt5/qtbase/0009-Always-build-uic.patch new file +31 -0
new file mode 100644
index 0000000..59266f4
@@ -0,0 +1,31 @@
+From c6a58549ef110a31960fca80f6d3dcdcf4d9176a Mon Sep 17 00:00:00 2001
+From: Martin Jansa <[email protected]>
+Date: Sat, 16 Nov 2013 00:32:30 +0100
+Subject: [PATCH 09/11] Always build uic
+
+Even if we are not building gui or widgets. This tool is needed later
+as a native tool when compiling the target.
+
+Change-Id: I257668ac28c22b192e7ec7736e6c23fa3be6bab6
+Signed-off-by: Mikko Levonmaa <[email protected]>
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ src/src.pro | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/src.pro b/src/src.pro
+index b4d62aa..5e19215 100644
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -182,7 +182,7 @@ contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent
+         }
+     }
+ }
+-SUBDIRS += src_plugins src_tools_qdoc
++SUBDIRS += src_plugins src_tools_qdoc src_tools_uic
+ 
+ nacl: SUBDIRS -= src_network src_testlib
+ 
+-- 
+2.5.0
+
recipes-qt/qt5/qtbase/0009-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch deleted +0 -36
deleted file mode 100644
index 3be238b..0000000
@@ -1,36 +0,0 @@
-From 168bf7753c648e7599ab9967501e74373037f5e9 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Mon, 8 Jun 2015 13:59:25 -0700
-Subject: [PATCH 9/9] linux-oe-g++: Invert conditional for defining
- QT_SOCKLEN_T
-
-This helps to make sure that QT_SOCKLEN_T is defined to be 'int'
-only when its glibc < 2 and not also for the libraries which may define
-it as per standards but are not glibc, e.g. musl
-
-Signed-off-by: Khem Raj <[email protected]>
----
- mkspecs/linux-oe-g++/qplatformdefs.h | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h
-index dd12003..8623651 100644
---- a/mkspecs/linux-oe-g++/qplatformdefs.h
-+++ b/mkspecs/linux-oe-g++/qplatformdefs.h
-@@ -86,10 +86,10 @@
- 
- #undef QT_SOCKLEN_T
- 
--#if defined(__GLIBC__) && (__GLIBC__ >= 2)
--#define QT_SOCKLEN_T            socklen_t
--#else
-+#if defined(__GLIBC__) && (__GLIBC__ < 2)
- #define QT_SOCKLEN_T            int
-+#else
-+#define QT_SOCKLEN_T            socklen_t
- #endif
- 
- #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
--- 
-2.5.0
-
recipes-qt/qt5/qtbase/0009-qmake-don-t-build-it-in-configure-but-allow-to-build.patch new file +68 -0

68 lines not on this page · raw message

recipes-qt/qt5/qtbase/0010-Add-external-hostbindir-option-for-native-sdk.patch new file +134 -0

134 lines not on this page · raw message

recipes-qt/qt5/qtbase/0010-configure-preserve-built-qmake-and-swap-with-native-.patch deleted +0 -30
deleted file mode 100644
index 109c7d1..0000000
@@ -1,30 +0,0 @@
-From ee09941be5f00409029497b65358f8b8d3db91de Mon Sep 17 00:00:00 2001
-From: Denys Dmytriyenko <[email protected]>
-Date: Mon, 11 Nov 2013 20:22:34 -0500
-Subject: [PATCH 10/10] configure: preserve built qmake and swap with native
- one
-
-Let configure script build the real qmake, but right after it's built, swap
-it with a native qmake for further internal use, preserving the real one.
-
-Signed-off-by: Denys Dmytriyenko <[email protected]>
----
- configure | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/configure b/configure
-index 1d2157f..bea14af 100755
---- a/configure
-+++ b/configure
-@@ -4099,6 +4099,8 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
-         echo "Done."
-     fi
- fi # Build qmake
-+mv "$outpath/bin/qmake" "$outpath/bin/qmake-real"
-+mv "$outpath/bin/qmake-native" "$outpath/bin/qmake"
- 
- echo "Running configuration tests..."
- 
--- 
-2.5.0
-
recipes-qt/qt5/qtbase/0010-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch new file +36 -0
new file mode 100644
index 0000000..0069a17
@@ -0,0 +1,36 @@
+From bae2c6afb951d1352845ca257fdc2389f3fe851e Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 8 Jun 2015 13:59:25 -0700
+Subject: [PATCH 10/10] linux-oe-g++: Invert conditional for defining
+ QT_SOCKLEN_T
+
+This helps to make sure that QT_SOCKLEN_T is defined to be 'int'
+only when its glibc < 2 and not also for the libraries which may define
+it as per standards but are not glibc, e.g. musl
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ mkspecs/linux-oe-g++/qplatformdefs.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h
+index dd12003..8623651 100644
+--- a/mkspecs/linux-oe-g++/qplatformdefs.h
++++ b/mkspecs/linux-oe-g++/qplatformdefs.h
+@@ -86,10 +86,10 @@
+ 
+ #undef QT_SOCKLEN_T
+ 
+-#if defined(__GLIBC__) && (__GLIBC__ >= 2)
+-#define QT_SOCKLEN_T            socklen_t
+-#else
++#if defined(__GLIBC__) && (__GLIBC__ < 2)
+ #define QT_SOCKLEN_T            int
++#else
++#define QT_SOCKLEN_T            socklen_t
+ #endif
+ 
+ #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
+-- 
+2.5.0
+
recipes-qt/qt5/qtbase/0011-configure-preserve-built-qmake-and-swap-with-native-.patch new file +30 -0
new file mode 100644
index 0000000..1bfe825
@@ -0,0 +1,30 @@
+From cef1ac9fa399ad5c57480de26a1ef441414f125c Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 11 Nov 2013 20:22:34 -0500
+Subject: [PATCH 11/11] configure: preserve built qmake and swap with native
+ one
+
+Let configure script build the real qmake, but right after it's built, swap
+it with a native qmake for further internal use, preserving the real one.
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ configure | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure b/configure
+index 1d2157f..bea14af 100755
+--- a/configure
++++ b/configure
+@@ -4099,6 +4099,8 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
+         echo "Done."
+     fi
+ fi # Build qmake
++mv "$outpath/bin/qmake" "$outpath/bin/qmake-real"
++mv "$outpath/bin/qmake-native" "$outpath/bin/qmake"
+ 
+ echo "Running configuration tests..."
+ 
+-- 
+2.5.0
+
recipes-qt/qt5/qtbase_git.bb +3 -2
index e1d208d..0d3f685 100644
@@ -18,12 +18,13 @@ SRC_URI += "\
     file://0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch \
     file://0006-configure-bump-path-length-from-256-to-512-character.patch \
     file://0007-QOpenGLPaintDevice-sub-area-support.patch \
+    file://0008-Fix-build-with-clang-3.7.patch \
 "
 
 # specific for target qtbase
 SRC_URI += "\
-    file://0008-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \
-    file://0009-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \
+    file://0009-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \
+    file://0010-linux-oe-g-Invert-conditional-for-defining-QT_SOCKLE.patch \
 "
 
 DEPENDS += "qtbase-native"
Signature · 1 line
2.5.0