[qt] 1:4.8.6-23

Rex Dieter rdieter at fedoraproject.org
Fri Feb 13 13:04:56 UTC 2015


commit d131ab162f9cb19ad4d70e8f700ee8df53e7ea81
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Fri Feb 13 07:04:46 2015 -0600

    1:4.8.6-23
    
    - Qt: FTBFS with gcc5 (#1192464)
    - Make Adwaita the default theme for applications running in the GNOME DE (#1192453)

 qt-fix_detection_of_gcc5.patch   |   14 ++++++++++++++
 qt-prefer_adwaita_on_gnome.patch |   17 +++++++++++++++++
 qt.spec                          |   18 ++++++++++++++++--
 3 files changed, 47 insertions(+), 2 deletions(-)
---
diff --git a/qt-fix_detection_of_gcc5.patch b/qt-fix_detection_of_gcc5.patch
new file mode 100644
index 0000000..758d035
--- /dev/null
+++ b/qt-fix_detection_of_gcc5.patch
@@ -0,0 +1,14 @@
+diff -up qt-everywhere-opensource-src-4.8.6/configure.gcc5 qt-everywhere-opensource-src-4.8.6/configure
+--- qt-everywhere-opensource-src-4.8.6/configure.gcc5	2015-02-13 06:57:07.229735742 -0600
++++ qt-everywhere-opensource-src-4.8.6/configure	2015-02-13 07:00:59.103801127 -0600
+@@ -8038,6 +8038,10 @@ g++*)
+         QT_GCC_MINOR_VERSION=`echo $COMPILER_VERSION | sed 's,^\([0-9]*\)\.\([0-9]*\).*,\2,'`
+         QT_GCC_PATCH_VERSION=0
+         ;;
++    *)
++        QT_GCC_MAJOR_VERSION=$COMPILER_VERSION
++        QT_GCC_MINOR_VERSION=0
++        QT_GCC_PATCH_VERSION=0
+     esac
+ 
+     case "$COMPILER_VERSION" in
diff --git a/qt-prefer_adwaita_on_gnome.patch b/qt-prefer_adwaita_on_gnome.patch
new file mode 100644
index 0000000..71e30c4
--- /dev/null
+++ b/qt-prefer_adwaita_on_gnome.patch
@@ -0,0 +1,17 @@
+--- src/gui/kernel/qguiplatformplugin.cpp.adwaita	2015-02-12 14:32:45.217935391 +0100
++++ src/gui/kernel/qguiplatformplugin.cpp	2015-02-12 14:46:11.471866038 +0100
+@@ -165,8 +165,13 @@ QString QGuiPlatformPlugin::styleName()
+     case DE_GNOME: {
+         QStringList availableStyles = QStyleFactory::keys();
+         // Set QGtkStyle for GNOME if available
++        QString adwaitaStyleKey = QString::fromLatin1("adwaita");
+         QString gtkStyleKey = QString::fromLatin1("GTK+");
+-        if (availableStyles.contains(gtkStyleKey)) {
++        if (availableStyles.contains(adwaitaStyleKey)) {
++            stylename = adwaitaStyleKey;
++            break;
++        }
++        else if (availableStyles.contains(gtkStyleKey)) {
+             stylename = gtkStyleKey;
+             break;
+         }
diff --git a/qt.spec b/qt.spec
index 6ed2b45..3dd87ef 100644
--- a/qt.spec
+++ b/qt.spec
@@ -35,7 +35,7 @@ Summary: Qt toolkit
 Name:    qt
 Epoch:   1
 Version: 4.8.6
-Release: 22%{?dist}
+Release: 23%{?dist}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT
@@ -70,6 +70,10 @@ Patch5: qt-everywhere-opensource-src-4.8.5-webcore_debuginfo.patch
 # cups16 printer discovery
 Patch6: qt-cupsEnumDests.patch
 
+# prefer adwaita over gtk+ on DE_GNOME
+# https://bugzilla.redhat.com/show_bug.cgi?id=1192453
+Patch10: qt-prefer_adwaita_on_gnome.patch
+
 # enable ft lcdfilter
 Patch15: qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch
 
@@ -94,6 +98,10 @@ Patch28: qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch
 # add support for pkgconfig's Requires.private to qmake
 Patch50: qt-everywhere-opensource-src-4.8.4-qmake_pkgconfig_requires_private.patch
 
+# backport 'Fix detection of GCC5'
+# https://qt.gitorious.org/qt/qtbase/commit/9fb4c2c412621b63c06dbbd899f44041b2e126c2
+Patch51: qt-fix_detection_of_gcc5.patch
+
 # fix invalid inline assembly in qatomic_{i386,x86_64}.h (de)ref implementations
 Patch53: qt-x11-opensource-src-4.5.0-fix-qatomic-inline-asm.patch
 
@@ -527,6 +535,7 @@ rm -fv mkspecs/linux-g++*/qmake.conf.multilib-optflags
 %if 0%{?fedora} > 18
 #patch6 -p1 -b .cupsEnumDests
 %endif
+%patch10 -p0 -b .prefer_adwaita_on_gnome
 %patch15 -p1 -b .enable_ft_lcdfilter
 %patch23 -p1 -b .glib_eventloop_nullcheck
 %patch25 -p1 -b .qdbusconnection_no_debug
@@ -534,6 +543,7 @@ rm -fv mkspecs/linux-g++*/qmake.conf.multilib-optflags
 %patch27 -p1 -b .qt3support_debuginfo
 %patch28 -p1 -b .qt_plugin_path
 %patch50 -p1 -b .qmake_pkgconfig_requires_private
+%patch51 -p1 -b .fix_detection_of_gcc5
 ## TODO: still worth carrying?  if so, upstream it.
 %patch53 -p1 -b .qatomic-inline-asm
 ## TODO: upstream me
@@ -1298,7 +1308,11 @@ fi
 
 
 %changelog
-* Wed Feb 11 2015 Rex Dieter <rdieter at fedoraproject.org> 4.8.6-22
+* Fri Feb 13 2015 Rex Dieter <rdieter at fedoraproject.org> - 1:4.8.6-23
+- Qt: FTBFS with gcc5 (#1192464)
+- Make Adwaita the default theme for applications running in the GNOME DE (#1192453)
+
+* Wed Feb 11 2015 Rex Dieter <rdieter at fedoraproject.org> 1:4.8.6-22
 - rebuild (gcc5)
 
 * Thu Jan 29 2015 Rex Dieter <rdieter at fedoraproject.org> 1:4.8.6-21


More information about the scm-commits mailing list