Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not abort when interfaces are older than expected #193

Merged
merged 1 commit into from Aug 20, 2023

Conversation

nt8r
Copy link
Contributor

@nt8r nt8r commented Aug 14, 2023

Instead, print a warning and let consumers abort if the missing interface is a fatal problem.

This happens with phosh 0.30, for example, which exposes gtk_shell1 version 3. As of this patch, wl-clipboard works again but now prints warning: interface gtk_shell1 wanted version 4 but got version 3 to standard error in this situation.

@bugaevc
Copy link
Owner

bugaevc commented Aug 14, 2023

Thanks!

Not aborting definitely sounds like a good idea 🙂, but I don't think we should print a warning either, since it's not fatal and not something that the user can be expected to do anything about. If the version is too old, we should just treat the global as of it wasn't present.

Instead, let consumers abort if the missing interface is a fatal problem.
@nt8r
Copy link
Contributor Author

nt8r commented Aug 16, 2023

I've removed the printing of a warning.

@agx
Copy link

agx commented Aug 19, 2023

I failed to check MRs when hitting the same issue 😢

As it might be useful to have some required min versions I added a BIND_OPTIONAL macro in : #195 just in case this is handy otherwise just close #195

@bugaevc bugaevc merged commit fcde402 into bugaevc:master Aug 20, 2023
@bugaevc
Copy link
Owner

bugaevc commented Aug 20, 2023

Thanks, merged (with a follow-up fix 8dbdefb). Please let me know whether things still work on your end 🙂

algitbot pushed a commit to alpinelinux/aports that referenced this pull request Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants