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

texinfo: fix cross #34180

Merged
merged 1 commit into from Jan 23, 2018
Merged

texinfo: fix cross #34180

merged 1 commit into from Jan 23, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jan 22, 2018

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

Have not re-tested on top of latest staging,
but works well on my local patch queue.

Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

I think all my comments apply to both

stdenv.lib.optional stdenv.isSunOS "AWK=${gawk}/bin/awk"
++ optionals crossCompiling [
"PERL=${buildPackages.perl}/bin/perl"
"BUILD_CC=${buildPackages.stdenv.cc.targetPrefix}gcc"
Copy link
Member

Choose a reason for hiding this comment

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

Should be not needed anymore?

@@ -19,6 +26,13 @@ stdenv.mkDerivation rec {
installTargets="install install-tex";
'';

configureFlags =
stdenv.lib.optional stdenv.isSunOS "AWK=${gawk}/bin/awk"
++ optionals crossCompiling [
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't be conditional

# We need a native compiler to build perl XS extensions
# when cross-compiling.
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
Copy link
Member

Choose a reason for hiding this comment

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

Do we need native perl too then?


with stdenv.lib;

stdenv.mkDerivation rec {
let
crossCompiling = stdenv.buildPlatform != stdenv.hostPlatform;
Copy link
Member

Choose a reason for hiding this comment

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

I think this is not needed if the stuff below is unconditional?

@dtzWill dtzWill force-pushed the fix/texinfo-cross branch 2 times, most recently from 15a6bff to 3182c47 Compare January 23, 2018 00:17
@Ericson2314 Ericson2314 added the 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on label Jan 23, 2018
@Ericson2314 Ericson2314 merged commit e1b8eb7 into NixOS:staging Jan 23, 2018
@dtzWill dtzWill deleted the fix/texinfo-cross branch January 23, 2018 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Cross compilation
@bgamari's and @dtzWill's num...
Development

Successfully merging this pull request may close these issues.

None yet

3 participants