Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 2018 22:55:00 +0300
From:      Greg V <greg@unrelenting.technology>
To:        freebsd-x11@freebsd.org
Subject:   Re: In preparation for adding wayland to ports
Message-ID:  <6924bb93-c95d-e3a5-47d1-8078514d48e2@unrelenting.technology>
In-Reply-To: <4e46c4fa-ee94-7a4f-edf0-46a0c83b2bfb@FreeBSD.org>
References:  <CAECmPwuOEry-LZs6_pRwT8GQemnRzHEBnpE%2BfHHypJqpNT5mHA@mail.gmail.com> <4e46c4fa-ee94-7a4f-edf0-46a0c83b2bfb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 01/04/2018 20:58, Guido Falsi wrote:
> On 01/04/2018 17:15, Johannes Lundberg wrote:
>> Hi
>>
>> Trying to put together some info of stuff we need to do for getting wayland
>> into ports.
>> Me and Niclas plan to meet up and get this committed when I'm in Stockholm
>> next week. If we could get all to-dos ready by then that would be great.
>>
>> Please add/update the info below.
>>
>> Toolkits
>> ----------
>> x11-toolkits/gtk30
Wayland support is enabled in the gnome-3.26 branch:
https://github.com/freebsd/freebsd-ports-gnome/tree/gnome-3.26

>> devel/qt5
>>  - uknown status - anyone experimented with qt5 on wayland?
Yes!

The 'wayland' QPA (software rendered, without EGL) was enabled a long 
time ago I think.

I have a patch for enabling 'wayland-egl': 
https://github.com/myfreeweb/freebsd-ports-dank/commit/fb4512fca0f33d6fd8fd64588602fb9f4d9084e3
It also seems to enable some other EGL stuff (EGL on KMS, which actually 
might be used by QtWayland based compositors??)
The Qt/KDE ports people should look at this…

// BTW: I made the RPCS3 emulator work with Vulkan+Wayland 
https://github.com/RPCS3/rpcs3/pull/3994 :)

Also the 'gtk' QPA also works great on Wayland — seems independent of 
the 'wayland-egl' QPA actually.
My port for it: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224453
> multimedia/libva
>    - Has WAYLAND option, disabled by default
>
> AFAIK it works, but I don't use wayland so I don't have first hand
> information.
Yes, I've tested libva with MPV, works great on Intel graphics.
My mpv patch is already committed: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224425 — please enable 
that default together with libva!


More stuff working on Wayland:

- FreeRDP, already committed 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223913
- LibreOffice 6 Beta 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224288 — should 
actually be possible to switch to the GTK3 backend in the current 
version I guess??
- Inkscape git master 
https://github.com/myfreeweb/freebsd-ports-dank/commit/19c2a3fcf001b757cfaa7f2e6d8b4ff2ef8cc69c 
(IIRC there's no flags, they just switched to GTK3 in master)
- MyPaint git master 
https://github.com/myfreeweb/freebsd-ports-dank/commit/d1dad2afcc602f2e1c301a0c85661ceab0d6f507 
(same?)
- Firefox Nightly Wayland https://github.com/stransky/gecko-dev (outside 
of ports) — for now: only software rendering, and buggy on HiDPI

By the way, I'm working on a standalone generic weston-launch style 
setuid wrapper for compositors: https://github.com/myfreeweb/loginw
It passes device file descriptors (so that they can be accessible only 
to root), handles all the nasty vt/tty stuff, and will eventually call 
shutdown/reboot/sleep, kinda like logind on Linux. And the best part: it 
enters Capsicum capability mode before starting its main loop!
Current status: successfully launches a demo example from my libweston 
Rust bindings project https://github.com/myfreeweb/weston-rs :)

I'm writing about it here because maybe it will be useful for 
gnome-shell and KWin?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6924bb93-c95d-e3a5-47d1-8078514d48e2>