On Fri, Jun 28, 2019 at 01:56:43PM -0400, Christopher Turkel wrote: > Probably someday. X won’t be going away anytime soon. > > On Friday, June 28, 2019, Nathan Hartman <[email protected]> wrote: > > > Came across this: > > > > https://www.phoronix.com/scan.php?page=news_item&px=X.Org- > > Maintenance-Mode-Quickly > > > > Long story short, Red Hat hopes to switch from X.Org to Wayland and > > expects X.Org to go into "hard maintenance mode" after that. > > > > Relevant to OpenBSD? > > >
First, I'd like to blame Xenocara for this pain porting Wayland to OpenBSD (because building Mesa from ports would be an opportunity), right now to build Mesa with Wayland support we need to import Wayland in Xenocara and all its dependencies (including libxml) in base. Second, someone needs to either port existing Wayland implementation (currently I am aware only of two implementations, one is written in C and the other one is written in Rust) or write own implementation from scratch. Third, only Linux has fully working Wayland, DragonFly BSD was first to port Wayland, but the problem is the same at every *BSD: no sane kqueue() code which replaces epoll() one, credentials support is incomplete (needs bits for PID), the tests need to be changed because in their current state they'll only pass on Linux. Fourth, to port actual compositors we need to port libinput which depends on epoll and evdev. The problem here is to add wscons support because wscons is not documented enough. FreeBSD and DragonFly BSD solve this problem by porting evdev itself, I guess that's because their syscons is not documented too. We don't need libinput if we are going to write our own compositors, but that's impossible while wscons is not documented. Fifth, almost nobody in OpenBSD cares about Wayland and personally I don't see an opportunity in protocol which requires XML. The epoll() problem is solved at FreeBSD and NetBSD by using epoll-shim, it's epoll() emulation via kqueue(), DragonFly BSD still prefers not using epoll-shim and writting kqueue() code instead, but Peter Must (the current maintainer of Wayland in DragonFly) is going to use epoll-shim for libinput while still maintaining kqueue() code in reference Wayland library.

