x11-libs/libqxt: Add gcc 6 patch
authorMatthew Dawson <matthew@mjdsystems.ca>
Mon, 12 Dec 2016 23:08:59 +0000 (18:08 -0500)
committerDavid Seifert <soap@gentoo.org>
Wed, 4 Jan 2017 12:34:32 +0000 (14:34 +0200)
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/3102

x11-libs/libqxt/files/libqxt-gcc6-fix.patch [new file with mode: 0644]
x11-libs/libqxt/libqxt-0.6.2-r2.ebuild

diff --git a/x11-libs/libqxt/files/libqxt-gcc6-fix.patch b/x11-libs/libqxt/files/libqxt-gcc6-fix.patch
new file mode 100644 (file)
index 0000000..23adc1d
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ru libqxt-libqxt-v0.6.2/src/core/qxtslotjob.cpp libqxt-libqxt-v0.6.2.new/src/core/qxtslotjob.cpp
+--- libqxt-libqxt-v0.6.2/src/core/qxtslotjob.cpp       2011-11-24 17:10:32.000000000 -0500
++++ libqxt-libqxt-v0.6.2.new/src/core/qxtslotjob.cpp   2016-12-08 18:07:07.460538282 -0500
+@@ -174,7 +174,7 @@
+ 
+ QVariant QxtFuture::delayedResult(int msec)
+ {
+-    if (!waiter->wait(msec, false))
++    if (!waiter->wait(msec, QEventLoop::AllEvents))
+         return QVariant();
+     return job->result();
+ }
index 929e3887a5d654542a7db1fa76db392f3647c03f..9165ff39e3acabe230052a262f531b86d191c850 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -39,6 +39,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-invoke-prev-filter.patch"    # bug 494448
        "${FILESDIR}/${PN}-media-keys.patch"            # bug 495984
        "${FILESDIR}/${PN}-xrandr-missing-lib.patch"
+       "${FILESDIR}/${PN}-gcc6-fix.patch"
 )
 
 src_prepare() {