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

Try to load libX11.so.6 in addition to libX11.so. #5307

Merged

Conversation

vorporeal
Copy link
Contributor

@vorporeal vorporeal commented Feb 26, 2024

Connections

Fixes #2518.

Description

Not all Linux distributions (e.g: Debian and openSUSE) include a libX11.so symlink in the standard libX11 package. Debian only includes libX11.so.6 - libX11.so is provided by the libx11-dev package, which is not a dependency application maintainers should need users to install. (openSUSE provides the libX11.so symlink in libX11-devel.)

Note that the ordering here (libX11.so.6 before libX11.so) matches the order in which the Wayland client library is attempted by wgpu (libwayland-client.so.0 before libwayland-client.so).

Testing

Unfortunately, I'm having trouble reproducing the issue myself. That said, this is a very straightforward change, and seems to be acknowledged to be desirable.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@vorporeal vorporeal marked this pull request as ready for review February 26, 2024 22:38
@vorporeal vorporeal requested a review from a team as a code owner February 26, 2024 22:38
@vorporeal
Copy link
Contributor Author

In terms of a changelog entry - what would be the appropriate section for this? Bug Fixes > General?

@cwfitzgerald
Copy link
Member

Yeah, that's fine. If it's wrong we do a changelog pass before release anyway.

@cwfitzgerald cwfitzgerald merged commit 23392c5 into gfx-rs:trunk Feb 27, 2024
27 checks passed
@vorporeal vorporeal deleted the vorporeal/check-additional-libx11-name branch February 27, 2024 20:34
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Feb 29, 2024
cwfitzgerald pushed a commit to cwfitzgerald/wgpu that referenced this pull request Feb 29, 2024
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Mar 1, 2024
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.

Failure to find hardware adapter
2 participants