head 1.4; access; symbols pkgsrc-2026Q2:1.4.0.2 pkgsrc-2026Q2-base:1.4 pkgsrc-2026Q1:1.3.0.2 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.2.0.14 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.12 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.10 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.8 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.6 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.4 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.2 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.1.0.14 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.12 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.10 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.8 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.6 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.4 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.2 pkgsrc-2022Q3-base:1.1; locks; strict; comment @# @; 1.4 date 2026.03.26.08.53.11; author wiz; state Exp; branches; next 1.3; commitid L4foidtmSfQIMszG; 1.3 date 2026.02.22.15.33.14; author kikadf; state Exp; branches; next 1.2; commitid 43GCw9vCtH6mWnvG; 1.2 date 2024.06.09.14.29.27; author wiz; state Exp; branches; next 1.1; commitid 60eWMfrYlIkpHjdF; 1.1 date 2022.08.04.15.21.26; author nia; state Exp; branches; next ; commitid vhTvUNXCLpLXFzOD; desc @@ 1.4 log @wayland: update to 1.25.0. Aside from the usual bug fixes and protocol clarifications, this new release includes: - Prose documentation has been converted from DocBook to mdBook - The Wayland XML dialect, the content update model and color management are now fully documented - A new "frozen" attribute for interfaces with multiple parent interfaces - A new wl_surface.get_release request for per-commit buffer release callbacks - A new wl_display_dispatch_pending_single() function to dispatch a single event - WAYLAND_DEBUG output is now colorized @ text @$NetBSD: patch-meson.build,v 1.3 2026/02/22 15:33:14 kikadf Exp $ Support for NetBSD. --- meson.build.orig 2026-03-19 16:03:08.000000000 +0000 +++ meson.build @@@@ -42,9 +42,23 @@@@ endforeach config_h.set('HAVE_' + h.underscorify().to_upper(), cc.has_header(h)) endforeach +# NetBSD defines posix_fallocate(), but it always returns failure. +# Cleanly fall back to ftruncate. +# After memfd_create() and ftruncate(), mmap() fails +# when the file size is smaller than a page. +# See: https://gnats.netbsd.org/57622 +if host_machine.system() == 'netbsd' have_funcs = [ 'accept4', 'mkostemp', + 'prctl', + 'mremap', + 'strndup', +] +else +have_funcs = [ + 'accept4', + 'mkostemp', 'posix_fallocate', 'prctl', 'memfd_create', @@@@ -52,6 +66,7 @@@@ have_funcs = [ 'strndup', 'gettid', ] +endif foreach f: have_funcs config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f)) endforeach @@@@ -74,8 +89,8 @@@@ if get_option('libraries') config_h.set10('HAVE_BROKEN_MSG_CMSG_CLOEXEC', have_broken_msg_cmsg_cloexec) if get_option('libraries') - if host_machine.system() in ['freebsd', 'openbsd'] - # When building for FreeBSD, epoll(7) is provided by a userspace + if host_machine.system() in ['freebsd', 'netbsd', 'openbsd'] + # When building for *BSD, epoll(7) is provided by a userspace # wrapper around kqueue(2). epoll_dep = dependency('epoll-shim') else @ 1.3 log @ wayland: workaround for cursor loading on NetBSD Gdk-WARNING **: 16:00:11.681: Failed to load cursor theme default Gdk:ERROR:../gdk/wayland/gdkdisplay-wayland.c:1195:_gdk_wayland_display_get_scaled_cursor_theme: assertion failed: (display_wayland->cursor_theme_name) PR kern/57622 @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.2 2024/06/09 14:29:27 wiz Exp $ d5 1 a5 1 --- meson.build.orig 2025-07-06 12:11:26.000000000 +0000 d7 1 a7 1 @@@@ -38,6 +38,20 @@@@ foreach h: [ 'sys/prctl.h', 'sys/procctl d17 3 a19 3 +have_funcs = [ + 'accept4', + 'mkostemp', d25 7 a31 5 have_funcs = [ 'accept4', 'mkostemp', @@@@ -47,6 +61,7 @@@@ have_funcs = [ 'mremap', d33 1 d39 1 a39 1 @@@@ -69,8 +84,8 @@@@ endif @ 1.2 log @wayland: update to 1.23.0. This is the official release for Wayland 1.23. Besides numerous bugfixes and protocol clarifications, Wayland 1.23 includes the following new features: - A mechanism to set the size of the internal connection buffer used by libwayland - An enum-header mode for wayland-scanner to generate headers with only enums - wayland-scanner now generates validator functions for enums on the server side - Protocols can now indicate with a "deprecated-since" XML attribute that a request, event or enum entry is deprecated - An API to set a name for a queue to aid debugging - wl_client_get_user_data() and wl_client_set_user_data() to more easily attach custom data to a client - OpenBSD support - A wl_shm.release request for proper cleanup of this global @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.1 2022/08/04 15:21:26 nia Exp $ d5 1 a5 1 --- meson.build.orig 2024-05-30 18:59:51.000000000 +0000 d7 1 a7 1 @@@@ -38,6 +38,18 @@@@ foreach h: [ 'sys/prctl.h', 'sys/procctl d13 3 a20 1 + 'memfd_create', d28 1 a28 1 @@@@ -47,6 +59,7 @@@@ have_funcs = [ d36 1 a36 1 @@@@ -69,8 +82,8 @@@@ endif @ 1.1 log @wayland: Update to 1.21.0. This allows wayland to work on NetBSD again with the latest gtk3. However, I have decided to drop the custom kqueue patches and use libepoll-shim now that it seems relatively stable. We can take advantage of the relatively useful OS abstractions in the latest version of the source tree. Thanks for throwing a twig, upstream! Shame about the input API. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- meson.build.orig 2022-06-30 21:59:11.000000000 +0000 d34 1 a34 1 @@@@ -69,7 +82,7 @@@@ endif d38 4 a41 3 - if host_machine.system() == 'freebsd' + if host_machine.system() == 'freebsd' or host_machine.system() == 'netbsd' # When building for FreeBSD, epoll(7) is provided by a userspace d44 1 @