Update to 4.5.1. Most of work done by Matthias Drochner. Upstream changelog

is too massive, see http://doc.qtsoftware.com/4.5/qt4-5-intro.html as
starting point.
This commit is contained in:
hasso 2009-06-13 11:55:50 +00:00
parent f37aa7007d
commit 60becdff04
18 changed files with 238 additions and 158 deletions

View file

@ -1,11 +1,10 @@
# $NetBSD: Makefile,v 1.27 2009/02/11 07:46:15 markd Exp $
# $NetBSD: Makefile,v 1.28 2009/06/13 11:55:51 hasso Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../x11/qt4-libs/Makefile.common"
PKGNAME= qt4-libs-${QTVERSION}
PKGREVISION= 3
COMMENT= C++ X GUI toolkit
BUILD_TARGET= sub-src

View file

@ -1,10 +1,9 @@
# $NetBSD: Makefile.common,v 1.12 2008/12/16 13:46:59 jmcneill Exp $
# $NetBSD: Makefile.common,v 1.13 2009/06/13 11:55:51 hasso Exp $
# used by x11/qt4-libs/Makefile
DISTNAME= qt-x11-opensource-src-${QTVERSION}
CATEGORIES= x11
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
ftp://ftp.bero.org/pub/qt/source/
MASTER_SITES= ftp://ftp.qtsoftware.com/qt/source/
EXTRACT_SUFX= .tar.bz2
.include "../../x11/qt4/Makefile.common"

View file

@ -1,14 +1,14 @@
$NetBSD: distinfo,v 1.28 2009/02/28 11:38:01 schwarz Exp $
$NetBSD: distinfo,v 1.29 2009/06/13 11:55:51 hasso Exp $
SHA1 (qt-x11-opensource-src-4.4.3.tar.bz2) = 099bcc2dfda73f093f7e80e9004114d41db40b51
RMD160 (qt-x11-opensource-src-4.4.3.tar.bz2) = 3c73d9c549523efa0e760965c38c7876b4636861
Size (qt-x11-opensource-src-4.4.3.tar.bz2) = 103961247 bytes
SHA1 (patch-aa) = 7f2bd5a4052e931b1562d02eaa6a9c2966567e37
SHA1 (patch-ab) = 0575619a679ec81a17ede2a39cdaccb938b16fcd
SHA1 (qt-x11-opensource-src-4.5.1.tar.bz2) = 50ba9b6d2eb7056e47dc53775be509c4ff6ec015
RMD160 (qt-x11-opensource-src-4.5.1.tar.bz2) = 702d7c6bb9787cd5602dcb8afce52bdfcfd52179
Size (qt-x11-opensource-src-4.5.1.tar.bz2) = 114667436 bytes
SHA1 (patch-aa) = b3a0cbdd927ef7d3e2af6a49fc87048f2cd8012c
SHA1 (patch-ab) = b0853b2ddfa53948e91c4f93e4d089c7dd56db43
SHA1 (patch-ac) = baab52ce87e4dcf11ae76b56851e92f58455d94b
SHA1 (patch-ad) = bfa4b61e32b26dac23a33ab29ce68eb62d6f5fb5
SHA1 (patch-ae) = a23a2cc4271b5613f59ab5550e9aeccca15573a9
SHA1 (patch-af) = b43a2e4b92435f9b7a7e5b46821e2943c343a7f4
SHA1 (patch-af) = 110abc1d7d571e09cbbbc03ba13dfff194a7367d
SHA1 (patch-ag) = 0ae6efe5f9283a567bd069779ba36b77fa61006e
SHA1 (patch-ah) = 62c50fe48b9ff1ce9fb757b432c8b1db7693e112
SHA1 (patch-ai) = b15936b85b2b1946e8c9a92bf393c3d3a1fc6950
@ -17,10 +17,10 @@ SHA1 (patch-ak) = 9aaf62149ec555f990e2216710ba5b88d532224a
SHA1 (patch-al) = ae85006d95f8a55521219442cc642dfa4377671c
SHA1 (patch-am) = 0d4a4f2767cad5414c8bfe4dc8485064a9be4381
SHA1 (patch-an) = 34c50ed3a7e4e985d372b89dca9453df2f5b40e1
SHA1 (patch-ao) = e74125f5230db3e1b339c76c06a54470dd0631db
SHA1 (patch-ao) = 9c943f67e0c6a1a6ccf87368afc4093fb805f1b9
SHA1 (patch-ap) = 99402ac9ef527e7fa9b1825c8e1b8a299bc4ffe7
SHA1 (patch-aq) = 401bf595bfe3854e36b0260d24be95b712f9d6a2
SHA1 (patch-aq) = f6d48cad9461fd40f4c54669cc275e99cdbb7a34
SHA1 (patch-ar) = 5bc9a1d384c9a888f1295b87968a09236b48af65
SHA1 (patch-as) = 244a3017e2780270b61ac50af000cd6fd1bb9cf5
SHA1 (patch-at) = c8c818dcf45822c8510568bc738b819493f38b11
SHA1 (patch-au) = 811c582bb0ad252b8b5ae91685109a7410dd662d
SHA1 (patch-as) = 818c3d6eecab7706dde7f47b077c3c676e69d67b
SHA1 (patch-av) = f716b571ef0f8b5c7684378a0e3772c1680c6dcf
SHA1 (patch-ax) = 2c895f23a49be32d4605557a74ce5af34cdfc061

View file

@ -1 +1,2 @@
o
yes

View file

@ -1,8 +1,8 @@
$NetBSD: patch-aa,v 1.8 2008/10/26 14:02:33 adam Exp $
$NetBSD: patch-aa,v 1.9 2009/06/13 11:55:51 hasso Exp $
--- qmake/generators/unix/unixmake2.cpp.orig 2008-09-27 10:58:43.000000000 +0200
--- qmake/generators/unix/unixmake2.cpp.orig 2009-02-25 22:09:16.000000000 +0100
+++ qmake/generators/unix/unixmake2.cpp
@@ -228,6 +228,8 @@ UnixMakefileGenerator::writeMakeParts(QT
@@ -232,6 +232,8 @@ UnixMakefileGenerator::writeMakeParts(QT
if(!project->isEmpty("QMAKE_BUNDLE")) {
t << "TARGETD = " << escapeFilePath(var("TARGET_x.y")) << endl;
t << "TARGET0 = " << escapeFilePath(var("TARGET_")) << endl;
@ -11,7 +11,7 @@ $NetBSD: patch-aa,v 1.8 2008/10/26 14:02:33 adam Exp $
} else if(project->isEmpty("QMAKE_HPUX_SHLIB")) {
t << "TARGETD = " << escapeFilePath(var("TARGET_x.y.z")) << endl;
t << "TARGET0 = " << escapeFilePath(var("TARGET_")) << endl;
@@ -978,8 +980,12 @@ void UnixMakefileGenerator::init2()
@@ -992,8 +994,12 @@ void UnixMakefileGenerator::init2()
} else if (project->isActiveConfig("staticlib")) {
project->values("TARGET").first().prepend("lib");
project->values("TARGET").first() += ".a";
@ -25,7 +25,7 @@ $NetBSD: patch-aa,v 1.8 2008/10/26 14:02:33 adam Exp $
} else {
project->values("TARGETA").append(project->first("DESTDIR") + "lib" + project->first("TARGET") + ".a");
if(project->isActiveConfig("compile_libtool"))
@@ -1430,7 +1436,7 @@ UnixMakefileGenerator::writePkgConfigFil
@@ -1444,7 +1450,7 @@ UnixMakefileGenerator::writePkgConfigFil
bundle = bundle.left(suffix);
pkgConfiglibName = "-framework " + bundle + " ";
} else {
@ -33,4 +33,4 @@ $NetBSD: patch-aa,v 1.8 2008/10/26 14:02:33 adam Exp $
+ pkgConfiglibDir = "-Wl,-R${libdir} -L${libdir}";
pkgConfiglibName = "-l" + lname.left(lname.length()-Option::libtool_ext.length());
}
t << pkgConfiglibDir << " " << pkgConfiglibName << " ";
t << pkgConfiglibDir << " " << pkgConfiglibName << " " << endl;

View file

@ -1,14 +1,18 @@
$NetBSD: patch-ab,v 1.7 2008/10/26 14:02:33 adam Exp $
$NetBSD: patch-ab,v 1.8 2009/06/13 11:55:51 hasso Exp $
--- src/gui/painting/painting.pri.orig 2008-09-27 10:58:47.000000000 +0200
--- src/gui/painting/painting.pri.orig 2009-02-25 22:09:22.000000000 +0100
+++ src/gui/painting/painting.pri
@@ -192,11 +192,11 @@ mac {
@@ -230,7 +230,7 @@ contains(QMAKE_MAC_XARCH, no) {
win32-g++|!win32:!*-icc* {
mmx {
- mmx_compiler.commands = $$QMAKE_CXX -c -Winline
+ mmx_compiler.commands = ${LIBTOOL} --mode=compile $$QMAKE_CXX -c -Winline
mmx_compiler.commands += -mmmx
mac {
mmx_compiler.commands += -Xarch_i386 -mmmx
@@ -241,7 +241,7 @@ contains(QMAKE_MAC_XARCH, no) {
mmx_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
mmx_compiler.dependency_type = TYPE_C
- mmx_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
@ -16,13 +20,17 @@ $NetBSD: patch-ab,v 1.7 2008/10/26 14:02:33 adam Exp $
mmx_compiler.input = MMX_SOURCES
mmx_compiler.variable_out = OBJECTS
mmx_compiler.name = compiling[mmx] ${QMAKE_FILE_IN}
@@ -204,22 +204,22 @@ mac {
@@ -249,7 +249,7 @@ contains(QMAKE_MAC_XARCH, no) {
QMAKE_EXTRA_COMPILERS += mmx_compiler
}
3dnow {
- mmx3dnow_compiler.commands = $$QMAKE_CXX -c -Winline
+ mmx3dnow_compiler.commands = ${LIBTOOL} --mode=compile $$QMAKE_CXX -c -Winline
mmx3dnow_compiler.commands += -m3dnow -mmmx
mac {
mmx3dnow_compiler.commands += -Xarch_i386 -m3dnow -Xarch_i386 -mmmx
@@ -260,14 +260,14 @@ contains(QMAKE_MAC_XARCH, no) {
mmx3dnow_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
mmx3dnow_compiler.dependency_type = TYPE_C
- mmx3dnow_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
@ -32,10 +40,14 @@ $NetBSD: patch-ab,v 1.7 2008/10/26 14:02:33 adam Exp $
mmx3dnow_compiler.name = compiling[mmx3dnow] ${QMAKE_FILE_IN}
silent:mmx3dnow_compiler.commands = @echo compiling[mmx3dnow] ${QMAKE_FILE_IN} && $$mmx3dnow_compiler.commands
QMAKE_EXTRA_COMPILERS += mmx3dnow_compiler
sse {
sse {
- sse3dnow_compiler.commands = $$QMAKE_CXX -c -Winline
+ sse3dnow_compiler.commands = ${LIBTOOL} --mode=compile $$QMAKE_CXX -c -Winline
sse3dnow_compiler.commands += -m3dnow -msse
mac {
sse3dnow_compiler.commands += -Xarch_i386 -m3dnow -Xarch_i386 -msse
@@ -278,7 +278,7 @@ contains(QMAKE_MAC_XARCH, no) {
sse3dnow_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
sse3dnow_compiler.dependency_type = TYPE_C
- sse3dnow_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
@ -43,13 +55,17 @@ $NetBSD: patch-ab,v 1.7 2008/10/26 14:02:33 adam Exp $
sse3dnow_compiler.input = SSE3DNOW_SOURCES
sse3dnow_compiler.variable_out = OBJECTS
sse3dnow_compiler.name = compiling[sse3dnow] ${QMAKE_FILE_IN}
@@ -228,11 +228,11 @@ mac {
}
@@ -287,7 +287,7 @@ contains(QMAKE_MAC_XARCH, no) {
}
}
sse {
- sse_compiler.commands = $$QMAKE_CXX -c -Winline
+ sse_compiler.commands = ${LIBTOOL} --mode=compile $$QMAKE_CXX -c -Winline
sse_compiler.commands += -msse
mac {
sse_compiler.commands += -Xarch_i386 -msse
@@ -298,7 +298,7 @@ contains(QMAKE_MAC_XARCH, no) {
sse_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
sse_compiler.dependency_type = TYPE_C
- sse_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
@ -57,13 +73,17 @@ $NetBSD: patch-ab,v 1.7 2008/10/26 14:02:33 adam Exp $
sse_compiler.input = SSE_SOURCES
sse_compiler.variable_out = OBJECTS
sse_compiler.name = compiling[sse] ${QMAKE_FILE_IN}
@@ -240,11 +240,11 @@ mac {
@@ -306,7 +306,7 @@ contains(QMAKE_MAC_XARCH, no) {
QMAKE_EXTRA_COMPILERS += sse_compiler
}
sse2 {
- sse2_compiler.commands = $$QMAKE_CXX -c -Winline
+ sse2_compiler.commands = ${LIBTOOL} --mode=compile $$QMAKE_CXX -c -Winline
sse2_compiler.commands += -msse2
mac {
sse2_compiler.commands += -Xarch_i386 -msse2
@@ -317,7 +317,7 @@ contains(QMAKE_MAC_XARCH, no) {
sse2_compiler.commands += $(CXXFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
sse2_compiler.dependency_type = TYPE_C
- sse2_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
@ -71,7 +91,7 @@ $NetBSD: patch-ab,v 1.7 2008/10/26 14:02:33 adam Exp $
sse2_compiler.input = SSE2_SOURCES
sse2_compiler.variable_out = OBJECTS
sse2_compiler.name = compiling[sse2] ${QMAKE_FILE_IN}
@@ -252,11 +252,11 @@ mac {
@@ -325,11 +325,11 @@ contains(QMAKE_MAC_XARCH, no) {
QMAKE_EXTRA_COMPILERS += sse2_compiler
}
iwmmxt {

View file

@ -1,6 +1,6 @@
$NetBSD: patch-af,v 1.5 2008/07/24 12:55:20 markd Exp $
$NetBSD: patch-af,v 1.6 2009/06/13 11:55:51 hasso Exp $
--- qmake/Makefile.unix.orig 2008-04-28 15:11:14.000000000 +0200
--- qmake/Makefile.unix.orig 2009-02-25 22:09:16.000000000 +0100
+++ qmake/Makefile.unix
@@ -3,7 +3,7 @@ BUILD_PATH = @BUILD_PATH@
QTOBJS = @QMAKE_QTOBJS@
@ -18,9 +18,9 @@ $NetBSD: patch-af,v 1.5 2008/07/24 12:55:20 markd Exp $
-CPPFLAGS = -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \
+CPPFLAGS += -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac \
-I$(BUILD_PATH)/include -I$(BUILD_PATH)/include/QtCore \
-I$(SOURCE_PATH)/include -I$(SOURCE_PATH)/include/QtCore -I$(BUILD_PATH)/src/corelib/global \
-I$(BUILD_PATH)/src/corelib/global \
-I$(SOURCE_PATH)/src/script -DQT_NO_PCRE \
@@ -96,7 +96,7 @@ CPPFLAGS = -I. -Igenerators -Igenerators
@@ -97,7 +97,7 @@ CPPFLAGS = -I. -Igenerators -Igenerators
-DQT_NO_COMPRESS -I$(QMAKESPEC) -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT \
-DQT_NO_GEOM_VARIANT $(OPENSOURCE_CXXFLAGS)

View file

@ -1,8 +1,8 @@
$NetBSD: patch-ao,v 1.5 2008/10/26 14:02:33 adam Exp $
$NetBSD: patch-ao,v 1.6 2009/06/13 11:55:51 hasso Exp $
--- src/corelib/codecs/qiconvcodec.cpp.orig 2008-09-27 10:58:46.000000000 +0200
--- src/corelib/codecs/qiconvcodec.cpp.orig 2009-02-25 22:09:21.000000000 +0100
+++ src/corelib/codecs/qiconvcodec.cpp
@@ -44,9 +44,14 @@
@@ -50,9 +50,14 @@
#include <stdio.h>
#include <dlfcn.h>
@ -18,7 +18,7 @@ $NetBSD: patch-ao,v 1.5 2008/10/26 14:02:33 adam Exp $
# include <langinfo.h>
#endif
@@ -63,6 +68,9 @@
@@ -69,6 +74,9 @@
# else
# define UTF16 "UTF-16LE"
# endif
@ -28,43 +28,31 @@ $NetBSD: patch-ao,v 1.5 2008/10/26 14:02:33 adam Exp $
#else
# define UTF16 "UTF-16"
#endif
@@ -146,7 +154,7 @@ QString QIconvCodec::convertToUnicode(co
QByteArray ba;
size_t outBytesLeft = len * 2 + 2;
ba.resize(outBytesLeft);
@@ -218,7 +226,7 @@ QString QIconvCodec::convertToUnicode(co
IconvState *state = *pstate;
size_t inBytesLeft = len;
// best case assumption, each byte is converted into one UTF-16 character, plus 2 bytes for the BOM
-#ifdef GNU_LIBICONV
+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
// GNU doesn't disagree with POSIX :/
const char *inBytes = chars;
#else
@@ -206,7 +214,7 @@ QByteArray QIconvCodec::convertFromUnico
ba.resize(outBytesLeft);
char *outBytes = ba.data();
@@ -306,7 +314,7 @@ QByteArray QIconvCodec::convertFromUnico
char *outBytes;
size_t inBytesLeft;
-#if defined(GNU_LIBICONV)
+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
const char *inBytes;
const char **inBytesPtr = const_cast<const char **>(&inBytes);
#else
char *inBytes;
@@ -216,7 +224,7 @@ QByteArray QIconvCodec::convertFromUnico
#if !defined(NO_BOM)
// give iconv() a BOM
QChar bom[] = { QChar(QChar::ByteOrderMark) };
-#ifdef GNU_LIBICONV
+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
// GNU doesn't disagree with POSIX :/
inBytes = reinterpret_cast<const char *>(bom);
char **inBytesPtr = &inBytes;
@@ -454,11 +462,13 @@ iconv_t QIconvCodec::createIconv_t(const
static const char empty_codeset[] = "";
const char *codeset = empty_codeset;
cd = iconv_open(to ? to : codeset, from ? from : codeset);
+#elif defined(__NetBSD)
+ const char *codeset = 0;
#else
@@ -230,7 +238,7 @@ QByteArray QIconvCodec::convertFromUnico
#endif // NO_BOM
// now feed iconv() the real data
-#ifdef GNU_LIBICONV
+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
// GNU doesn't disagree with POSIX :/
inBytes = reinterpret_cast<const char *>(uc);
#else
@@ -296,7 +304,7 @@ iconv_t QIconvCodec::createIconv_t(const
char *codeset = 0;
#endif

View file

@ -1,13 +1,63 @@
$NetBSD: patch-aq,v 1.3 2008/10/26 14:02:33 adam Exp $
$NetBSD: patch-aq,v 1.4 2009/06/13 11:55:51 hasso Exp $
--- configure.orig 2008-09-27 10:58:41.000000000 +0200
--- configure.orig 2009-04-22 01:57:35.000000000 +0200
+++ configure
@@ -5856,7 +5856,7 @@ QMakeVar set sql-plugins "$SQL_PLUGINS"
[ "$CFG_TABLET" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_TABLET"
@@ -2745,7 +2745,7 @@ elif [ "$CFG_PRECOMPILE" = "yes" ] && [
fi
#auto-detect DWARF2 on the mac
-if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" == "auto" ]; then
+if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "auto" ]; then
if "$mactests/dwarf2.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests" ; then
CFG_MAC_DWARF2=no
else
@@ -2754,7 +2754,7 @@ if [ "$PLATFORM_MAC" = "yes" ] && [ "$CF
fi
# auto-detect support for -Xarch on the mac
-if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" == "auto" ]; then
+if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" = "auto" ]; then
if "$mactests/xarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests" ; then
CFG_MAC_XARCH=no
else
@@ -5504,18 +5504,18 @@ fi
# Set the default arch. Select 32-bit/carbon if nothing else has
# been specified on the configure line.
-if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" == "" ]; then
+if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" = "" ]; then
source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests"
- if [ "$QT_MAC_DEFUALT_ARCH" == "x86_64" ]; then
+ if [ "$QT_MAC_DEFUALT_ARCH" = "x86_64" ]; then
CFG_MAC_ARCHS=" x86"
- elif [ "$QT_MAC_DEFUALT_ARCH" == "ppc64" ]; then
+ elif [ "$QT_MAC_DEFUALT_ARCH" = "ppc64" ]; then
CFG_MAC_ARCHS=" ppc"
else
CFG_MAC_ARCHS=" $QT_MAC_DEFUALT_ARCH"
fi
- [ "$OPT_VERBOSE" == "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
+ [ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
fi
# enable cocoa and/or carbon on Mac
@@ -6445,7 +6445,7 @@ QMakeVar set sql-plugins "$SQL_PLUGINS"
[ "$CFG_EXCEPTIONS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_EXCEPTIONS"
[ "$CFG_IPV6" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IPV6"
[ "$CFG_SXE" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SXE"
-[ "$CFG_DBUS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DBUS"
+#[ "$CFG_DBUS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DBUS"
# X11/Unix/Mac only configs
[ "$CFG_CUPS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
if [ "$PLATFORM_QWS" != "yes" ]; then
[ "$CFG_GRAPHICS_SYSTEM" = "raster" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_RASTER"
@@ -6762,7 +6762,7 @@ EOF
*) ;;
esac
-if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" == "no" ] && [ "$CFG_WEBKIT" = "yes" ] && [ "$CFG_DEBUG_RELEASE" == "yes" ]; then
+if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "no" ] && [ "$CFG_WEBKIT" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
cat <<EOF
WARNING: DWARF2 debug symbols are not enabled. Linking webkit
in debug mode will run out of memory on systems with 2GB or less.

View file

@ -1,13 +1,13 @@
$NetBSD: patch-as,v 1.2 2008/10/26 14:02:33 adam Exp $
$NetBSD: patch-as,v 1.3 2009/06/13 11:55:51 hasso Exp $
--- tools/assistant/lib/fulltextsearch/qclucene-config_p.h.orig 2008-09-27 10:58:48.000000000 +0200
--- tools/assistant/lib/fulltextsearch/qclucene-config_p.h.orig 2009-02-25 22:09:25.000000000 +0100
+++ tools/assistant/lib/fulltextsearch/qclucene-config_p.h
@@ -87,7 +87,7 @@ configure.
#define _CL_HAVE_FCNTL_H 1
#endif
-#if !defined(__xlC__) && !defined(__xlc__) && !defined (__MINGW32__) && \
+#if !defined(__xlC__) && !defined(__xlc__) && !defined (__MINGW32__) && !defined(__NetBSD__) && \
+#if !defined(__xlC__) && !defined(__xlc__) && !defined (__MINGW32__) && !defined(__NetBSD) && \
!defined(__HP_aCC) && !defined(__SUNPRO_C) && !defined(__SUNPRO_CC) || \
defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x550) || (defined(__HP_aCC) && defined(__ia64))
/* Define to 1 if the system has the type `float_t'. */

View file

@ -1,25 +0,0 @@
$NetBSD: patch-at,v 1.2 2008/09/17 12:23:01 joerg Exp $
--- src/3rdparty/webkit/JavaScriptCore/kjs/collector.cpp.orig 2008-04-28 15:11:16.000000000 +0200
+++ src/3rdparty/webkit/JavaScriptCore/kjs/collector.cpp
@@ -72,10 +72,9 @@ extern int *__libc_stack_end;
#include <thread.h>
#endif
+#include <pthread.h>
#if HAVE(PTHREAD_NP_H)
#include <pthread_np.h>
-#else
-#include <pthread.h>
#endif
#endif
@@ -347,7 +346,7 @@ static inline void* currentThreadStackBa
if (stackBase == 0 || thread != stackThread) {
pthread_attr_t sattr;
pthread_attr_init(&sattr);
-#if HAVE(PTHREAD_NP_H)
+#if HAVE(PTHREAD_NP_H) || defined(__NetBSD__)
// e.g. on FreeBSD 5.4, neundorf@kde.org
pthread_attr_get_np(thread, &sattr);
#else

View file

@ -1,42 +0,0 @@
$NetBSD: patch-au,v 1.2 2009/02/11 17:41:38 wiz Exp $
qt-bugs@ issue : N227209
Trolltech task ID : none yet
bugs.kde.org number : 174065
applied: yes
author: Szymon Tomasz Stefanek <s.stefanek@gmail.com>
This patch fixes a crash deep inside the qt painting engine.
The toplevel shared painter is instantiated by the topmost window
which "owns" the backingstore buffer. The topmost window then recursively
asks the children to paint themselves with the shared painter.
With certain widget hierarchies it turns out that the topmost window
may be asked to paint itself deep inside the recursive painting stack:
a sort of "hierarchy-looping recursion".
The window will do the job and then happily destroy the shared
painter leaving the outer stack frames with a dangling pointer.
This patch stops the "looping recursion" when it's triggered
with a shared painter already active. The bug doesn't seem to
be present in qt 4.5 snapshots, but in the meantime we need this fix.
Index: src/gui/painting/qbackingstore.cpp
===================================================================
--- src/gui/painting/qbackingstore.cpp (revision 879741)
+++ src/gui/painting/qbackingstore.cpp (working copy)
@@ -987,8 +987,12 @@
return;
}
- if (tlw->updatesEnabled()) {
+ // With certain widget hierarchies we may end up being called recursively
+ // on the same toplevel. This is likely to explode once the painter is released
+ // in the code below (since there is no reference counting). Avoid it.
+ bool alreadyPainting = tlwExtra->sharedPainter && tlwExtra->sharedPainter->isActive();
+ if (tlw->updatesEnabled() && !alreadyPainting) {
// hw: XXX the toClean region is not correct if !dirtyWidgets.isEmpty()
// Pre render config

View file

@ -0,0 +1,22 @@
$NetBSD: patch-av,v 1.1 2009/06/13 11:55:51 hasso Exp $
--- config.tests/mac/dwarf2.test.orig 2009-03-11 15:13:41.000000000 +0100
+++ config.tests/mac/dwarf2.test
@@ -21,7 +21,7 @@ rm -f dwarf2.c dwarf2.o
"$COMPILER" $WORKDIR/xcodeversion.cpp -o xcodeversion -framework Carbon;
./xcodeversion
-if [ "$?" == "1" ]; then
+if [ "$?" = "1" ]; then
DWARF2_SUPPORT_BROKEN=yes
fi
@@ -32,7 +32,7 @@ if [ "$DWARF2_SUPPORT" != "yes" ]; then
[ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
exit 0
else
- if [ "$DWARF2_SUPPORT_BROKEN" == "yes" ]; then
+ if [ "$DWARF2_SUPPORT_BROKEN" = "yes" ]; then
[ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
exit 0
else

View file

@ -0,0 +1,14 @@
$NetBSD: patch-ax,v 1.1 2009/06/13 11:55:51 hasso Exp $
--- src/3rdparty/webkit/JavaScriptCore/runtime/Collector.cpp.orig 2009-04-22 02:57:38 +0300
+++ src/3rdparty/webkit/JavaScriptCore/runtime/Collector.cpp 2009-05-01 19:45:48 +0300
@@ -76,9 +76,7 @@ extern int *__libc_stack_end;
#include <thread.h>
#endif
-#if PLATFORM(OPENBSD)
#include <pthread.h>
-#endif
#if HAVE(PTHREAD_NP_H)
#include <pthread_np.h>

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2009/04/15 20:39:42 markd Exp $
# $NetBSD: Makefile,v 1.2 2009/06/13 11:55:51 hasso Exp $
.include "../../x11/qt4-libs/Makefile.common"
@ -11,6 +11,7 @@ CONFIGURE_ARGS+= -L${QTDIR}/lib
BUILD_QT4= yes
do-build:
cd ${WRKSRC}/src/tools/bootstrap && env ${MAKE_ENV} ${GMAKE}
cd ${WRKSRC}/src/tools/moc && env ${MAKE_ENV} ${GMAKE}
cd ${WRKSRC}/src/plugins/sqldrivers/mysql && env ${MAKE_ENV} ${GMAKE}

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2008/07/24 12:55:20 markd Exp $
@comment $NetBSD: PLIST,v 1.3 2009/06/13 11:55:51 hasso Exp $
lib/pkgconfig/QtDBus.pc
qt4/bin/qdbus
qt4/bin/qdbuscpp2xml
@ -17,6 +17,8 @@ qt4/include/Qt/qdbusinterface.h
qt4/include/Qt/qdbusmacros.h
qt4/include/Qt/qdbusmessage.h
qt4/include/Qt/qdbusmetatype.h
qt4/include/Qt/qdbuspendingcall.h
qt4/include/Qt/qdbuspendingreply.h
qt4/include/Qt/qdbusreply.h
qt4/include/Qt/qdbusserver.h
qt4/include/QtDBus/QDBusAbstractAdaptor
@ -30,6 +32,10 @@ qt4/include/QtDBus/QDBusInterface
qt4/include/QtDBus/QDBusMessage
qt4/include/QtDBus/QDBusMetaType
qt4/include/QtDBus/QDBusObjectPath
qt4/include/QtDBus/QDBusPendingCall
qt4/include/QtDBus/QDBusPendingCallWatcher
qt4/include/QtDBus/QDBusPendingReply
qt4/include/QtDBus/QDBusPendingReplyData
qt4/include/QtDBus/QDBusReply
qt4/include/QtDBus/QDBusServer
qt4/include/QtDBus/QDBusSignature
@ -47,6 +53,8 @@ qt4/include/QtDBus/qdbusinterface.h
qt4/include/QtDBus/qdbusmacros.h
qt4/include/QtDBus/qdbusmessage.h
qt4/include/QtDBus/qdbusmetatype.h
qt4/include/QtDBus/qdbuspendingcall.h
qt4/include/QtDBus/qdbuspendingreply.h
qt4/include/QtDBus/qdbusreply.h
qt4/include/QtDBus/qdbusserver.h
qt4/lib/libQtDBus.la

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.13 2008/10/26 14:02:33 adam Exp $
@comment $NetBSD: PLIST,v 1.14 2009/06/13 11:55:52 hasso Exp $
lib/pkgconfig/QtAssistantClient.pc
lib/pkgconfig/QtCLucene.pc
lib/pkgconfig/QtDesigner.pc
@ -152,7 +152,9 @@ qt4/mkspecs/common/mac-g++.conf
qt4/mkspecs/common/mac-llvm.conf
qt4/mkspecs/common/mac.conf
qt4/mkspecs/common/qmake.conf
qt4/mkspecs/common/qws.conf
qt4/mkspecs/common/unix.conf
qt4/mkspecs/common/wince.conf
qt4/mkspecs/cygwin-g++/qmake.conf
qt4/mkspecs/cygwin-g++/qplatformdefs.h
qt4/mkspecs/darwin-g++/qmake.conf
@ -170,6 +172,7 @@ qt4/mkspecs/features/designer.prf
qt4/mkspecs/features/dll.prf
qt4/mkspecs/features/exclusive_builds.prf
qt4/mkspecs/features/help.prf
qt4/mkspecs/features/include_source_dir.prf
qt4/mkspecs/features/incredibuild_xge.prf
qt4/mkspecs/features/lex.prf
qt4/mkspecs/features/link_pkgconfig.prf
@ -184,6 +187,7 @@ qt4/mkspecs/features/mac/sdk.prf
qt4/mkspecs/features/mac/x86.prf
qt4/mkspecs/features/mac/x86_64.prf
qt4/mkspecs/features/moc.prf
qt4/mkspecs/features/no_debug_info.prf
qt4/mkspecs/features/qdbus.prf
qt4/mkspecs/features/qmake.conf
qt4/mkspecs/features/qt.prf
@ -213,9 +217,11 @@ qt4/mkspecs/features/unix/x11.prf
qt4/mkspecs/features/unix/x11inc.prf
qt4/mkspecs/features/unix/x11lib.prf
qt4/mkspecs/features/unix/x11sm.prf
qt4/mkspecs/features/use_c_linker.prf
qt4/mkspecs/features/warn_off.prf
qt4/mkspecs/features/warn_on.prf
qt4/mkspecs/features/win32/console.prf
qt4/mkspecs/features/win32/default_post.prf
qt4/mkspecs/features/win32/default_pre.prf
qt4/mkspecs/features/win32/dumpcpp.prf
qt4/mkspecs/features/win32/embed_manifest_dll.prf
@ -223,7 +229,6 @@ qt4/mkspecs/features/win32/embed_manifest_exe.prf
qt4/mkspecs/features/win32/exceptions.prf
qt4/mkspecs/features/win32/exceptions_off.prf
qt4/mkspecs/features/win32/opengl.prf
qt4/mkspecs/features/win32/profiling.prf
qt4/mkspecs/features/win32/qaxcontainer.prf
qt4/mkspecs/features/win32/qaxserver.prf
qt4/mkspecs/features/win32/qt_dll.prf
@ -301,6 +306,10 @@ qt4/mkspecs/macx-g++/Info.plist.app
qt4/mkspecs/macx-g++/Info.plist.lib
qt4/mkspecs/macx-g++/qmake.conf
qt4/mkspecs/macx-g++/qplatformdefs.h
qt4/mkspecs/macx-g++42/Info.plist.app
qt4/mkspecs/macx-g++42/Info.plist.lib
qt4/mkspecs/macx-g++42/qmake.conf
qt4/mkspecs/macx-g++42/qplatformdefs.h
qt4/mkspecs/macx-icc/qmake.conf
qt4/mkspecs/macx-icc/qplatformdefs.h
qt4/mkspecs/macx-llvm/Info.plist.app
@ -325,12 +334,16 @@ qt4/mkspecs/qws/freebsd-generic-g++/qmake.conf
qt4/mkspecs/qws/freebsd-generic-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-arm-g++/qmake.conf
qt4/mkspecs/qws/linux-arm-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-armv6-g++/qmake.conf
qt4/mkspecs/qws/linux-armv6-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-avr32-g++/qmake.conf
qt4/mkspecs/qws/linux-avr32-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-cellon-g++/qmake.conf
qt4/mkspecs/qws/linux-cellon-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-dm7000-g++/qmake.conf
qt4/mkspecs/qws/linux-dm7000-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-dm800-g++/qmake.conf
qt4/mkspecs/qws/linux-dm800-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-generic-g++-32/qmake.conf
qt4/mkspecs/qws/linux-generic-g++-32/qplatformdefs.h
qt4/mkspecs/qws/linux-generic-g++/qmake.conf
@ -341,6 +354,12 @@ qt4/mkspecs/qws/linux-lsb-g++/qmake.conf
qt4/mkspecs/qws/linux-lsb-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-mips-g++/qmake.conf
qt4/mkspecs/qws/linux-mips-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-ppc-g++/qmake.conf
qt4/mkspecs/qws/linux-ppc-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-sh-g++/qmake.conf
qt4/mkspecs/qws/linux-sh-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-sh4al-g++/qmake.conf
qt4/mkspecs/qws/linux-sh4al-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-sharp-g++/qmake.conf
qt4/mkspecs/qws/linux-sharp-g++/qplatformdefs.h
qt4/mkspecs/qws/linux-x86-g++/qmake.conf
@ -374,8 +393,12 @@ qt4/mkspecs/unixware-cc/qmake.conf
qt4/mkspecs/unixware-cc/qplatformdefs.h
qt4/mkspecs/unixware-g++/qmake.conf
qt4/mkspecs/unixware-g++/qplatformdefs.h
qt4/mkspecs/win32-borland/qmake.conf
qt4/mkspecs/win32-borland/qplatformdefs.h
qt4/mkspecs/win32-g++/qmake.conf
qt4/mkspecs/win32-g++/qplatformdefs.h
qt4/mkspecs/win32-icc/qmake.conf
qt4/mkspecs/win32-icc/qplatformdefs.h
qt4/mkspecs/win32-msvc.net/qmake.conf
qt4/mkspecs/win32-msvc.net/qplatformdefs.h
qt4/mkspecs/win32-msvc/features/incremental.prf
@ -390,12 +413,16 @@ qt4/mkspecs/win32-msvc2005/qmake.conf
qt4/mkspecs/win32-msvc2005/qplatformdefs.h
qt4/mkspecs/win32-msvc2008/qmake.conf
qt4/mkspecs/win32-msvc2008/qplatformdefs.h
qt4/mkspecs/wince50standard-armv4i-msvc2005/default_post.prf
qt4/mkspecs/wince50standard-armv4i-msvc2005/qmake.conf
qt4/mkspecs/wince50standard-armv4i-msvc2005/qplatformdefs.h
qt4/mkspecs/wince50standard-armv4i-msvc2008/default_post.prf
qt4/mkspecs/wince50standard-armv4i-msvc2008/qmake.conf
qt4/mkspecs/wince50standard-armv4i-msvc2008/qplatformdefs.h
qt4/mkspecs/wince50standard-mipsii-msvc2005/default_post.prf
qt4/mkspecs/wince50standard-mipsii-msvc2005/qmake.conf
qt4/mkspecs/wince50standard-mipsii-msvc2005/qplatformdefs.h
qt4/mkspecs/wince50standard-mipsii-msvc2008/default_post.prf
qt4/mkspecs/wince50standard-mipsii-msvc2008/qmake.conf
qt4/mkspecs/wince50standard-mipsii-msvc2008/qplatformdefs.h
qt4/mkspecs/wince50standard-mipsiv-msvc2005/qmake.conf
@ -406,26 +433,36 @@ qt4/mkspecs/wince50standard-sh4-msvc2005/qmake.conf
qt4/mkspecs/wince50standard-sh4-msvc2005/qplatformdefs.h
qt4/mkspecs/wince50standard-sh4-msvc2008/qmake.conf
qt4/mkspecs/wince50standard-sh4-msvc2008/qplatformdefs.h
qt4/mkspecs/wince50standard-x86-msvc2005/default_post.prf
qt4/mkspecs/wince50standard-x86-msvc2005/qmake.conf
qt4/mkspecs/wince50standard-x86-msvc2005/qplatformdefs.h
qt4/mkspecs/wince50standard-x86-msvc2008/default_post.prf
qt4/mkspecs/wince50standard-x86-msvc2008/qmake.conf
qt4/mkspecs/wince50standard-x86-msvc2008/qplatformdefs.h
qt4/mkspecs/wince60standard-armv4i-msvc2005/qmake.conf
qt4/mkspecs/wince60standard-armv4i-msvc2005/qplatformdefs.h
qt4/mkspecs/wincewm50pocket-msvc2005/default_post.prf
qt4/mkspecs/wincewm50pocket-msvc2005/qmake.conf
qt4/mkspecs/wincewm50pocket-msvc2005/qplatformdefs.h
qt4/mkspecs/wincewm50pocket-msvc2008/default_post.prf
qt4/mkspecs/wincewm50pocket-msvc2008/qmake.conf
qt4/mkspecs/wincewm50pocket-msvc2008/qplatformdefs.h
qt4/mkspecs/wincewm50smart-msvc2005/default_post.prf
qt4/mkspecs/wincewm50smart-msvc2005/qmake.conf
qt4/mkspecs/wincewm50smart-msvc2005/qplatformdefs.h
qt4/mkspecs/wincewm50smart-msvc2008/default_post.prf
qt4/mkspecs/wincewm50smart-msvc2008/qmake.conf
qt4/mkspecs/wincewm50smart-msvc2008/qplatformdefs.h
qt4/mkspecs/wincewm60professional-msvc2005/default_post.prf
qt4/mkspecs/wincewm60professional-msvc2005/qmake.conf
qt4/mkspecs/wincewm60professional-msvc2005/qplatformdefs.h
qt4/mkspecs/wincewm60professional-msvc2008/default_post.prf
qt4/mkspecs/wincewm60professional-msvc2008/qmake.conf
qt4/mkspecs/wincewm60professional-msvc2008/qplatformdefs.h
qt4/mkspecs/wincewm60standard-msvc2005/default_post.prf
qt4/mkspecs/wincewm60standard-msvc2005/qmake.conf
qt4/mkspecs/wincewm60standard-msvc2005/qplatformdefs.h
qt4/mkspecs/wincewm60standard-msvc2008/default_post.prf
qt4/mkspecs/wincewm60standard-msvc2008/qmake.conf
qt4/mkspecs/wincewm60standard-msvc2008/qplatformdefs.h
qt4/phrasebooks/danish.qph
@ -469,7 +506,9 @@ qt4/plugins/designer/libqt3supportwidgets.la
@dirrm qt4/mkspecs/win32-msvc/features
@dirrm qt4/mkspecs/win32-msvc.net
@dirrm qt4/mkspecs/win32-msvc
@dirrm qt4/mkspecs/win32-icc
@dirrm qt4/mkspecs/win32-g++
@dirrm qt4/mkspecs/win32-borland
@dirrm qt4/mkspecs/unixware-g++
@dirrm qt4/mkspecs/unixware-cc
@dirrm qt4/mkspecs/tru64-g++
@ -486,14 +525,19 @@ qt4/plugins/designer/libqt3supportwidgets.la
@dirrm qt4/mkspecs/qws/linux-x86_64-g++
@dirrm qt4/mkspecs/qws/linux-x86-g++
@dirrm qt4/mkspecs/qws/linux-sharp-g++
@dirrm qt4/mkspecs/qws/linux-sh4al-g++
@dirrm qt4/mkspecs/qws/linux-sh-g++
@dirrm qt4/mkspecs/qws/linux-ppc-g++
@dirrm qt4/mkspecs/qws/linux-mips-g++
@dirrm qt4/mkspecs/qws/linux-lsb-g++
@dirrm qt4/mkspecs/qws/linux-ipaq-g++
@dirrm qt4/mkspecs/qws/linux-generic-g++-32
@dirrm qt4/mkspecs/qws/linux-generic-g++
@dirrm qt4/mkspecs/qws/linux-dm800-g++
@dirrm qt4/mkspecs/qws/linux-dm7000-g++
@dirrm qt4/mkspecs/qws/linux-cellon-g++
@dirrm qt4/mkspecs/qws/linux-avr32-g++
@dirrm qt4/mkspecs/qws/linux-armv6-g++
@dirrm qt4/mkspecs/qws/linux-arm-g++
@dirrm qt4/mkspecs/qws/freebsd-generic-g++
@dirrm qt4/mkspecs/qws
@ -504,6 +548,7 @@ qt4/plugins/designer/libqt3supportwidgets.la
@dirrm qt4/mkspecs/macx-pbuilder
@dirrm qt4/mkspecs/macx-llvm
@dirrm qt4/mkspecs/macx-icc
@dirrm qt4/mkspecs/macx-g++42
@dirrm qt4/mkspecs/macx-g++
@dirrm qt4/mkspecs/lynxos-g++
@dirrm qt4/mkspecs/linux-pgcc

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile.common,v 1.15 2008/10/26 14:02:33 adam Exp $
# $NetBSD: Makefile.common,v 1.16 2009/06/13 11:55:50 hasso Exp $
# used by x11/qt4-libs/Makefile.common
# used by x11/qt4-tools/Makefile
QTVERSION= 4.4.3
QTVERSION= 4.5.1
MAINTAINER?= adam@NetBSD.org
HOMEPAGE= http://www.trolltech.com/products/qt/