[Bug 254919] x11/libxkbcommon: fix xkbcli interactive-wayland when posix_fallocate() isn't supported by fs

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254919

            Bug ID: 254919
           Summary: x11/libxkbcommon: fix xkbcli interactive-wayland when
                    posix_fallocate() isn't supported by fs
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

Created attachment 223946
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=223946&action=edit
patch

XDG_RUNTIME_DIR may be pointed to a filesystem that doesn't support
posix_fallocate() (e.g. ZFS). Running the xkbcli interactive-wayland keymap
test then fails. The following patch fixes this use case. I plan to send it
upstream this week.

Reviewed by: jbeich@, zeising@ (via Gitter)
Inspired by:
https://gitlab.freedesktop.org/wayland/wayland/-/blob/1.19.0/cursor/os-compatibility.c#L168-178

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.