Merge lp:~mitya57/kubuntu-packaging/qt-lp1094360 into lp:~kubuntu-packagers/kubuntu-packaging/qt

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 357
Proposed branch: lp:~mitya57/kubuntu-packaging/qt-lp1094360
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qt
Diff against target: 97 lines (+55/-1)
5 files modified
debian/changelog (+14/-0)
debian/patches/gcc-4.8.diff (+12/-0)
debian/patches/kubuntu_41_remove_gtk_theme_check.diff (+26/-0)
debian/patches/series (+2/-0)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~mitya57/kubuntu-packaging/qt-lp1094360
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Approve
Harald Sitter Needs Fixing
Review via email: mp+153077@code.launchpad.net

Description of the change

Quoting from the patch description:

"""
QGtkStyle uses GConf to get the Gtk theme name. We are getting rid of GConf schemas, so Qt fails to read that name, and disables QGtkStyle.

That check can be safely removed because we don't ship QStyle for Gtk and thus we shouldn't care about recursion problems much.

In upstream QtBase the whole theme-related code is going to be dropped.
"""

This patch fixes all Qt apps looking inconsistent with the rest of Ubuntu desktop in Raring.

Upstream MP (for QtBase): https://codereview.qt-project.org/50769

Update: I've also fixed an FTBFS which was caused by a recent pkg-kde-tools update which moved extract-messages.sh out of /usr/bin.

To post a comment you must log in.
356. By Dmitry Shachnev

Fix FTBFS which was caused by moved extract-messages.sh.

Revision history for this message
Harald Sitter (apachelogger) wrote :

please note that the target branch has changed.

also, have you forwarded this to the Qt Project?

review: Needs Fixing
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Not merged in bzr sense, but changes applied in the branch and uploaded.

review: Approve
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks Dmitrijs!

> also, have you forwarded this to the Qt Project?

I've forwarded what I think should be a better fix (see the link above), but was told that all Gtk-theme code will be removed, so changing it doesn't make much sense.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-02-19 19:18:48 +0000
+++ debian/changelog 2013-03-18 05:22:21 +0000
@@ -1,3 +1,17 @@
1qt4-x11 (4:4.8.4+dfsg-0ubuntu8) UNRELEASED; urgency=low
2
3 * debian/patches/kubuntu_41_remove_gtk_theme_check.diff:
4 do not check that Gtk theme is not empty (LP: #1094360).
5 * Fix FTBFS which was caused by moved extract-messages.sh.
6
7 -- Dmitry Shachnev <mitya57@ubuntu.com> Wed, 13 Mar 2013 11:58:09 +0400
8
9qt4-x11 (4:4.8.4+dfsg-0ubuntu7) raring; urgency=low
10
11 * Fix header file, causing build failure with GCC 4.8.
12
13 -- Matthias Klose <doko@ubuntu.com> Tue, 26 Feb 2013 11:00:45 +0100
14
1qt4-x11 (4:4.8.4+dfsg-0ubuntu6) raring; urgency=low15qt4-x11 (4:4.8.4+dfsg-0ubuntu6) raring; urgency=low
216
3 * Cherry pick upstream commit 5b285845a3c3478a4008b7e3416c3912c69fd20b17 * Cherry pick upstream commit 5b285845a3c3478a4008b7e3416c3912c69fd20b
418
=== added file 'debian/patches/gcc-4.8.diff'
--- debian/patches/gcc-4.8.diff 1970-01-01 00:00:00 +0000
+++ debian/patches/gcc-4.8.diff 2013-03-18 05:22:21 +0000
@@ -0,0 +1,12 @@
1Index: qt4-x11-4.8.4+dfsg/src/corelib/concurrent/qtconcurrentfilter.h
2===================================================================
3--- qt4-x11-4.8.4+dfsg.orig/src/corelib/concurrent/qtconcurrentfilter.h 2012-11-23 14:09:55.000000000 +0400
4+++ qt4-x11-4.8.4+dfsg/src/corelib/concurrent/qtconcurrentfilter.h 2013-03-13 11:33:30.000000000 +0400
5@@ -105,7 +105,6 @@
6 template <typename Sequence, typename KeepFunctor, typename ReduceFunctor>
7 ThreadEngineStarter<void> filterInternal(Sequence &sequence, KeepFunctor keep, ReduceFunctor reduce)
8 {
9- typedef typename Sequence::const_iterator Iterator;
10 typedef FilterKernel<Sequence, KeepFunctor, ReduceFunctor> KernelType;
11 return startThreadEngine(new KernelType(sequence, keep, reduce));
12 }
013
=== added file 'debian/patches/kubuntu_41_remove_gtk_theme_check.diff'
--- debian/patches/kubuntu_41_remove_gtk_theme_check.diff 1970-01-01 00:00:00 +0000
+++ debian/patches/kubuntu_41_remove_gtk_theme_check.diff 2013-03-18 05:22:21 +0000
@@ -0,0 +1,26 @@
1Author: Dmitry Shachnev <mitya57@ubuntu.com>
2Description: do not check that Gtk theme name is not empty
3 QGtkStyle uses GConf to get the Gtk theme name. We are getting rid of
4 GConf schemas, so Qt fails to read that name, and disables QGtkStyle.
5 .
6 That check can be safely removed because we don't ship QStyle for Gtk
7 and thus we shouldn't care about recursion problems much.
8 .
9 In upstream QtBase the whole theme-related code is going to be dropped.
10Bug-Ubuntu: https://bugs.launchpad.net/bugs/1094360
11Forwarded: yes
12
13--- a/src/gui/styles/qgtkstyle_p.cpp
14+++ b/src/gui/styles/qgtkstyle_p.cpp
15@@ -509,10 +509,7 @@
16 if (!gtkWidgetMap()->contains("GtkWindow") && themeName.isEmpty()) {
17 themeName = getThemeName();
18
19- if (themeName.isEmpty()) {
20- qWarning("QGtkStyle was unable to detect the current GTK+ theme.");
21- return;
22- } else if (themeName == QLS("Qt") || themeName == QLS("Qt4")) {
23+ if (themeName == QLS("Qt") || themeName == QLS("Qt4")) {
24 // Due to namespace conflicts with Qt3 and obvious recursion with Qt4,
25 // we cannot support the GTK_Qt Gtk engine
26 qWarning("QGtkStyle cannot be used together with the GTK_Qt engine.");
027
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-02-19 19:18:48 +0000
+++ debian/patches/series 2013-03-18 05:22:21 +0000
@@ -57,9 +57,11 @@
57kubuntu_38_revert_fix_jit_crash.diff57kubuntu_38_revert_fix_jit_crash.diff
58kubuntu_39_fix_medium_font.diff58kubuntu_39_fix_medium_font.diff
59kubuntu_40_disable_neon.patch59kubuntu_40_disable_neon.patch
60kubuntu_41_remove_gtk_theme_check.diff
60kubuntu_93_disable_overlay_scrollbars.diff61kubuntu_93_disable_overlay_scrollbars.diff
61kubuntu_94_xinput_valuators_fix.diff62kubuntu_94_xinput_valuators_fix.diff
62kubuntu_95_qt_disable_bounce.diff63kubuntu_95_qt_disable_bounce.diff
63kubuntu_97_a11y_qt_and_qml_backport.diff64kubuntu_97_a11y_qt_and_qml_backport.diff
64CVE-2012-6093.patch65CVE-2012-6093.patch
65CVE-2013-0254.patch66CVE-2013-0254.patch
67gcc-4.8.diff
6668
=== modified file 'debian/rules'
--- debian/rules 2013-02-08 06:30:55 +0000
+++ debian/rules 2013-03-18 05:22:21 +0000
@@ -357,7 +357,7 @@
357 # Create .pot file357 # Create .pot file
358 ln -s MessagesQt.sh debian/Messages.sh358 ln -s MessagesQt.sh debian/Messages.sh
359 mkdir po359 mkdir po
360 cd debian; qtcopydir=.. podir=../po extract-messages.sh360 cd debian; qtcopydir=.. podir=../po /usr/lib/kubuntu-l10n/libexec/extract-messages.sh
361 rm -f debian/Message.sh361 rm -f debian/Message.sh
362endif362endif
363363

Subscribers

People subscribed via source and target branches