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
Cross compilation fixes (march 2020) #81858
Cross compilation fixes (march 2020) #81858
Conversation
This is no longer needed. elfutils compiles out of the box!
This is needed for some scripts needed at build time.
libxslt is actually both a target and native build input because some libxslt binary is needed to generate files and the built binaries also link against libxslt.
glib is both a native and target dependency. Some binary from glib is used to generate files.
This avoids pulling them in when tests are disabled.
Cross needs some extra native tools: - glib - wayland - orc - glib is needed in nativeBuildInputs Also: - bash-completion needs to be available for PKG_CONFIG_PATH
these are all libraries.
Needed on the build machine
Needed on the build machine
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.
Looks good to me with the thing @volth found
Should this go to staging? |
This is needed for cross because gcrypt-config is not available to execute. It’s safe to do otherwise as well though.
Unfortunately, CMake looks in CMAKE_PREFIX_PATH for binaries when cross-compiling. This means that it will use gettext from CMAKE_PREFIX_PATH even when we provide a gettext binary in PATH! This is bad because the on in CMAKE_PREFIX_PATH is for the cross system, not the native one. The only documented way I can find to change this behavior is by manually setting the CMAKE_IGNORE_PATH variable.
This is needed for build tools.
Some build tools are needed for code gen.
Some build tools are needed from here
Needed for some build tools in glib
Needed for some build tool
This is only needed on the builder, no need to cross compile it.
- only set host when cross compiling - use top-level configureFlags and installFlags instead of putting it in the pre configure.
some of these only need to be on the build machine.
5e67432
to
1265615
Compare
Maybe although ideally i could split out the mass rebuild commits from the less significant commits. |
staging iterates quite fast and I don't think these expressions get touched that often. |
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.
breeze-plymouth
changes look good to me.
Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
makes it more clear why this happens Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
Motivation for this change
These changes are spun off from my branch at https://github.com/matthewbauer/nixpkgs/tree/kiosk. These should be safe changes for master (versus my other branch that has some more questionable cross fixes).
Mostly the changes are variants of:
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)