commit:     bde91cad9f1ffa8b0c3454945ac1d30403ef8c70
Author:     Peter-Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Mon May  8 04:25:55 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon May  8 05:53:07 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bde91cad

net-misc/knutclient: Fix building with GCC-6

Bug: https://bugs.gentoo.org/show_bug.cgi?id=612936
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4565

 net-misc/knutclient/files/knutclient-1.0.5-gcc6.patch | 18 ++++++++++++++++++
 net-misc/knutclient/knutclient-1.0.5.ebuild           |  8 ++++++--
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/net-misc/knutclient/files/knutclient-1.0.5-gcc6.patch 
b/net-misc/knutclient/files/knutclient-1.0.5-gcc6.patch
new file mode 100644
index 00000000000..f52f6b4b089
--- /dev/null
+++ b/net-misc/knutclient/files/knutclient-1.0.5-gcc6.patch
@@ -0,0 +1,18 @@
+Forwarded: no
+Description: Fix the build with gcc 6
+Author: Adrian Bunk <[email protected]>
+Bug-Debian: https://bugs.debian.org/811882
+
+--- a/src/knutprefdlg.cpp
++++ b/src/knutprefdlg.cpp
+@@ -957,9 +957,9 @@
+ 
+   QHBoxLayout *setFontLayout = new QHBoxLayout();
+   QStringList fontsList;
+   KFontChooser::getFontList(fontsList, KFontChooser::SmoothScalableFonts);
+-  m_fontWidget = new KFontChooser(mainPageWidget, false, fontsList);
++  m_fontWidget = new KFontChooser(mainPageWidget, 
KFontChooser::NoDisplayFlags, fontsList);
+   setFontLayout->addWidget (m_fontWidget ,0);
+   topLayout->addLayout(setFontLayout);
+ 
+   topLayout->addStretch( 20 );

diff --git a/net-misc/knutclient/knutclient-1.0.5.ebuild 
b/net-misc/knutclient/knutclient-1.0.5.ebuild
index c367772a3bd..3bdb40011a4 100644
--- a/net-misc/knutclient/knutclient-1.0.5.ebuild
+++ b/net-misc/knutclient/knutclient-1.0.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -17,7 +17,11 @@ SLOT="4"
 KEYWORDS="~amd64 ~x86"
 IUSE="debug"
 
-PATCHES=( "${FILESDIR}/${P}-desktop.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-desktop.patch"
+       "${FILESDIR}/${P}-gcc6.patch"
+)
+
 DOCS=( ChangeLog )
 
 S=${WORKDIR}/${MY_P}

Reply via email to