mxe/src/qtbase-1-fixes.patch

170 lines
5.9 KiB
Diff
Raw Normal View History

This file is part of MXE.
See index.html for further information.
2016-01-17 10:37:08 +00:00
Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
2015-07-01 13:06:12 +01:00
Date: Thu, 6 Aug 2015 23:35:08 +0200
2016-01-17 10:37:08 +00:00
Subject: [PATCH] fix qwindows plugin linking with system-freetype (MXE
2015-07-01 13:06:12 +01:00
specific)
2015-07-01 13:06:12 +01:00
Change-Id: I8783e3ab2d19011b083dd3c471107298a17293c4
2015-07-01 13:06:12 +01:00
diff --git a/src/3rdparty/freetype_dependency.pri b/src/3rdparty/freetype_dependency.pri
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100644
2015-07-01 13:06:12 +01:00
--- a/src/3rdparty/freetype_dependency.pri
+++ b/src/3rdparty/freetype_dependency.pri
@@ -4,4 +4,5 @@ contains(QT_CONFIG, freetype) {
} else:contains(QT_CONFIG, system-freetype) {
# pull in the proper freetype2 include directory
include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
2015-07-01 13:06:12 +01:00
+ win32:shared:LIBS_PRIVATE += -lfreetype
}
2014-05-20 22:53:39 +01:00
2016-01-17 10:37:08 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2014-05-20 22:53:39 +01:00
From: Mark Brand <mabrand@mabrand.nl>
Date: Sat, 21 Jun 2014 13:12:49 +0200
2016-01-17 10:37:08 +00:00
Subject: [PATCH] use pkg-config for harfbuzz (MXE specific)
2014-05-20 22:53:39 +01:00
Change-Id: Id4e4c37d68b63c9f480d72a561d95d4d2a5ded50
2014-05-20 22:53:39 +01:00
2014-12-05 22:50:02 +00:00
diff --git a/config.tests/unix/harfbuzz/harfbuzz.pro b/config.tests/unix/harfbuzz/harfbuzz.pro
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100644
2014-12-05 22:50:02 +00:00
--- a/config.tests/unix/harfbuzz/harfbuzz.pro
+++ b/config.tests/unix/harfbuzz/harfbuzz.pro
@@ -1,3 +1,4 @@
SOURCES = harfbuzz.cpp
CONFIG -= qt dylib
-LIBS += -lharfbuzz
+CONFIG += link_pkgconfig
+PKGCONFIG += harfbuzz
2015-07-01 13:06:12 +01:00
diff --git a/src/3rdparty/harfbuzz_dependency.pri b/src/3rdparty/harfbuzz_dependency.pri
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100644
2015-07-01 13:06:12 +01:00
--- a/src/3rdparty/harfbuzz_dependency.pri
+++ b/src/3rdparty/harfbuzz_dependency.pri
@@ -2,5 +2,6 @@ contains(QT_CONFIG, harfbuzz) {
INCLUDEPATH += $$PWD/harfbuzz-ng/include
LIBS_PRIVATE += -L$$QT_BUILD_TREE/lib -lqtharfbuzzng$$qtPlatformTargetSuffix()
} else:contains(QT_CONFIG, system-harfbuzz) {
- LIBS_PRIVATE += -lharfbuzz
+ CONFIG += link_pkgconfig
+ PKGCONFIG += harfbuzz
}
2014-09-24 08:12:59 +01:00
2016-01-17 10:37:08 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2014-12-08 13:16:37 +00:00
From: Mark Brand <mabrand@mabrand.nl>
Date: Mon, 8 Dec 2014 14:15:12 +0100
2016-01-17 10:37:08 +00:00
Subject: [PATCH] fix oci config test on windows
2014-12-08 13:16:37 +00:00
Change-Id: If1ce2241682259ca495b0ba68bf18410f8548922
diff --git a/config.tests/unix/oci/oci.pro b/config.tests/unix/oci/oci.pro
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100644
2014-12-08 13:16:37 +00:00
--- a/config.tests/unix/oci/oci.pro
+++ b/config.tests/unix/oci/oci.pro
@@ -1,3 +1,3 @@
SOURCES = oci.cpp
CONFIG -= qt dylib
-LIBS += -lclntsh
+!win32:LIBS += -lclntsh
2015-07-01 13:06:12 +01:00
2016-01-17 10:37:08 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2015-07-01 13:06:12 +01:00
From: Mark Brand <mabrand@mabrand.nl>
Date: Thu, 6 Aug 2015 13:24:56 +0200
2016-01-17 10:37:08 +00:00
Subject: [PATCH] configure: don't set QT_NO_SYSTEMSEMAPHORE for Windows
2015-07-01 13:06:12 +01:00
Change-Id: I53c110ef40e3d14cc49fa23aa5d294611cac2ffa
diff --git a/configure b/configure
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100755
2015-07-01 13:06:12 +01:00
--- a/configure
+++ b/configure
2015-10-15 09:12:42 +01:00
@@ -4464,7 +4464,7 @@ fi
2015-07-01 13:06:12 +01:00
[ "$XPLATFORM_ANDROID" = "yes" ] && QMakeVar add styles "android"
# check IPC support
-if ! compileTest unix/ipc_sysv "ipc_sysv" ; then
+if [ "$XPLATFORM_MINGW" = "no" ] && ! compileTest unix/ipc_sysv "ipc_sysv" ; then
# SYSV IPC is not supported - check POSIX IPC
if compileTest unix/ipc_posix "ipc_posix" ; then
QCONFIG_FLAGS="$QCONFIG_FLAGS QT_POSIX_IPC"
2016-01-17 10:37:08 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2015-10-06 09:02:52 +01:00
From: Mark Brand <mabrand@mabrand.nl>
Date: Tue, 6 Oct 2015 09:53:20 +0200
2016-01-17 10:37:08 +00:00
Subject: [PATCH] fix building mysql driver under mingw
2015-10-06 09:02:52 +01:00
Change-Id: I9c4e821d5b3a6919566c6b684cb4916827feb6a9
diff --git a/src/sql/drivers/mysql/qsql_mysql.pri b/src/sql/drivers/mysql/qsql_mysql.pri
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100644
2015-10-06 09:02:52 +01:00
--- a/src/sql/drivers/mysql/qsql_mysql.pri
+++ b/src/sql/drivers/mysql/qsql_mysql.pri
@@ -4,7 +4,7 @@ SOURCES += $$PWD/qsql_mysql.cpp
QMAKE_CXXFLAGS *= $$QT_CFLAGS_MYSQL
LIBS += $$QT_LFLAGS_MYSQL
-unix {
+if (unix|mingw) {
isEmpty(QT_LFLAGS_MYSQL) {
!contains(LIBS, .*mysqlclient.*):!contains(LIBS, .*mysqld.*) {
use_libmysqlclient_r:LIBS += -lmysqlclient_r
2016-01-17 10:37:08 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Nagaev <bnagaev@gmail.com>
2015-10-23 09:15:47 +01:00
Date: Sun, 18 Oct 2015 23:11:28 +0300
2016-01-17 10:37:08 +00:00
Subject: [PATCH] configure: fix log corruption with option -v
2015-10-23 09:15:47 +01:00
This bug occurs if ./configure is called with -v on systems on
which fd proc entries point to the files/devices they are open
on instead of being magic nodes which would basically dup() the
actual fds (e.g., Linux).
2015-10-23 09:15:47 +01:00
In this case, the command "tee $tty" appends to /dev/stderr, which
may be already opened by the parent process. This breaks the log file.
2015-10-23 09:15:47 +01:00
Normally, the log file starts with
This is the Qt Open Source Edition.
...
but with `-v` flag it would start with output of awkprog and maybe
some zero bytes. Zero bytes are observed on Debian Wheezy.
DEFAULT_INCDIRS=...
...
^@^@^@^@^@^@^@^@^@^@^@^@...
Done running configuration tests.
...
To fix this problem, the output of `...` is saved to a variable, and
then eval'd and echo'd (if -v).
This solution was found by Tony Theodore.
https://github.com/mxe/mxe/issues/938#issuecomment-149770348
Change-Id: Id0c28598890e813774cc92f38ee46a0697b34e77
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 45fe3f1cde1e516d1ddccddb5e33ea4316497c36)
diff --git a/configure b/configure
2016-01-17 10:37:08 +00:00
index 1111111..2222222 100755
--- a/configure
+++ b/configure
2015-10-23 09:15:47 +01:00
@@ -3571,10 +3571,9 @@ END {
print "DEFAULT_LIBDIRS=\"/lib\n/usr/lib\"\n";
}'
2015-10-23 09:15:47 +01:00
-unset tty
-[ "$OPT_VERBOSE" = "yes" ] && tty=/dev/stderr
2015-10-23 09:15:47 +01:00
-eval "`LC_ALL=C $TEST_COMPILER $SYSROOT_FLAG $TEST_COMPILER_CXXFLAGS -xc++ -E -v - < /dev/null 2>&1 > /dev/null | $AWK "$awkprog" | tee $tty`"
-unset tty
+awkprog_result=`LC_ALL=C $TEST_COMPILER $SYSROOT_FLAG $TEST_COMPILER_CXXFLAGS -xc++ -E -v - < /dev/null 2>&1 > /dev/null | $AWK "$awkprog"`
+eval "$awkprog_result"
+[ "$OPT_VERBOSE" = "yes" ] && echo "$awkprog_result"
#setup the build parts
2015-10-23 09:15:47 +01:00
if [ -z "$CFG_BUILD_PARTS" ]; then