Admicos / minecraft-wayland

A better way of running Minecraft Without XWayland. Because I REALLY had nothing better to do with my life.
263 stars 14 forks source link

Void Linux support #21

Open TwinkleToes777 opened 2 years ago

TwinkleToes777 commented 2 years ago

Looking for a way to use this in Void Linux.

Admicos commented 2 years ago

I don't use Void, so I can't give you any specific guidance on it, but from a quick glance, it doesn't seem that hard to fork their glfw package and apply the patches to it via it's package manager.

TwinkleToes777 commented 2 years ago

Thank you, when I have time I will try it out and write here how to do it, so you can add it to README.md.

TwinkleToes777 commented 2 years ago

The regular 3 patches worked, but the game window looked buggy, so I deleted the patches and added libdecoration patches instead (I am using GNOME), now patching fails with error:

=> glfw-wayland-3.3.7_1: running do-patch hook: 00-patches ...
=> glfw-wayland-3.3.7_1: patching: 0001-Wayland-Set-O_NONBLOCK-on-repeat-timerfd.patch.
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/wl_init.c.rej
=> ERROR: glfw-wayland-3.3.7_1: do-patch_00-patches: 'patch -s ${_args} < ${_patch} 2> /dev/null' exited with 1
=> ERROR:   in _process_patch() at common/hooks/do-patch/00-patches.sh:34
=> ERROR:   in hook() at common/hooks/do-patch/00-patches.sh:51
=> ERROR:   in run_func() at common/xbps-src/shutils/common.sh:21
=> ERROR:   in run_pkg_hooks() at common/xbps-src/shutils/common.sh:262
=> ERROR:   in run_step() at common/xbps-src/shutils/common.sh:71
=> ERROR:   in main() at common/xbps-src/libexec/xbps-src-dopatch.sh:33
Admicos commented 2 years ago

For libdecoration, make sure you're building from the specific commit on the PKGBUILD file.

https://github.com/glfw/glfw/tree/87d5646f5d2bad0562744501633bf8105f59c193

TwinkleToes777 commented 2 years ago

I could not find a way to build from specific commit, but I could build from specific version, I tried 3.3.4, but that resulted into the same issues :(

Alleop5 commented 1 year ago

glfw-wayland is on Void Linux. It works easily by just installing it and using the native lib option.