Commit 470a3467 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

contrib: update Qt4 to 4.8.1

cross.patch update by John Freed
(cherry picked from commit cd0148a5a1d5e5875f525c04225add1975a9dd78)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 03bc4b50
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 Fix build when using a 32-bit chroot with a x86_64 kernel
Native tools would be built with -m64 Native tools would be built with -m64
--- qt-everywhere-opensource-src-4.7.4/configure.orig 2011-11-11 14:48:12.944666802 -0500 --- 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 2011-11-11 14:48:55.108875882 -0500
@@ -168,7 +168,7 @@ @@ -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 --- 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 2011-09-28 14:36:32.529954583 -0400
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
QMAKE_EXT_OBJ = .o QMAKE_EXT_OBJ = .o
QMAKE_EXT_RES = _res.o QMAKE_EXT_RES = _res.o
...@@ -42,22 +42,21 @@ ...@@ -42,22 +42,21 @@
+QMAKE_STRIP = $(XSTRIP) +QMAKE_STRIP = $(XSTRIP)
QMAKE_STRIPFLAGS_LIB += --strip-unneeded QMAKE_STRIPFLAGS_LIB += --strip-unneeded
load(qt_config) load(qt_config)
--- qt-everywhere-opensource-src-4.7.4/configure.orig 2011-11-10 18:48:29.351058392 -0500 --- 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 +++ configure 2011-11-10 18:50:40.971711056 -0500
@@ -7767,6 +7767,7 @@ @@ -8255,11 +8255,13 @@
fi fi
# X11/Unix/Mac only configs # X11/Unix/Mac only configs
+if [ "$XPLATFORM_MINGW" != "yes" ]; then +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_ICONV" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
[ "$CFG_GLIB" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GLIB" [ "$CFG_GLIB" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GLIB"
@@ -7807,6 +7808,8 @@ [ "$CFG_QGTKSTYLE" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STYLE_GTK"
[ "$CFG_COREWLAN" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_COREWLAN" -if [ "$XPLATFORM_SYMBIAN" = "no" ]; then
[ "$CFG_ICD" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICD" - # Do not apply following negative X11/Unix/Mac only flags on Symbian, so that
+fi +fi
+ +if [ "$XPLATFORM_SYMBIAN" = "no" -a "$XPLATFORM_MINGW" != "yes" ]; then
# sort QCONFIG_FLAGS for neatness if we can + # Do not apply following negative X11/Unix/Mac only flags on Symbian or MinGW, so that
[ '!' -z "$AWK" ] && QCONFIG_FLAGS=`echo $QCONFIG_FLAGS | $AWK '{ gsub(" ", "\n"); print }' | sort | uniq` # configuration matches with the one generated by configure executable tool
QCONFIG_FLAGS=`echo $QCONFIG_FLAGS` [ "$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 --- 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 2011-11-10 18:56:39.269487754 -0500
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
TEMPLATE = subdirs 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
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 QT4_URL := http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-$(QT4_VERSION).tar.gz
ifdef HAVE_MACOSX ifdef HAVE_MACOSX
...@@ -21,12 +21,12 @@ $(TARBALLS)/qt-$(QT4_VERSION).tar.gz: ...@@ -21,12 +21,12 @@ $(TARBALLS)/qt-$(QT4_VERSION).tar.gz:
qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4 qt4: qt-$(QT4_VERSION).tar.gz .sum-qt4
$(UNPACK) $(UNPACK)
patch -p0 < $(SRC)/qt4/cross.patch cd qt-everywhere-opensource-src-$(QT4_VERSION) && \
patch -p0 < $(SRC)/qt4/styles.patch patch -p0 < ../$(SRC)/qt4/cross.patch && \
patch -p0 < $(SRC)/qt4/chroot.patch patch -p0 < ../$(SRC)/qt4/styles.patch && \
patch -p0 < $(SRC)/qt4/imageformats.patch patch -p0 < ../$(SRC)/qt4/chroot.patch && \
patch -p0 < $(SRC)/qt4/mingw32.patch patch -p0 < ../$(SRC)/qt4/imageformats.patch
mv qt-everywhere-opensource-src-4.7.4 $@ && touch $@ mv qt-everywhere-opensource-src-$(QT4_VERSION) $@ && touch $@
XTOOLS := XCC="$(CC)" XCXX="$(CXX)" XSTRIP="$(STRIP)" XAR="$(AR)" 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 --- 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 2011-11-10 17:44:13.915940309 -0500
@@ -584,7 +584,7 @@ @@ -584,7 +584,7 @@
rm -f "$outpath/config.tests/.qmake.cache" rm -f "$outpath/config.tests/.qmake.cache"
cp "$QMAKE_VARS_FILE" "$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