summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortsutsui <tsutsui@pkgsrc.org>2019-02-17 16:57:59 +0000
committertsutsui <tsutsui@pkgsrc.org>2019-02-17 16:57:59 +0000
commit805bf86012b3c6f449d734ef7845b395e313d153 (patch)
tree141604bcdd556f2ef9f5bf7acf17233c00483a38 /x11
parent9971481653035cbf97167b33742cd350f778ef09 (diff)
downloadpkgsrc-805bf86012b3c6f449d734ef7845b395e313d153.tar.gz
mlterm: pull upstream fix for "Segfault in showing an input method window."
Bump PKGREVISION.
Diffstat (limited to 'x11')
-rw-r--r--x11/mlterm/Makefile4
-rw-r--r--x11/mlterm/distinfo3
-rw-r--r--x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c37
3 files changed, 41 insertions, 3 deletions
diff --git a/x11/mlterm/Makefile b/x11/mlterm/Makefile
index 0ecd2bf1eb6..9fd303bd910 100644
--- a/x11/mlterm/Makefile
+++ b/x11/mlterm/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.145 2018/11/14 22:22:47 kleink Exp $
+# $NetBSD: Makefile,v 1.146 2019/02/17 16:57:59 tsutsui Exp $
DISTNAME= mlterm-3.8.7
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mlterm/}
diff --git a/x11/mlterm/distinfo b/x11/mlterm/distinfo
index 89a32d9e116..eb7d8a94530 100644
--- a/x11/mlterm/distinfo
+++ b/x11/mlterm/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.74 2018/11/01 15:11:07 tsutsui Exp $
+$NetBSD: distinfo,v 1.75 2019/02/17 16:57:59 tsutsui Exp $
SHA1 (mlterm-3.8.7.tar.gz) = 040363ea4428fbdbeaa49cf402f71f41b8dbaea7
RMD160 (mlterm-3.8.7.tar.gz) = 4a9a4a053a6ae4c431564c84051a7ed95acaa311
@@ -6,3 +6,4 @@ SHA512 (mlterm-3.8.7.tar.gz) = 6d2087d1433918f476e35dbde8d79940170fa6f133b9122e1
Size (mlterm-3.8.7.tar.gz) = 3994292 bytes
SHA1 (patch-configure) = b29ee553686061f8fd0f93b8c1d68954c060338d
SHA1 (patch-etc_font-fb) = 03f0b2ecee20ef3201c8e4ce17f03ac90f657b00
+SHA1 (patch-uitoolkit_xlib_ui__window.c) = 6424d2cd55564bd2a3a5e61582d8bc156b0eb703
diff --git a/x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c b/x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c
new file mode 100644
index 00000000000..0beec8c452a
--- /dev/null
+++ b/x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c
@@ -0,0 +1,37 @@
+$NetBSD: patch-uitoolkit_xlib_ui__window.c,v 1.1 2019/02/17 16:57:59 tsutsui Exp $
+
+- pull upstream fix:
+ http://sourceforge.net/projects/mlterm/files/01release/mlterm-3.8.7/mlterm-3.8.7-fixes.patch/download
+ https://bitbucket.org/arakiken/mlterm/commits/f41d3a433fcfc573fe7d09fb67a54cfae7d247c5
+
+--- uitoolkit/xlib/ui_window.c.orig 2018-10-27 14:29:17.000000000 +0000
++++ uitoolkit/xlib/ui_window.c
+@@ -1337,9 +1337,11 @@ int ui_window_show(ui_window_t *win, int
+ size_hints.height_inc = total_height_inc(win);
+ size_hints.min_width = total_min_width(win);
+ size_hints.min_height = total_min_height(win);
+- size_hints.base_width = size_hints.min_width > size_hints.width_inc ?
++ size_hints.base_width = (size_hints.width_inc > 0 &&
++ size_hints.min_width > size_hints.width_inc) ?
+ size_hints.min_width % size_hints.width_inc : 0;
+- size_hints.base_height = size_hints.min_height > size_hints.height_inc ?
++ size_hints.base_height = (size_hints.height_inc > 0 &&
++ size_hints.min_height > size_hints.height_inc) ?
+ size_hints.min_height % size_hints.height_inc : 0;
+
+ #ifdef DEBUG
+@@ -1586,9 +1588,11 @@ void ui_window_set_normal_hints(ui_windo
+ size_hints.height_inc = total_height_inc(root);
+ size_hints.min_width = total_min_width(root);
+ size_hints.min_height = total_min_height(root);
+- size_hints.base_width =
+- size_hints.min_width > size_hints.width_inc ? size_hints.min_width % size_hints.width_inc : 0;
+- size_hints.base_height = size_hints.min_height > size_hints.height_inc ?
++ size_hints.base_width = (size_hints.width_inc > 0 &&
++ size_hints.min_width > size_hints.width_inc) ?
++ size_hints.min_width % size_hints.width_inc : 0;
++ size_hints.base_height = (size_hints.height_inc > 0 &&
++ size_hints.min_height > size_hints.height_inc) ?
+ size_hints.min_height % size_hints.height_inc : 0;
+ size_hints.flags = PMinSize | PResizeInc | PBaseSize;
+