pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/mlterm mlterm: pull upstream fix for "Segfault in ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/568ccf6c049f
branches:  trunk
changeset: 329906:568ccf6c049f
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Sun Feb 17 16:57:59 2019 +0000

description:
mlterm: pull upstream fix for "Segfault in showing an input method window."

Bump PKGREVISION.

diffstat:

 x11/mlterm/Makefile                                  |   4 +-
 x11/mlterm/distinfo                                  |   3 +-
 x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c |  37 ++++++++++++++++++++
 3 files changed, 41 insertions(+), 3 deletions(-)

diffs (68 lines):

diff -r a60302777ede -r 568ccf6c049f x11/mlterm/Makefile
--- a/x11/mlterm/Makefile       Sun Feb 17 16:13:21 2019 +0000
+++ b/x11/mlterm/Makefile       Sun Feb 17 16:57:59 2019 +0000
@@ -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 -r a60302777ede -r 568ccf6c049f x11/mlterm/distinfo
--- a/x11/mlterm/distinfo       Sun Feb 17 16:13:21 2019 +0000
+++ b/x11/mlterm/distinfo       Sun Feb 17 16:57:59 2019 +0000
@@ -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 @@
 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 -r a60302777ede -r 568ccf6c049f x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/mlterm/patches/patch-uitoolkit_xlib_ui__window.c      Sun Feb 17 16:57:59 2019 +0000
@@ -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;
+ 



Home | Main Index | Thread Index | Old Index