pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/kate gcc7 fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d72fa2b6b98c
branches:  trunk
changeset: 374191:d72fa2b6b98c
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Jan 17 20:19:58 2018 +0000

description:
gcc7 fix

diffstat:

 editors/kate/distinfo                                    |   3 +-
 editors/kate/patches/patch-part_view_kateviewhelpers.cpp |  19 ++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r b3d05d9c0467 -r d72fa2b6b98c editors/kate/distinfo
--- a/editors/kate/distinfo     Wed Jan 17 20:13:38 2018 +0000
+++ b/editors/kate/distinfo     Wed Jan 17 20:19:58 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 03:32:17 agc Exp $
+$NetBSD: distinfo,v 1.11 2018/01/17 20:19:58 markd Exp $
 
 SHA1 (kate-4.14.3.tar.xz) = da37195e86b5449fcdfe69a3f7df6373a5da900c
 RMD160 (kate-4.14.3.tar.xz) = 195cfac39111a1434b6b5c60543b219a70c0c74e
 SHA512 (kate-4.14.3.tar.xz) = 0d197bb00fb9a56572e140dd3c50338c90a0cb3bb8ebc78cc0e6d6ab04d6c129537a2ab8076ff9b844e159687c0a73cbacbe678e006b2d86b57285068158e38e
 Size (kate-4.14.3.tar.xz) = 2766880 bytes
 SHA1 (patch-addons_kate_pate_src_version_checker.h) = f22a9131bcbcdffc0330d258cf471d8e3dcbf05e
+SHA1 (patch-part_view_kateviewhelpers.cpp) = 55c93f9149ce5f5916f59d11e8992185c1f9be28
 SHA1 (patch-tests_CMakeLists.txt) = ae9f410649101d6803fc6b14f487f8243fce0991
diff -r b3d05d9c0467 -r d72fa2b6b98c editors/kate/patches/patch-part_view_kateviewhelpers.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/kate/patches/patch-part_view_kateviewhelpers.cpp  Wed Jan 17 20:19:58 2018 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-part_view_kateviewhelpers.cpp,v 1.1 2018/01/17 20:19:58 markd Exp $
+
+Fixes an error when compiling with GCC7:
+error: call of overloaded 'abs(uint)' is ambiguous
+
+Backport of https://cgit.kde.org/ktexteditor.git/commit/?id=8b2820b4c95284337b5713ce7f548a456c25279e
+from the KF5 ktexteditor.
+
+--- part/view/kateviewhelpers.cpp.orig 2014-10-26 20:17:55.000000000 +0000
++++ part/view/kateviewhelpers.cpp
+@@ -1703,7 +1703,7 @@ void KateIconBorder::paintBorder (int /*
+       if (realLine > -1) {
+         if (m_viewInternal->cache()->viewLine(z).startCol() == 0) {
+           if (m_viRelLineNumbersOn && m_view->viInputMode()) {
+-            int diff = abs(realLine - currentLine);
++            int diff = abs(realLine - static_cast<int>(currentLine));
+             if (diff > 0) {
+               p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h,
+                           Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );



Home | Main Index | Thread Index | Old Index