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
lua: merge lua5.X interpreters #59919
Conversation
23e4e2b
to
9f890e9
Compare
the expansion of makeFlagsArray is awkward. Seems to work locally :/ |
similar to what was done for python. Makes it easier to change the passthru settings and the lua infrastructure.
@7c6f434c what do you think ? it's not more elegant than the previous implementation but it makes it easier to keep lua interpreters in sync (especially the passthru part with all the buildEnv logic). |
"INSTALL_TOP=${placeholder "out"}" | ||
"INSTALL_MAN=${placeholder "out"}/share/man/man1" | ||
"R=${version}" | ||
''LDFLAGS="-fPIC"'' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add comment why these quotes are needed (and why CFLAGS cannot be handled like that)?
Seems fine to me. |
@@ -29,44 +25,36 @@ in rec { | |||
sed -e 's/ALL_T *= */& $(LUA_SO)/' -i src/Makefile | |||
''; | |||
|
|||
# a grep a | |||
postBuild = stdenv.lib.optionalString (!stdenv.isDarwin) '' | |||
set -x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to keep verbosity here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolutely none sorry :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mwahaha that's what happens when you remove FIXME without looking around why it was there! (Not that it matters)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I usually leave a TODO but the a grep a
looked like a mispaste. It also happens when I work on a PR over longer than expected.
I believe it's ready to squash & merge. Not sure if it should go to staging or master though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arf it wasn't. Damn shell expansion rules ! reverted my cosmetic-induced bug.
@GrahamcOfBorg build lua5_2 lua5_2_compat lua5_3 lua5_3_compat lua5_1 luaPackages.lpeg |
@GrahamcOfBorg build lua5_2 lua5_2_compat lua5_3 lua5_3_compat lua5_1 luaPackages.lpeg |
Wait, so quoting works for CC? Would it also work for CFLAGS then? |
In current nixpkgs, lua5.1 has an extra |
I would guess that in old days Darwin was even lower tier of support, so somebody wanted to remove the platforms restriction without needing to consider Hydra impact. Feel free to git blame to find out, of course. |
@GrahamcOfBorg build lua5_2 lua5_2_compat lua5_3 lua5_3_compat lua5_1 luaPackages.lpeg |
@GrahamcOfBorg build lua5_2 lua5_2_compat lua5_3 lua5_3_compat lua5_1 luaPackages.lpeg |
This seems to have broken the ultrastardx build, at least according to a git bisect:
(nix log /nix/store/kp3i70044s81b746c733201wsjl4x8s8-ultrastardx-2017.8.0.drv) bad commit: 672c3c1 |
I can reproduce, I'll look into it. |
I think the flags are wrong, looking at lua5.2 pkgconfig, it advises to link with -llua, not -llua5.2: |
Shouldn't they use |
I've opened an issue here UltraStar-Deluxe/USDX#462 |
@teto I'm not sure I understand how this PR could have broken it, and why it did work before. |
similar to what was done for python.
Makes it easier to change the passthru settings and the lua infrastructure.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)