Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

meson: fix wayland-server minimum required version #1675

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

emersion
Copy link
Member

Having 1.16 results in the following error when running the compositor:

2019-04-27 17:30:50 - [wayland] wl_global_create: implemented version for 'wl_seat' higher than interface version (7 > 6)
2019-04-27 17:30:50 - [sway/input/seat.c:428] seat_create:could not allocate seat

We require wayland-server >= 1.17 for wl_seat version 7.

Fixes: a671fc5

cc @ascent12

@ddevault
Copy link
Contributor

Sent a patch to Alpine for 1.17

@emersion
Copy link
Member Author

Hmm. This one is nasty because it'll cause a runtime error if you compile with 1.16 - not a compile-time error. Maybe we should revert @ascent12's patch until we get updated packages.

@ddevault
Copy link
Contributor

Can we detect at runtime which version is in use and adjust our wl_seat version accordingly?

@emersion
Copy link
Member Author

In this particular case we can. This should stay temporary though, we're just lucky that new ABI hasn't been introduced.

@jbeich
Copy link
Contributor

jbeich commented Apr 29, 2019

I've filed FreeBSD bug for 1.17.

@emersion emersion force-pushed the fix-wayland-version-check branch 2 times, most recently from e036664 to e05bf34 Compare June 18, 2019 20:21
@emersion
Copy link
Member Author

I'm starting to wonder whether we should hold off landing patches because one of our CI distributions have an outdated dependency. This isn't that of a big deal for this PR, but maybe we should consider building wayland or wayland-protocols from source for other PRs.

@ddevault
Copy link
Contributor

-1, I think we should be dilligent about pushing distros to keep their things up to date.

@emersion
Copy link
Member Author

Then let's block the DRM lease PR until released in wayland-protocols in all distros?

@ddevault
Copy link
Contributor

Not really opposed to (1) blocking until the next wayland-protocols release which includes it and (2) the landing of that release in each distro we CI against. We need to usher that protocol into stability anyway to land it in Vulkan.

Having 1.16 results in the following error when running the compositor:

    2019-04-27 17:30:50 - [wayland] wl_global_create: implemented version for 'wl_seat' higher than interface version (7 > 6)
    2019-04-27 17:30:50 - [sway/input/seat.c:428] seat_create:could not allocate seat

We require wayland-server >= 1.17 for wl_seat version 7.

Fixes: a671fc5 ("Advertise wl_seat version 7")
Fixes: a656e48 ("seat: fallback to v6 if libwayland 1.17 isn't available")
@emersion
Copy link
Member Author

emersion commented Feb 4, 2020

FreeBSD now has Wayland 1.17, so this PR is ready for review.

@ascent12 ascent12 merged commit 4b051aa into swaywm:master Feb 4, 2020
@emersion emersion deleted the fix-wayland-version-check branch February 4, 2020 22:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants