Commit cd0148a5 authored by Rafaël Carré's avatar Rafaël Carré

contrib: update Qt4 to 4.8.1

cross.patch update by John Freed
parent 5ec3fe6b
8dcb7d2e9069205bd80eeecbeb62a6ab727f9e327cbfc03003fe4f1caea364771d3c7e3a12347644aef1c51898680c08693cc76e2950ea8f7487223404b6581c qt-4.7.4.tar.gz
a48825a3d42c93c6d9d769d9f79b297d92b5deb9003c89c2d1f1b364b496fc6e7d307e0eb6b798ae49d7bf1928caeda6741025242499296550293518004c3d90 qt-4.8.1.tar.gz
Fix build when using a 32-bit chroot with a x86_64 kernel
Native tools would be built with -m64
--- qt-everywhere-opensource-src-4.7.4/configure.orig 2011-11-11 14:48:12.944666802 -0500
+++ qt-everywhere-opensource-src-4.7.4/configure 2011-11-11 14:48:55.108875882 -0500
--- configure.orig 2011-11-11 14:48:12.944666802 -0500
+++ configure 2011-11-11 14:48:55.108875882 -0500
@@ -168,7 +168,7 @@
#-------------------------------------------------------------------------------
......
--- qt-everywhere-opensource-src-4.7.4/mkspecs/win32-g++/qmake.conf.orig 2011-09-28 14:32:02.709958498 -0400
+++ qt-everywhere-opensource-src-4.7.4/mkspecs/win32-g++/qmake.conf 2011-09-28 14:36:32.529954583 -0400
--- mkspecs/win32-g++/qmake.conf.orig 2011-09-28 14:32:02.709958498 -0400
+++ mkspecs/win32-g++/qmake.conf 2011-09-28 14:36:32.529954583 -0400
@@ -14,7 +14,7 @@
QMAKE_EXT_OBJ = .o
QMAKE_EXT_RES = _res.o
......@@ -42,22 +42,21 @@
+QMAKE_STRIP = $(XSTRIP)
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
load(qt_config)
--- qt-everywhere-opensource-src-4.7.4/configure.orig 2011-11-10 18:48:29.351058392 -0500
+++ qt-everywhere-opensource-src-4.7.4/configure 2011-11-10 18:50:40.971711056 -0500
@@ -7767,6 +7767,7 @@
--- configure.orig 2011-11-10 18:48:29.351058392 -0500
+++ configure 2011-11-10 18:50:40.971711056 -0500
@@ -8255,11 +8255,13 @@
fi
# X11/Unix/Mac only configs
+if [ "$XPLATFORM_MINGW" != "yes" ]; then
[ "$CFG_CUPS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
[ "$CFG_ICONV" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
[ "$CFG_GLIB" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GLIB"
@@ -7807,6 +7808,8 @@
[ "$CFG_COREWLAN" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_COREWLAN"
[ "$CFG_ICD" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICD"
[ "$CFG_QGTKSTYLE" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STYLE_GTK"
-if [ "$XPLATFORM_SYMBIAN" = "no" ]; then
- # Do not apply following negative X11/Unix/Mac only flags on Symbian, so that
+fi
+
# sort QCONFIG_FLAGS for neatness if we can
[ '!' -z "$AWK" ] && QCONFIG_FLAGS=`echo $QCONFIG_FLAGS | $AWK '{ gsub(" ", "\n"); print }' | sort | uniq`
QCONFIG_FLAGS=`echo $QCONFIG_FLAGS`
+if [ "$XPLATFORM_SYMBIAN" = "no" -a "$XPLATFORM_MINGW" != "yes" ]; then
+ # Do not apply following negative X11/Unix/Mac only flags on Symbian or MinGW, so that
# configuration matches with the one generated by configure executable tool
[ "$CFG_CUPS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
[ "$CFG_GSTREAMER" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GSTREAMER"
--- qt-everywhere-opensource-src-4.7.4/src/plugins/imageformats/imageformats.pro.orig 2011-11-10 18:56:04.617315921 -0500
+++ qt-everywhere-opensource-src-4.7.4/src/plugins/imageformats/imageformats.pro 2011-11-10 18:56:39.269487754 -0500
--- src/plugins/imageformats/imageformats.pro.orig 2011-11-10 18:56:04.617315921 -0500
+++ src/plugins/imageformats/imageformats.pro 2011-11-10 18:56:39.269487754 -0500
@@ -1,8 +1,8 @@
TEMPLATE = subdirs
......
Remove me after qt4 4.8.0
--- qt-everywhere-opensource-src-4.7.4.orig/src/corelib/tools/qlocale.cpp 2012-01-19 23:34:18.000000000 +0100
+++ qt-everywhere-opensource-src-4.7.4/src/corelib/tools/qlocale.cpp 2012-01-19 23:37:41.000000000 +0100
@@ -6614,6 +6614,14 @@
* calculation.
*/
+#if defined(Q_OS_WIN) && defined (Q_CC_GNU) && !defined(_clear87) // See QTBUG-7576
+extern "C" {
+__attribute__ ((dllimport)) unsigned int __cdecl __MINGW_NOTHROW _control87 (unsigned int unNew, unsigned int unMask);
+__attribute__ ((dllimport)) unsigned int __cdecl __MINGW_NOTHROW _clearfp (void); /* Clear the FPU status word */
+# define _clear87 _clearfp
+}
+#endif
+
/* This actually sometimes returns a pointer to a string literal
cast to a char*. Do NOT try to modify the return value. */
# qt4
QT4_VERSION = 4.7.4
QT4_VERSION = 4.8.1
QT4_URL := http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-$(QT4_VERSION).tar.gz
ifdef HAVE_MACOSX
......@@ -21,12 +21,12 @@ $(TARBALLS)/qt-$(QT4_VERSION).tar.gz:
qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4
$(UNPACK)
patch -p0 < $(SRC)/qt4/cross.patch
patch -p0 < $(SRC)/qt4/styles.patch
patch -p0 < $(SRC)/qt4/chroot.patch
patch -p0 < $(SRC)/qt4/imageformats.patch
patch -p0 < $(SRC)/qt4/mingw32.patch
mv qt-everywhere-opensource-src-4.7.4 $@ && touch $@
cd qt-everywhere-opensource-src-$(QT4_VERSION) && \
patch -p0 < ../$(SRC)/qt4/cross.patch && \
patch -p0 < ../$(SRC)/qt4/styles.patch && \
patch -p0 < ../$(SRC)/qt4/chroot.patch && \
patch -p0 < ../$(SRC)/qt4/imageformats.patch
mv qt-everywhere-opensource-src-$(QT4_VERSION) $@ && touch $@
XTOOLS := XCC="$(CC)" XCXX="$(CXX)" XSTRIP="$(STRIP)" XAR="$(AR)"
......
--- qt-everywhere-opensource-src-4.7.4/configure.orig 2011-11-10 17:44:02.427883340 -0500
+++ qt-everywhere-opensource-src-4.7.4/configure 2011-11-10 17:44:13.915940309 -0500
--- configure.orig 2011-11-10 17:44:02.427883340 -0500
+++ configure 2011-11-10 17:44:13.915940309 -0500
@@ -584,7 +584,7 @@
rm -f "$outpath/config.tests/.qmake.cache"
cp "$QMAKE_VARS_FILE" "$outpath/config.tests/.qmake.cache"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment