[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Qt 4.5 related Crash on KDM Startup? [Fwd]
From:       Fathi Boudra <fboudra () gmail ! com>
Date:       2009-01-25 21:55:08
Message-ID: 200901252255.08837.fboudra () gmail ! com
[Download RAW message or body]

On Sunday 25 January 2009 12:44:25 Alexis Ménard wrote:
> a pure one? With no additional patches?

There's 2 additional patches:
- 0209-prevent-qt-mixing.diff
needed because otherwise, I'll need to rebuild KDE and we don't want to 
rebuild (Qt is supposed BC, we update only Qt from 4.4.3 to 4.5.0 snapshot).
- 18_enable_qt3support_qtwebkit_debug_info.diff
as I want qt3support and qtwebkit debug info.
This behavior changed between Qt 4.4.3 and Qt 4.5.0.

By the way, the patched are attached and can't be the source of KDM crash.
IMHO, this is pristine.

For more infos, I used:
Qt 4.5.0 snapshot 20090125
KDM 4.2.0 branch svn r911645
X.Org X Server 1.4.2
on amd64 architecture.

> On Sun, Jan 25, 2009 at 12:24 PM, Fathi Boudra <fboudra@gmail.com> wrote:
> > On Tuesday 20 January 2009 18:17:12 Thiago Macieira wrote:
> > > We don't test qt-copy patches. I've said more than once that, should
> > > any bug be reported to our support team, the first thing they'll ask is
> > > to
> >
> > try
> >
> > > with a pristine (unpatched) version of Qt. This is the attitude that
> >
> > you'll
> >
> > > see in the #qt channel too, though we have nothing to do with that.
> >
> > I tried a pristine version of Qt and still have the crash.


["0209-prevent-qt-mixing.diff" (text/x-patch)]

qt-bugs@ issue : none
Trolltech task ID : none
bugs.kde.org number : none
applied: yes
author: Lubos Lunak <l.lunak@kde.org>

This patch changes QObjectPrivateVersion, thus preventing mixing
parts of upstream Qt and qt-copy. In general it is a bad idea to mix
e.g. libQtCore from one build and libQtGui from another one, and other
qt-copy patches could make changes in Qt internal structures that could
cause problems when mixed with upstream Qt.

This patch does not make qt-copy binary incompatible with upstream Qt.
It only further enforces using the same sources for the whole Qt build.

--- a/src/corelib/kernel/qobject_p.h
+++ b/src/corelib/kernel/qobject_p.h
@@ -78,7 +78,9 @@ extern QSignalSpyCallbackSet Q_CORE_EXPO
 
 inline QObjectData::~QObjectData() {}
 
-enum { QObjectPrivateVersion = QT_VERSION };
+// add 0x1000000 to mark it as qt-copy version, with possible modifications
+// in some Q*Private class
+enum { QObjectPrivateVersion = QT_VERSION + 0x1000000 };
 
 class Q_CORE_EXPORT QObjectPrivate : public QObjectData
 {

["18_enable_qt3support_qtwebkit_debug_info.diff" (text/x-patch)]

author: Fathi Boudra <fabo@debian.org>

On Qt >= 4.5, debug info are disabled for Qt3Support and QtWebkit.
This patch enable them.

--- a/src/3rdparty/webkit/WebCore/WebCore.pro
+++ b/src/3rdparty/webkit/WebCore/WebCore.pro
@@ -2031,9 +2031,3 @@ HEADERS += $$WEBKIT_API_HEADERS
     }
 }
 
-CONFIG(QTDIR_build):isEqual(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 4) {
-    # start with 4.5
-    CONFIG -= separate_debug_info
-    CONFIG += no_debug_info
-}
-
--- a/src/qt3support/qt3support.pro
+++ b/src/qt3support/qt3support.pro
@@ -34,6 +34,3 @@ MOCDIR = .moc
 
 *-g++*: QMAKE_CXXFLAGS += -fno-strict-aliasing
 
-CONFIG -= separate_debug_info
-CONFIG += no_debug_info
-


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic