pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/luakit luakit: Update to 2.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91b9aba31693
branches:  trunk
changeset: 440238:91b9aba31693
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Oct 04 18:16:42 2020 +0000

description:
luakit: Update to 2.2.1

### Changed
- Removed debug symbol generation for default make.
- Changed the C standard from gnu99 to c11 because Webkit wants it.

### Fixed

- Fixed bounding box not spanning over whole element.
- Fixed an issue where styled hint labels caused intransparent bounding boxes.
- Fixed a race condition when a tab is closed on NetBSD.

diffstat:

 www/luakit/Makefile                     |   5 +--
 www/luakit/distinfo                     |  12 +++++-----
 www/luakit/patches/patch-common_ipc.c   |  36 +++++++++++++++++++++++++++++++++
 www/luakit/patches/patch-lib_window.lua |  24 ----------------------
 4 files changed, 44 insertions(+), 33 deletions(-)

diffs (99 lines):

diff -r db0862128411 -r 91b9aba31693 www/luakit/Makefile
--- a/www/luakit/Makefile       Sun Oct 04 18:15:43 2020 +0000
+++ b/www/luakit/Makefile       Sun Oct 04 18:16:42 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2020/08/17 20:20:21 leot Exp $
+# $NetBSD: Makefile,v 1.4 2020/10/04 18:16:42 nia Exp $
 
-DISTNAME=      luakit-2.2
-PKGREVISION=   2
+DISTNAME=      luakit-2.2.1
 CATEGORIES=    www lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=luakit/}
 
diff -r db0862128411 -r 91b9aba31693 www/luakit/distinfo
--- a/www/luakit/distinfo       Sun Oct 04 18:15:43 2020 +0000
+++ b/www/luakit/distinfo       Sun Oct 04 18:16:42 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1 2020/08/09 17:25:37 nia Exp $
+$NetBSD: distinfo,v 1.2 2020/10/04 18:16:42 nia Exp $
 
-SHA1 (luakit-2.2.tar.gz) = 644be3ed722cb6a004e57ad579a9e1ba33a7abd6
-RMD160 (luakit-2.2.tar.gz) = 2dc74d65d30c9322ea8ad8fd1d50d1d4d3c45d25
-SHA512 (luakit-2.2.tar.gz) = 5364acc559c934593dd9d66f8f3238225a7f89a824780f406a0a616d89fc78db4ee98b2cfa161e43ffbdfb9c5ac915a63383f45b1b6bd4eda9c33d62eff2b06f
-Size (luakit-2.2.tar.gz) = 488550 bytes
+SHA1 (luakit-2.2.1.tar.gz) = a634f4e87aecf62a305284560ba15dbe1119e602
+RMD160 (luakit-2.2.1.tar.gz) = a0ac406989aa56e061d5a9e7722a85387bbe60de
+SHA512 (luakit-2.2.1.tar.gz) = 9a055c1541f31027805d3da2604d98c0193a9c2874099fc3ab3ef08c645a8e91b8504d1162e86cbd29a5e5e0a3c54b3154299708f864d135d8640bcc3866674b
+Size (luakit-2.2.1.tar.gz) = 488845 bytes
 SHA1 (patch-Makefile) = 8510a1de1c99244ce1f8cb925439921381692f3d
-SHA1 (patch-lib_window.lua) = 7a2a41610b20cc18e8ff5a4bd7f0ed06994c2ce8
+SHA1 (patch-common_ipc.c) = bcaf0b83dac1b9e3af07883473c028f0dad1a696
diff -r db0862128411 -r 91b9aba31693 www/luakit/patches/patch-common_ipc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/luakit/patches/patch-common_ipc.c     Sun Oct 04 18:16:42 2020 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-common_ipc.c,v 1.1 2020/10/04 18:16:42 nia Exp $
+
+[PATCH] Handle EOF sent to G_IO_IN instead of G_IO_HUP (NetBSD/OSX)
+
+Fixes https://github.com/luakit/luakit/issues/725
+
+--- common/ipc.c.orig  2020-09-19 10:55:41.000000000 +0000
++++ common/ipc.c
+@@ -21,6 +21,7 @@
+ #include "common/lualib.h"
+ #include "common/luaserialize.h"
+ #include "common/ipc.h"
++#include "log.h"
+ 
+ /* Prototypes for ipc_recv_... functions */
+ #define X(name) void ipc_recv_##name(ipc_endpoint_t *ipc, const void *msg, guint length);
+@@ -138,6 +139,19 @@ ipc_recv_and_dispatch_or_enqueue(ipc_end
+         case G_IO_STATUS_AGAIN:
+             return;
+         case G_IO_STATUS_EOF:
++            verbose("g_io_channel_read_chars(): End Of File received");
++            /* OSX and NetBSD are sending EOF on nonblocking channels first.
++             * These requests can be ignored. They should end up in
++             * recv_hup(), but unfortunately they do not.
++             *
++             * If we do not close the socket, glib will continue to
++             * call the G_IO_IN handler.
++             *
++             * We decrement the refcount to 1 here, and when ipc_recv
++             * decrements the refcount to zero, the socket will be
++             * disconnected.
++             */
++            g_atomic_int_dec_and_test(&ipc->refcount);
+             return;
+         case G_IO_STATUS_ERROR:
+             if (!g_str_equal(ipc->name, "UI"))
diff -r db0862128411 -r 91b9aba31693 www/luakit/patches/patch-lib_window.lua
--- a/www/luakit/patches/patch-lib_window.lua   Sun Oct 04 18:15:43 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-lib_window.lua,v 1.1 2020/08/09 17:25:37 nia Exp $
-
-Do not destroy() the current view.
-
-When just one tab is present it leads to an high CPU usage and luakit completely
-stuck (although start luakit via `--log=DEBUG' option shows that it responds to
-events). To workaround this problem avoid to call view:destroy().
-
-XXX: I'm not sure if it's the correct fix.
-
-Reported uptsream via:
-
- <https://github.com/luakit/luakit/pull/726>
-
---- lib/window.lua.orig        2017-08-10 09:50:15.000000000 +0000
-+++ lib/window.lua
-@@ -519,7 +519,6 @@ window.methods = {
-         view = view or w.view
-         w:emit_signal("close-tab", view)
-         w:detach_tab(view, blank_last)
--        view:destroy()
-     end,
- 
-     attach_tab = function (w, view, switch, order)



Home | Main Index | Thread Index | Old Index