Open TwinkleToes777 opened 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.
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.
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
For libdecoration, make sure you're building from the specific commit on the PKGBUILD file.
https://github.com/glfw/glfw/tree/87d5646f5d2bad0562744501633bf8105f59c193
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 :(
glfw-wayland is on Void Linux. It works easily by just installing it and using the native lib option.
Looking for a way to use this in Void Linux.