From owner-svn-ports-all@freebsd.org Tue Dec 31 21:11:43 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD5131DD704; Tue, 31 Dec 2019 21:11:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nRnC666pz3CNY; Tue, 31 Dec 2019 21:11:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CCD63201E5; Tue, 31 Dec 2019 21:11:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBVLBhcJ031072; Tue, 31 Dec 2019 21:11:43 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBVLBfus031058; Tue, 31 Dec 2019 21:11:41 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201912312111.xBVLBfus031058@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 31 Dec 2019 21:11:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r521656 - in head: devel/wf-config x11-toolkits/wlroots x11-wm/cage x11-wm/cage/files x11-wm/sway x11-wm/sway/files x11-wm/wayfire X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head: devel/wf-config x11-toolkits/wlroots x11-wm/cage x11-wm/cage/files x11-wm/sway x11-wm/sway/files x11-wm/wayfire X-SVN-Commit-Revision: 521656 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 21:11:43 -0000 Author: jbeich Date: Tue Dec 31 21:11:41 2019 New Revision: 521656 URL: https://svnweb.freebsd.org/changeset/ports/521656 Log: x11-toolkits/wlroots: update to 0.9.0 Changes: https://github.com/swaywm/wlroots/releases/tag/0.9.0 Reported by: GitHub (watch releases) Added: head/x11-wm/cage/files/ head/x11-wm/cage/files/patch-wlroots-0.9 (contents, props changed) head/x11-wm/sway/files/ head/x11-wm/sway/files/patch-wlroots-0.9 (contents, props changed) Modified: head/devel/wf-config/Makefile (contents, props changed) head/x11-toolkits/wlroots/Makefile (contents, props changed) head/x11-toolkits/wlroots/distinfo (contents, props changed) head/x11-toolkits/wlroots/pkg-plist (contents, props changed) head/x11-wm/cage/Makefile (contents, props changed) head/x11-wm/sway/Makefile (contents, props changed) head/x11-wm/wayfire/Makefile (contents, props changed) head/x11-wm/wayfire/distinfo (contents, props changed) Modified: head/devel/wf-config/Makefile ============================================================================== --- head/devel/wf-config/Makefile Tue Dec 31 20:33:13 2019 (r521655) +++ head/devel/wf-config/Makefile Tue Dec 31 21:11:41 2019 (r521656) @@ -2,6 +2,7 @@ PORTNAME= wf-config DISTVERSION= 0.3 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org Modified: head/x11-toolkits/wlroots/Makefile ============================================================================== --- head/x11-toolkits/wlroots/Makefile Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-toolkits/wlroots/Makefile Tue Dec 31 21:11:41 2019 (r521656) @@ -1,13 +1,9 @@ # $FreeBSD$ PORTNAME= wlroots -DISTVERSION= 0.8.1 -PORTREVISION= 1 +DISTVERSION= 0.9.0 CATEGORIES= x11-toolkits -PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ -PATCHFILES+= fc6c0ca12e94.patch:-p1 - MAINTAINER= jbeich@FreeBSD.org COMMENT= Modular Wayland compositor library @@ -46,6 +42,7 @@ CONSOLEKIT_PATCHFILES= ac65ec72a2f2.patch:-p1:ck2 # se CONSOLEKIT_LIB_DEPENDS= libdbus-1.so:devel/dbus \ libconsolekit.so:sysutils/consolekit2 CONSOLEKIT_MESON_ENABLED= consolekit2 +CONSOLEKIT_BROKEN= fails to build with wlroots 0.9 .if make(makesum) .MAKEFLAGS: WITH+=CONSOLEKIT .endif Modified: head/x11-toolkits/wlroots/distinfo ============================================================================== --- head/x11-toolkits/wlroots/distinfo Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-toolkits/wlroots/distinfo Tue Dec 31 21:11:41 2019 (r521656) @@ -1,7 +1,5 @@ -TIMESTAMP = 1570476500 -SHA256 (swaywm-wlroots-0.8.1_GH0.tar.gz) = 202b86e0e21699b6660bbda56afc2e3358db7252f83ff69c89f01926b4900d98 -SIZE (swaywm-wlroots-0.8.1_GH0.tar.gz) = 451814 -SHA256 (fc6c0ca12e94.patch) = 8fe6473c3ab262a6f838c262fe70cdef63bc80b883eedbd58c72437f39fbf489 -SIZE (fc6c0ca12e94.patch) = 2717 +TIMESTAMP = 1577805114 +SHA256 (swaywm-wlroots-0.9.0_GH0.tar.gz) = 334220a1d550dc5b20d28fb7b27b9b7c23f9c6d5ef5ad82c67ef127458ce2790 +SIZE (swaywm-wlroots-0.9.0_GH0.tar.gz) = 464755 SHA256 (ac65ec72a2f2.patch) = 83a1995d99f042a12e4b523cfab9e59089fcf1567086350e0e56f59eb507dff5 SIZE (ac65ec72a2f2.patch) = 28370 Modified: head/x11-toolkits/wlroots/pkg-plist ============================================================================== --- head/x11-toolkits/wlroots/pkg-plist Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-toolkits/wlroots/pkg-plist Tue Dec 31 21:11:41 2019 (r521656) @@ -5,6 +5,7 @@ include/wlr/backend/interface.h include/wlr/backend/libinput.h include/wlr/backend/multi.h include/wlr/backend/noop.h +include/wlr/backend/rdp.h include/wlr/backend/session.h include/wlr/backend/session/interface.h include/wlr/backend/wayland.h @@ -42,6 +43,7 @@ include/wlr/types/wlr_input_device.h include/wlr/types/wlr_input_inhibitor.h include/wlr/types/wlr_input_method_v2.h include/wlr/types/wlr_keyboard.h +include/wlr/types/wlr_keyboard_group.h include/wlr/types/wlr_layer_shell_v1.h include/wlr/types/wlr_linux_dmabuf_v1.h include/wlr/types/wlr_list.h @@ -69,6 +71,7 @@ include/wlr/types/wlr_tablet_v2.h include/wlr/types/wlr_text_input_v3.h include/wlr/types/wlr_touch.h include/wlr/types/wlr_virtual_keyboard_v1.h +include/wlr/types/wlr_virtual_pointer_v1.h include/wlr/types/wlr_xcursor_manager.h include/wlr/types/wlr_xdg_decoration_v1.h include/wlr/types/wlr_xdg_output_v1.h @@ -81,6 +84,6 @@ include/wlr/version.h include/wlr/xcursor.h %%X11%%include/wlr/xwayland.h lib/libwlroots.so -lib/libwlroots.so.3 -lib/libwlroots.so.3.6.1 +lib/libwlroots.so.4 +lib/libwlroots.so.4.7.1 libdata/pkgconfig/wlroots.pc Modified: head/x11-wm/cage/Makefile ============================================================================== --- head/x11-wm/cage/Makefile Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-wm/cage/Makefile Tue Dec 31 21:11:41 2019 (r521656) @@ -3,7 +3,7 @@ PORTNAME= cage DISTVERSIONPREFIX= v DISTVERSION= 0.1.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11-wm MAINTAINER= jbeich@FreeBSD.org Added: head/x11-wm/cage/files/patch-wlroots-0.9 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/cage/files/patch-wlroots-0.9 Tue Dec 31 21:11:41 2019 (r521656) @@ -0,0 +1,20 @@ +https://github.com/Hjdskes/cage/commit/33bb3c818c59 + +--- cage.c.orig 2019-06-03 17:55:52 UTC ++++ cage.c +@@ -374,15 +374,6 @@ end: + wl_event_source_remove(sigint_source); + wl_event_source_remove(sigterm_source); + seat_destroy(server.seat); +- wlr_server_decoration_manager_destroy(server_decoration_manager); +- wlr_xdg_decoration_manager_v1_destroy(xdg_decoration_manager); +- wlr_xdg_shell_destroy(xdg_shell); +- wlr_idle_inhibit_v1_destroy(server.idle_inhibit_v1); +- if (server.idle) { +- wlr_idle_destroy(server.idle); +- } +- wlr_data_device_manager_destroy(data_device_mgr); +- wlr_compositor_destroy(compositor); + wlr_output_layout_destroy(server.output_layout); + /* This function is not null-safe, but we only ever get here + with a proper wl_display. */ Modified: head/x11-wm/sway/Makefile ============================================================================== --- head/x11-wm/sway/Makefile Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-wm/sway/Makefile Tue Dec 31 21:11:41 2019 (r521656) @@ -2,7 +2,7 @@ PORTNAME= sway DISTVERSION= 1.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11-wm MAINTAINER= jbeich@FreeBSD.org Added: head/x11-wm/sway/files/patch-wlroots-0.9 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/sway/files/patch-wlroots-0.9 Tue Dec 31 21:11:41 2019 (r521656) @@ -0,0 +1,199 @@ +https://github.com/swaywm/sway/commit/d19f4f7bf866 +https://github.com/swaywm/sway/commit/1d3cbe9f2782 +https://github.com/swaywm/sway/commit/6e0565e9de42 + +--- sway/config/output.c.orig 2019-08-27 04:46:22 UTC ++++ sway/config/output.c +@@ -201,12 +201,13 @@ struct output_config *store_output_config(struct outpu + return oc; + } + +-static bool set_mode(struct wlr_output *output, int width, int height, ++static void set_mode(struct wlr_output *output, int width, int height, + float refresh_rate) { + int mhz = (int)(refresh_rate * 1000); + if (wl_list_empty(&output->modes)) { + sway_log(SWAY_DEBUG, "Assigning custom mode to %s", output->name); +- return wlr_output_set_custom_mode(output, width, height, mhz); ++ wlr_output_set_custom_mode(output, width, height, mhz); ++ return; + } + + struct wlr_output_mode *mode, *best = NULL; +@@ -226,7 +227,7 @@ static bool set_mode(struct wlr_output *output, int wi + } else { + sway_log(SWAY_DEBUG, "Assigning configured mode to %s", output->name); + } +- return wlr_output_set_mode(output, best); ++ wlr_output_set_mode(output, best); + } + + bool apply_output_config(struct output_config *oc, struct sway_output *output) { +@@ -243,11 +244,12 @@ bool apply_output_config(struct output_config *oc, str + wlr_output_layout_remove(root->output_layout, wlr_output); + } + wlr_output_enable(wlr_output, false); +- return true; ++ return wlr_output_commit(wlr_output); + } else if (!output->enabled) { + // Output is not enabled. Enable it, output_enable will call us again. + if (!oc || oc->dpms_state != DPMS_OFF) { + wlr_output_enable(wlr_output, true); ++ wlr_output_commit(wlr_output); + } + output_enable(output, oc); + return true; +@@ -258,27 +260,15 @@ bool apply_output_config(struct output_config *oc, str + wlr_output_enable(wlr_output, true); + } + +- bool modeset_success; ++ struct wlr_output_mode *preferred_mode = ++ wlr_output_preferred_mode(wlr_output); + if (oc && oc->width > 0 && oc->height > 0) { + sway_log(SWAY_DEBUG, "Set %s mode to %dx%d (%f GHz)", oc->name, oc->width, + oc->height, oc->refresh_rate); +- modeset_success = +- set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate); +- } else if (!wl_list_empty(&wlr_output->modes)) { +- struct wlr_output_mode *mode = +- wl_container_of(wlr_output->modes.prev, mode, link); +- modeset_success = wlr_output_set_mode(wlr_output, mode); +- } else { +- // Output doesn't support modes +- modeset_success = true; ++ set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate); ++ } else if (preferred_mode != NULL) { ++ wlr_output_set_mode(wlr_output, preferred_mode); + } +- if (!modeset_success) { +- // Failed to modeset, maybe the output is missing a CRTC. Leave the +- // output disabled for now and try again when the output gets the mode +- // we asked for. +- sway_log(SWAY_ERROR, "Failed to modeset output %s", wlr_output->name); +- return false; +- } + + if (oc && oc->scale > 0) { + sway_log(SWAY_DEBUG, "Set %s scale to %f", oc->name, oc->scale); +@@ -297,6 +287,14 @@ bool apply_output_config(struct output_config *oc, str + wlr_output_set_transform(wlr_output, oc->transform); + } + ++ if (!wlr_output_commit(wlr_output)) { ++ // Failed to modeset, maybe the output is missing a CRTC. Leave the ++ // output disabled for now and try again when the output gets the mode ++ // we asked for. ++ sway_log(SWAY_ERROR, "Failed to modeset output %s", wlr_output->name); ++ return false; ++ } ++ + // Find position for it + if (oc && (oc->x != -1 || oc->y != -1)) { + sway_log(SWAY_DEBUG, "Set %s position to %d, %d", oc->name, oc->x, oc->y); +@@ -316,6 +314,7 @@ bool apply_output_config(struct output_config *oc, str + if (oc && oc->dpms_state == DPMS_OFF) { + sway_log(SWAY_DEBUG, "Turning off screen"); + wlr_output_enable(wlr_output, false); ++ wlr_output_commit(wlr_output); + } + + return true; +@@ -324,12 +323,12 @@ bool apply_output_config(struct output_config *oc, str + static void default_output_config(struct output_config *oc, + struct wlr_output *wlr_output) { + oc->enabled = 1; +- if (!wl_list_empty(&wlr_output->modes)) { +- struct wlr_output_mode *mode = +- wl_container_of(wlr_output->modes.prev, mode, link); +- oc->width = mode->width; +- oc->height = mode->height; +- oc->refresh_rate = mode->refresh; ++ struct wlr_output_mode *preferred_mode = ++ wlr_output_preferred_mode(wlr_output); ++ if (preferred_mode != NULL) { ++ oc->width = preferred_mode->width; ++ oc->height = preferred_mode->height; ++ oc->refresh_rate = preferred_mode->refresh; + } + oc->x = oc->y = -1; + oc->scale = 1; + + +--- sway/desktop/layer_shell.c.orig 2019-08-27 04:46:22 UTC ++++ sway/desktop/layer_shell.c +@@ -486,7 +486,9 @@ void handle_layer_shell_surface(struct wl_listener *li + struct wlr_layer_surface_v1 *layer_surface = data; + sway_log(SWAY_DEBUG, "new layer surface: namespace %s layer %d anchor %d " + "size %dx%d margin %d,%d,%d,%d", +- layer_surface->namespace, layer_surface->layer, layer_surface->layer, ++ layer_surface->namespace, ++ layer_surface->client_pending.layer, ++ layer_surface->client_pending.layer, + layer_surface->client_pending.desired_width, + layer_surface->client_pending.desired_height, + layer_surface->client_pending.margin.top, +@@ -543,7 +545,8 @@ void handle_layer_shell_surface(struct wl_listener *li + sway_layer->output_destroy.notify = handle_output_destroy; + wl_signal_add(&output->events.destroy, &sway_layer->output_destroy); + +- wl_list_insert(&output->layers[layer_surface->layer], &sway_layer->link); ++ wl_list_insert(&output->layers[layer_surface->client_pending.layer], ++ &sway_layer->link); + + // Temporarily set the layer's current state to client_pending + // So that we can easily arrange it +--- sway/desktop/output.c.orig 2019-08-27 04:46:22 UTC ++++ sway/desktop/output.c +@@ -375,7 +375,7 @@ bool output_has_opaque_overlay_layer_surface(struct sw + struct wlr_layer_surface_v1 *wlr_layer_surface_v1; + wl_list_for_each(wlr_layer_surface_v1, &server.layer_shell->surfaces, link) { + if (wlr_layer_surface_v1->output != output->wlr_output || +- wlr_layer_surface_v1->layer != ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY) { ++ wlr_layer_surface_v1->current.layer != ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY) { + continue; + } + struct wlr_surface *wlr_surface = wlr_layer_surface_v1->surface; +@@ -653,31 +653,12 @@ static void handle_scale(struct wl_listener *listener, + update_output_manager_config(output->server); + } + +-static void send_presented_iterator(struct sway_output *output, +- struct wlr_surface *surface, struct wlr_box *box, float rotation, +- void *data) { +- struct wlr_presentation_event *event = data; +- wlr_presentation_send_surface_presented(server.presentation, +- surface, event); +-} +- + static void handle_present(struct wl_listener *listener, void *data) { + struct sway_output *output = wl_container_of(listener, output, present); +- struct wlr_output_event_present *output_event = data; + + if (!output->enabled) { + return; + } +- +- struct wlr_presentation_event event = { +- .output = output->wlr_output, +- .tv_sec = (uint64_t)output_event->when->tv_sec, +- .tv_nsec = (uint32_t)output_event->when->tv_nsec, +- .refresh = (uint32_t)output_event->refresh, +- .seq = (uint64_t)output_event->seq, +- .flags = output_event->flags, +- }; +- output_for_each_surface(output, send_presented_iterator, &event); + } + + void handle_new_output(struct wl_listener *listener, void *data) { +--- sway/input/seat.c.orig 2019-08-27 04:46:22 UTC ++++ sway/input/seat.c +@@ -1089,7 +1089,7 @@ void seat_set_focus_layer(struct sway_seat *seat, + return; + } + seat_set_focus_surface(seat, layer->surface, true); +- if (layer->layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) { ++ if (layer->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) { + seat->focused_layer = layer; + } + } Modified: head/x11-wm/wayfire/Makefile ============================================================================== --- head/x11-wm/wayfire/Makefile Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-wm/wayfire/Makefile Tue Dec 31 21:11:41 2019 (r521656) @@ -2,7 +2,11 @@ PORTNAME= wayfire DISTVERSION= 0.3.0 +PORTREVISION= 1 CATEGORIES= x11-wm + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES= 8d8581a3e791.patch:-p1 MAINTAINER= jbeich@FreeBSD.org COMMENT= 3D wayland compositor Modified: head/x11-wm/wayfire/distinfo ============================================================================== --- head/x11-wm/wayfire/distinfo Tue Dec 31 20:33:13 2019 (r521655) +++ head/x11-wm/wayfire/distinfo Tue Dec 31 21:11:41 2019 (r521656) @@ -1,3 +1,5 @@ TIMESTAMP = 1570482658 SHA256 (WayfireWM-wayfire-0.3.0_GH0.tar.gz) = c686bf5abb7f0db829196785bba4136c85d7b52d701212e21636dad75e1da0aa SIZE (WayfireWM-wayfire-0.3.0_GH0.tar.gz) = 235019 +SHA256 (8d8581a3e791.patch) = 484f9292848d1c59abce2e25486d329296aa8508522cd5d133a7bbcd048be228 +SIZE (8d8581a3e791.patch) = 2058