-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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.core{,-big}: fix cross compilation #223303
Conversation
843f6ec
to
4d47663
Compare
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.
LGTM other than the issues pointed out below.
The build system generates the file "hitables.c" with the program "./himktables" that is also compiled by the build system. This does not work when cross-compiling since this program is built for the wrong architecture. We already use a natively built copy of texlive.bin.core for various other tools (like tangle, weave), so this change just adds himktables to the this native copy and uses this program in the cross build.
4d47663
to
089675b
Compare
@ofborg build pkgsCross.aarch64-multiplatform.texlive.bin |
@ofborg build texlive |
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.
It's been a long long time since I used TeX. However:
I verified with nix-diff
that the only change to the native-compile drv
is adding a new output (dev
) and two lines of postInstall
that populate that new output.
So the risk of breakage here is very small.
If ofborg succeeds with the two builds I asked it to do, I intend to merge this.
(The cross builds of texlive.bin.latexindent, texlive,bin.xdvi and texlive.bin.biber still fail. This PR only fixes core and core-big. Updating the title to reflect that. I'll look into the others tomorrow.) |
Description of changes
This (hopefully) fixes cross compilation of texlive.bin.core and texlive.bin.core-big.
I tested execution of some binaries on aarch64-linux built on x86_64-linux.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)