summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2018-01-17 20:19:58 +0000
committermarkd <markd@pkgsrc.org>2018-01-17 20:19:58 +0000
commit38c1bd0936383e2a2f8f3dfc69da97d2c6329638 (patch)
treec060f2902282189de1572b528b6524a95a0d71db /editors
parent7e8608fdb37f6d81b56f897835815fc637487105 (diff)
downloadpkgsrc-38c1bd0936383e2a2f8f3dfc69da97d2c6329638.tar.gz
gcc7 fix
Diffstat (limited to 'editors')
-rw-r--r--editors/kate/distinfo3
-rw-r--r--editors/kate/patches/patch-part_view_kateviewhelpers.cpp19
2 files changed, 21 insertions, 1 deletions
diff --git a/editors/kate/distinfo b/editors/kate/distinfo
index 6de3f8279b5..dd99a44ed7d 100644
--- a/editors/kate/distinfo
+++ b/editors/kate/distinfo
@@ -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 --git a/editors/kate/patches/patch-part_view_kateviewhelpers.cpp b/editors/kate/patches/patch-part_view_kateviewhelpers.cpp
new file mode 100644
index 00000000000..57742e56b10
--- /dev/null
+++ b/editors/kate/patches/patch-part_view_kateviewhelpers.cpp
@@ -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) );