You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I'm doing this on Gentoo right now, I figured I'd pass by a tutorial.
Portage offers a clean way to include patches into ebuilds (which is essentially the same as PKGBUILDs in Arch). We want to copy these into /etc/portage/patches/${category}/${package}. Make sure portage has read access to these files, at the very least.
We are lucky the ebuild for glfw injects patches without having to do anything else. This is a convention most packages follow.
Before you begin, make sure the USE flag for glfw includes wayland-only, as otherwise you'd be running XWayland. Yikes. Do this in your preferred manner, I suggest adding media-libs/glfw wayland-only to /etc/portage/package.use/minecraft.use.
The next step is trivial: copy the files from this repository into the directory you created, and rebuild.
Note: Minecraft 1.17 and above require Java 16, which requires an overlay in Gentoo, since officially Gentoo is still stuck at Java8 for some weird reason.
I added 2xsaiko with layman -a 2xsaiko and installed it with emerge openjdk:16
The text was updated successfully, but these errors were encountered:
A month and so has passed since I made that comment. Gentoo's official repositories have since (finally!) updated to Java 17 on the premise that it's LTS :)
No need to use overlays anymore!
While I'm doing this on Gentoo right now, I figured I'd pass by a tutorial.
Portage offers a clean way to include patches into ebuilds (which is essentially the same as PKGBUILDs in Arch). We want to copy these into
/etc/portage/patches/${category}/${package}
. Make sure portage has read access to these files, at the very least.We are lucky the ebuild for glfw injects patches without having to do anything else. This is a convention most packages follow.
Before you begin, make sure the USE flag for glfw includes
wayland-only
, as otherwise you'd be running XWayland. Yikes. Do this in your preferred manner, I suggest addingmedia-libs/glfw wayland-only
to/etc/portage/package.use/minecraft.use
.The next step is trivial: copy the files from this repository into the directory you created, and rebuild.
Done :)
Note: Minecraft 1.17 and above require Java 16, which requires an overlay in Gentoo, since officially Gentoo is still stuck at Java8 for some weird reason.
I added
2xsaiko
withlayman -a 2xsaiko
and installed it withemerge openjdk:16
The text was updated successfully, but these errors were encountered: