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

Fix: correct search for Lua interpreter for qmake builds #6616

Conversation

SlySven
Copy link
Member

@SlySven SlySven commented Mar 8, 2023

Discord user #Caith#8202 discovered that building Mudlet on aarch64 i.e. the Arm64 platform on Fedora fails (see the Mudlet #help channel on Discord starting 2023/03/06 03:55 UTC with the text):

lua-yajl is the bane of my existence. edited the hell out of the cmake
scripts and mudlet.pro to finally get it to start using lua 5.1 instead of 5.4, then had to rig up some hunspell junk, but no matter what i do, qmake won't cooperate with the lua-yajl install.

compiles fine on ubuntu and arch, so i'm bewildered.

One detail that came to light is that on that system the 5.1 version of the Lua interpreter is called lua-5.1 but that is not one of the names that ./translations/translated/updateqm.pri tries so it fails to generate/update the binary translations for inclusion in the project.

This PR should extend the tries to a fourth one that will handle that form, it also restructures the code slightly as it looked to me as the Windows OS handling was off.

The corresponding CMake build file has also been updated to handle the same four variants - prior to that it only tried two which might not have worked in all cases.

Signed-off by: Stephen Lyons slysven@virginmedia.com

Discord user **#Caith#8202** discovered that building Mudlet on aarch64 i.e.
the Arm64 platform on Fedora fails (see the Mudlet **#help** channel on
Discord starting 2023/03/06 03:55 UTC with the text):
> lua-yajl is the bane of my existence.  edited the hell out of the cmake
scripts and mudlet.pro to finally get it to start using lua 5.1 instead of
5.4, then had to rig up some hunspell junk, but no matter what i do, qmake
won't cooperate with the lua-yajl install.
>
> compiles fine on ubuntu and arch, so i'm bewildered.

One detail that came to light is that on that system the 5.1 version of the
Lua interpreter is called `lua-5.1` but that is not one of the names that
`./translations/translated/updateqm.pri` tries so it fails to
generate/update the binary translations for inclusion in the project.

This PR should extend the tries to a fourth one that will handle that form,
it also restructures the code slightly as it looked to me as the Windows
OS handling was off.

The corresponding CMake build file has also been updated to handle the same
four variants - prior to that it only tried two which might not have worked
in all cases.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven added this to the 4.18.0 milestone Mar 8, 2023
@SlySven SlySven requested a review from a team as a code owner March 8, 2023 20:55
@add-deployment-links
Copy link

add-deployment-links bot commented Mar 8, 2023

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@SlySven SlySven merged commit fef3285 into Mudlet:development Mar 11, 2023
@SlySven SlySven deleted the Fix_correctSearchForLuaInterpreterForQMakeBuilds branch March 11, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants