summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2016-10-20 14:22:57 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2016-10-27 12:46:53 +0000
commitf3f7d8ef1ee02d3a2e691657a0ac26cb0261eda6 (patch)
treecf92f4b22809a47415e30a9d405d232cd7214ddc /recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
parent429a8e9a0b720b2ca1e66fff921888bbdef3e378 (diff)
downloadmeta-qt5-f3f7d8ef1ee02d3a2e691657a0ac26cb0261eda6.tar.gz
qt5: update submodules
Add more PACKAGECONFIGs for qtbase. Merge the two qtwayland recipes to one that supports all three targets (target, native, nativesdk). Previous workaround removed and new ones added for: QTBUG-56656, QTBUG-56666 Reduce number of patches applied to qtbase. Change-Id: I6b82fd46aaade4f14cf61e29adb7fc984070333b Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> Reviewed-by: Jonathan Liu <net147@gmail.com> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch')
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch132
1 files changed, 14 insertions, 118 deletions
diff --git a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
index 5f703dac..df2016e1 100644
--- a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
+++ b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
@@ -1,4 +1,4 @@
1From 93c50c089f2f6d7aa1cd947386813e368100c3c6 Mon Sep 17 00:00:00 2001 1From 2784921c40d0b523c75e613e48b7fd1e90ba3ef1 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH] Add linux-oe-g++ platform 4Subject: [PATCH] Add linux-oe-g++ platform
@@ -20,19 +20,17 @@ Upstream-Status: Inappropriate [embedded specific]
20Change-Id: I0591ed5da0d61d7cf1509d420e6b293582f1863c 20Change-Id: I0591ed5da0d61d7cf1509d420e6b293582f1863c
21Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 21Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
22--- 22---
23 configure | 2 +- 23 configure | 2 +-
24 mkspecs/features/configure.prf | 4 +- 24 mkspecs/features/configure.prf | 4 ++--
25 mkspecs/features/qt_functions.prf | 2 +- 25 mkspecs/features/qt_functions.prf | 2 +-
26 mkspecs/linux-oe-g++/qmake.conf | 43 +++++++++++++++ 26 mkspecs/linux-oe-g++/qmake.conf | 43 ++++++++++++++++++++++++++++++++++++
27 mkspecs/linux-oe-g++/qplatformdefs.h | 100 +++++++++++++++++++++++++++++++++++ 27 mkspecs/linux-oe-g++/qplatformdefs.h | 1 +
28 mkspecs/oe-device-extra.pri | 0 28 5 files changed, 48 insertions(+), 4 deletions(-)
29 6 files changed, 147 insertions(+), 4 deletions(-)
30 create mode 100644 mkspecs/linux-oe-g++/qmake.conf 29 create mode 100644 mkspecs/linux-oe-g++/qmake.conf
31 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h 30 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h
32 create mode 100644 mkspecs/oe-device-extra.pri
33 31
34diff --git a/configure b/configure 32diff --git a/configure b/configure
35index 789ba4c..269f69d 100755 33index 789ba4c..59cce01 100755
36--- a/configure 34--- a/configure
37+++ b/configure 35+++ b/configure
38@@ -1624,7 +1624,7 @@ fi 36@@ -1624,7 +1624,7 @@ fi
@@ -66,7 +64,7 @@ index f275e3a..5aa15f5 100644
66 msg = "test $$1 succeeded" 64 msg = "test $$1 succeeded"
67 write_file($$QMAKE_CONFIG_LOG, msg, append) 65 write_file($$QMAKE_CONFIG_LOG, msg, append)
68diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf 66diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
69index efbf2fa..78b453c 100644 67index 708815d..097ac49 100644
70--- a/mkspecs/features/qt_functions.prf 68--- a/mkspecs/features/qt_functions.prf
71+++ b/mkspecs/features/qt_functions.prf 69+++ b/mkspecs/features/qt_functions.prf
72@@ -67,7 +67,7 @@ defineTest(qtHaveModule) { 70@@ -67,7 +67,7 @@ defineTest(qtHaveModule) {
@@ -80,7 +78,7 @@ index efbf2fa..78b453c 100644
80 cmd = perl -w $$system_path($${cmd}.pl) 78 cmd = perl -w $$system_path($${cmd}.pl)
81diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf 79diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf
82new file mode 100644 80new file mode 100644
83index 0000000..dd8d5c2 81index 0000000..c1837e6
84--- /dev/null 82--- /dev/null
85+++ b/mkspecs/linux-oe-g++/qmake.conf 83+++ b/mkspecs/linux-oe-g++/qmake.conf
86@@ -0,0 +1,43 @@ 84@@ -0,0 +1,43 @@
@@ -88,7 +86,7 @@ index 0000000..dd8d5c2
88+# qmake configuration for linux-g++ with modifications for building with OpenEmbedded 86+# qmake configuration for linux-g++ with modifications for building with OpenEmbedded
89+# 87+#
90+ 88+
91+MAKEFILE_GENERATOR = UNIX 89+MAKEFILE_GENERATOR = UNIX
92+CONFIG += incremental 90+CONFIG += incremental
93+QMAKE_INCREMENTAL_STYLE = sublib 91+QMAKE_INCREMENTAL_STYLE = sublib
94+ 92+
@@ -129,110 +127,8 @@ index 0000000..dd8d5c2
129+load(qt_config) 127+load(qt_config)
130diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h 128diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h
131new file mode 100644 129new file mode 100644
132index 0000000..dd12003 130index 0000000..5d22fb4
133--- /dev/null 131--- /dev/null
134+++ b/mkspecs/linux-oe-g++/qplatformdefs.h 132+++ b/mkspecs/linux-oe-g++/qplatformdefs.h
135@@ -0,0 +1,100 @@ 133@@ -0,0 +1 @@
136+/**************************************************************************** 134+#include "../linux-g++/qplatformdefs.h"
137+**
138+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
139+** Contact: http://www.qt-project.org/legal
140+**
141+** This file is part of the qmake spec of the Qt Toolkit.
142+**
143+** $QT_BEGIN_LICENSE:LGPL$
144+** Commercial License Usage
145+** Licensees holding valid commercial Qt licenses may use this file in
146+** accordance with the commercial license agreement provided with the
147+** Software or, alternatively, in accordance with the terms contained in
148+** a written agreement between you and Digia. For licensing terms and
149+** conditions see http://qt.digia.com/licensing. For further information
150+** use the contact form at http://qt.digia.com/contact-us.
151+**
152+** GNU Lesser General Public License Usage
153+** Alternatively, this file may be used under the terms of the GNU Lesser
154+** General Public License version 2.1 as published by the Free Software
155+** Foundation and appearing in the file LICENSE.LGPL included in the
156+** packaging of this file. Please review the following information to
157+** ensure the GNU Lesser General Public License version 2.1 requirements
158+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
159+**
160+** In addition, as a special exception, Digia gives you certain additional
161+** rights. These rights are described in the Digia Qt LGPL Exception
162+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
163+**
164+** GNU General Public License Usage
165+** Alternatively, this file may be used under the terms of the GNU
166+** General Public License version 3.0 as published by the Free Software
167+** Foundation and appearing in the file LICENSE.GPL included in the
168+** packaging of this file. Please review the following information to
169+** ensure the GNU General Public License version 3.0 requirements will be
170+** met: http://www.gnu.org/copyleft/gpl.html.
171+**
172+**
173+** $QT_END_LICENSE$
174+**
175+****************************************************************************/
176+
177+#ifndef QPLATFORMDEFS_H
178+#define QPLATFORMDEFS_H
179+
180+// Get Qt defines/settings
181+
182+#include "qglobal.h"
183+
184+// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
185+
186+// 1) need to reset default environment if _BSD_SOURCE is defined
187+// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0
188+// 3) it seems older glibc need this to include the X/Open stuff
189+#ifndef _GNU_SOURCE
190+# define _GNU_SOURCE
191+#endif
192+
193+#include <unistd.h>
194+
195+
196+// We are hot - unistd.h should have turned on the specific APIs we requested
197+
198+#include <features.h>
199+#include <pthread.h>
200+#include <dirent.h>
201+#include <fcntl.h>
202+#include <grp.h>
203+#include <pwd.h>
204+#include <signal.h>
205+
206+#include <sys/types.h>
207+#include <sys/ioctl.h>
208+#include <sys/ipc.h>
209+#include <sys/time.h>
210+#include <sys/shm.h>
211+#include <sys/socket.h>
212+#include <sys/stat.h>
213+#include <sys/wait.h>
214+#include <netinet/in.h>
215+#ifndef QT_NO_IPV6IFNAME
216+#include <net/if.h>
217+#endif
218+
219+#define QT_USE_XOPEN_LFS_EXTENSIONS
220+#include "../common/posix/qplatformdefs.h"
221+
222+#undef QT_SOCKLEN_T
223+
224+#if defined(__GLIBC__) && (__GLIBC__ >= 2)
225+#define QT_SOCKLEN_T socklen_t
226+#else
227+#define QT_SOCKLEN_T int
228+#endif
229+
230+#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
231+#define QT_SNPRINTF ::snprintf
232+#define QT_VSNPRINTF ::vsnprintf
233+#endif
234+
235+#endif // QPLATFORMDEFS_H
236diff --git a/mkspecs/oe-device-extra.pri b/mkspecs/oe-device-extra.pri
237new file mode 100644
238index 0000000..e69de29