Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826906 - games-action/multimc(-bin): arm(64) support, requires new ebuild
Summary: games-action/multimc(-bin): arm(64) support, requires new ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Nowa Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 15:09 UTC by korte
Modified: 2022-05-03 08:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2021-11-23 15:09:21 UTC
From [1]
> Unofficial builds of 0.6.13 version does not include Microsoft account support.
> When building current 0.6.13 version from portage tree, adding microsoft account is currently not possible

Please provide a -bin version for arm64.
[1] https://bugs.gentoo.org/814404

Reproducible: Always
Comment 1 Emily Rowlands 2021-11-23 15:28:58 UTC
From what I can see on the releases page [1], there is no official arm64 release.

[1]: https://github.com/MultiMC/Launcher/releases
Comment 2 korte 2021-11-23 19:05:07 UTC
> From what I can see on the releases page [1], there is no official arm64 release.

Thanks. I hoped you would be able to produce a -bin in compliance with multimc.
Comment 3 Andrew Nowa Ammerlaan gentoo-dev 2021-11-25 20:44:40 UTC
> I hoped you would be able to produce a -bin in compliance with multimc.

I cannot, the -bin version can support Microsoft accounts because it includes a secret API key. The key is not included in the sources (it wouldn't be very secret if it was).

What we can do though is:
- Keyword the non-bin version for arm64 (if it compiles on that arch of course, are you able to test this?) (You can register for your own secret API key and patch it in to add MS account support to your own custom build)
- Ask the upstream author about an official arm(64) build: There seems to have been some discussion here [1], which seems to have concluded that support for arm(64) will be added if, and only if, Mojang starts supporting it. (Minecraft currently will not run on arm(64) without manually switching out lwjgl versions, regardless of what launcher you are using. Some (newer) versions of Minecraft won't work at all on non-amd64 arches.)

[1] https://github.com/MultiMC/Launcher/issues/2133

I'm not opposed to keywording this for arm(64), though I don't really see the point since you can then (maybe) run the launcher but you will still have to patch the game itself to have things actually work.

Please let me know if you can successfully compile multimc on arm64, and if you still think it is worth the effort to continue with the keyword request, given that MS accounts will only work if you register and patch in your own secret API key). 

Official builds I cannot help you with sadly, you'll have to bother upstream for those. If they are willing to create one, I'll be more then happy to add support for arm(64) to the -bin ebuild.
Comment 4 korte 2021-11-25 21:12:47 UTC
(In reply to Andrew Ammerlaan from comment #3)

> What we can do though is:
> - Keyword the non-bin version for arm64 (if it compiles on that arch of
> course, are you able to test this?) (You can register for your own secret
> API key and patch it in to add MS account support to your own custom build)

[ebuild   R   *] games-action/multimc-0.6.13::gentoo  0 KiB

It compiled on arm64 (Pi 400) and I see the start screen. Since I have no Mojang account I cannot test it any further.

> 
> Please let me know if you can successfully compile multimc on arm64, and if
> you still think it is worth the effort to continue with the keyword request,
> given that MS accounts will only work if you register and patch in your own
> secret API key). 

I don't need the keywording, thanks.
 
> Official builds I cannot help you with sadly, you'll have to bother upstream
> for those. If they are willing to create one, I'll be more then happy to add
> support for arm(64) to the -bin ebuild.

It seems to be easier to take a RaspberryPi OS with Pi Apps (store).
From [1]:

> NOTE: This build is NOT a fork, you are executing a buildscript to build from the develop branch of the official MultiMC5 github repo BUT it does use a custom meta repo for the arm64/armhf builds, which is necessary as microsoft and the multimc5 devs do not provide arm64/armhf native libraries

> MultiMC5 does not give support for custom builds, your custom build included (this buildscript does not distribute custom builds, you build it yourself by running it)

> All bugs unique to YOUR BUILD of the launcher can be submitted to https://github.com/Botspot/pi-apps/issues
> If you have found a bug and it is re-producible on official MultiMC5 builds, then you may submit the bug referring the official MultiMC5 build on the official MultiMC5 github issues page.

Would it be possible to distribute the build script on gentoo, maybe with fetch restriction or something like that to comply with the license(s)? I cannot build packages on gentoo, but I could beta test it, if it would be of use for others.


[1] https://forums.raspberrypi.com/viewtopic.php?f=78&t=321888
Comment 5 Andrew Nowa Ammerlaan gentoo-dev 2021-11-25 21:23:09 UTC
> Would it be possible to distribute the build script on gentoo, maybe with fetch restriction or something like that to comply with the license(s)? I cannot build packages on gentoo, but I could beta test it, if it would be of use for others.

Possibly, but wouldn't that just give you the same result as building the non-bin version in ::gentoo? Or does the Pi Apps version support MS accounts with their own secret API key? Does the Pi Apps version work on arm devices that are not RaspberryPi's?
Comment 6 korte 2021-11-25 22:44:43 UTC
(In reply to Andrew Ammerlaan from comment #5)
> > Would it be possible to distribute the build script on gentoo,
> 
> Possibly, but wouldn't that just give you the same result as building the
> non-bin version in ::gentoo?
> Or does the Pi Apps version support MS accounts

From [1]:
The topic is: "Excellent launcher for Minecraft JE (all versions, *MS-login* ) available through Pi-apps now"

> finally there is a mature, feature-rich and up-to-date launcher for Mine-
> craft Java-Edition that supports the recently enforced MS-login. 

The multimc "fork" is called meta-multimc: https://github.com/theofficialgman/meta-multimc


> with their own secret API key?

I don't know, maybe they use the one from multimc

> Does the Pi Apps version work on arm devices
> that are not RaspberryPi's?

I don't know, but i would not be surprised, if it works or works with few changes on other arm devices, since it is already ported from x86/amd64 to arm(64).

From the same thread [2]:
> To add this, these are the jvm arguments I use (which seem to provide a
> bit of a speed boost and stability for me on nintendo switch in linux):



[1] https://forums.raspberrypi.com/viewtopic.php?f=78&t=321888#p1926635
[2] https://forums.raspberrypi.com/viewtopic.php?f=78&t=321888#p1931975
Comment 7 Andrew Nowa Ammerlaan gentoo-dev 2021-11-26 17:05:36 UTC
(In reply to korte from comment #6) 
> The multimc "fork" is called meta-multimc:
> https://github.com/theofficialgman/meta-multimc

Cool! I'm not sure if/how we can package this in an ebuild though as I am not familiar with how things work on Raspberry Pi's at all. We would have to involve someone who is more familiar with it and has access to arm(64) devices.
Comment 8 Larry the Git Cow gentoo-dev 2022-01-08 10:32:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3c6ca0f365d25eab4f6c1026c35173d7443dd10

commit d3c6ca0f365d25eab4f6c1026c35173d7443dd10
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-01-08 10:29:12 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-01-08 10:32:31 +0000

    games-action/multimc: treeclean
    
    Closes: https://bugs.gentoo.org/826906
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 games-action/multimc/Manifest              |  3 --
 games-action/multimc/metadata.xml          | 28 ----------
 games-action/multimc/multimc-0.6.13.ebuild | 84 ------------------------------
 profiles/package.mask                      |  9 ----
 4 files changed, 124 deletions(-)
Comment 9 Andrew Nowa Ammerlaan gentoo-dev 2022-05-03 08:44:54 UTC
Recently we added an ebuild for PolyMC, a fork of MultiMC. Among other things it seems to contain some backports from ManyMC (macOS arm64 fork of MultiMC) and some other mentions of arm/arm64 in the code. So maybe you'll have more luck running the PolyMC ebuild on arm/arm64. If you feel like testing it, could you let me know if it works? Then we can see about keywording the PolyMC ebuild on arm/arm64. You might also want to try the live -9999 ebuild as the upstream development is moving rather rapidly at the moment.