Index: head/graphics/wayland/Makefile =================================================================== --- head/graphics/wayland/Makefile (revision 527325) +++ head/graphics/wayland/Makefile (revision 527326) @@ -1,33 +1,33 @@ # Created by: kwm@FreeBSD.org # $FreeBSD$ PORTNAME= wayland PORTVERSION= 1.18.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics wayland MASTER_SITES= https://wayland.freedesktop.org/releases/ PATCH_SITES= https://gitlab.freedesktop.org/${PORTNAME}/${PORTNAME}/commit/ PATCHFILES+= 0fc00fff3015.patch:-p1 # https://gitlab.freedesktop.org/wayland/wayland/merge_requests/60 PATCHFILES+= 1283d54dac97.patch:-p1 # https://gitlab.freedesktop.org/wayland/wayland/merge_requests/61 PATCHFILES+= 3a3dd0820de3.patch:-p1 # https://gitlab.freedesktop.org/wayland/wayland/merge_requests/61 PATCHFILES+= 230885ebb40b.patch:-p1 # https://gitlab.freedesktop.org/wayland/wayland/merge_requests/61 MAINTAINER= x11@FreeBSD.org COMMENT= Wayland composite "server" LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexpat.so:textproc/expat2 \ libffi.so:devel/libffi \ libepoll-shim.so:devel/libepoll-shim CFLAGS+= "-I${LOCALBASE}/include/libepoll-shim" USES= meson pkgconfig tar:xz USE_GNOME= libxslt:build USE_LDCONFIG= yes MESON_ARGS= -Ddocumentation=false .include Index: head/graphics/wayland/files/patch-cursor_os-compatibility.c =================================================================== --- head/graphics/wayland/files/patch-cursor_os-compatibility.c (revision 527325) +++ head/graphics/wayland/files/patch-cursor_os-compatibility.c (revision 527326) @@ -1,21 +1,23 @@ --- cursor/os-compatibility.c.orig 2020-02-11 23:46:03 UTC +++ cursor/os-compatibility.c @@ -34,7 +34,7 @@ #include #include -#ifdef HAVE_MEMFD_CREATE +#if defined(HAVE_MEMFD_CREATE) || defined(__FreeBSD__) #include #endif -@@ -132,6 +132,9 @@ os_create_anonymous_file(off_t size) +@@ -131,6 +131,11 @@ os_create_anonymous_file(off_t size) */ fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); } else +#elif defined(__FreeBSD__) ++/* posix_fallocate returns ENODEV before https://svnweb.freebsd.org/changeset/base/356512 */ ++#undef HAVE_POSIX_FALLOCATE + fd = shm_open(SHM_ANON, O_CREAT | O_RDWR | O_CLOEXEC, 0600); // shm_open is always CLOEXEC + if (fd < 0) #endif { path = getenv("XDG_RUNTIME_DIR");