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

texlive-bin: disable mfluajit on ppc64(le) #45475

Merged
merged 1 commit into from Aug 23, 2018
Merged

Conversation

CrystalGamma
Copy link
Contributor

@CrystalGamma CrystalGamma commented Aug 22, 2018

Motivation for this change

LuaJIT currently has no 64-bit Power support and so breaks the build on such platforms.
Part of my roadmap to bring NixOS to OpenPower platforms.

(If mfluajit should be disabled for all platforms instead of just ppc64(le) for consistency, I wouldn't mind either …)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

"dvisvgm" "dvipng" # ghostscript dependency
"luatex" "luajittex" "mp" "pmp" "upmp" "mf" # cairo would bring in X and more
"xetex" "bibtexu" "bibtex8" "bibtex-x" "upmendex" # ICU isn't small
]
] ++ (if stdenv.hostPlatform.isPower && stdenv.hostPlatform.is64bit then [ "mfluajit" ] else []))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of if .. then .. else it is better to use
stdenv.lib.optional (stdenv.hostPlatform.isPower && stdenv.hostPlatform.is64bit) "mfluajit",
which does the same thing.

LuaJIT currently has no 64-bit Power support and so breaks the build on such platforms.
@vcunat
Copy link
Member

vcunat commented Aug 24, 2018

I think I've seen this support for LuaJIT, either in official commits past the last release, or in some fork. In any case, I don't expect LuaJIT to be among your priorities right now...

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

4 participants