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
apparmor: make apparmor cross-compile #63999
Conversation
Has this been reported upstream? |
@FRidh unfortunately, no. I will try to, though. |
@FRidh cross referenced here: https://gitlab.com/apparmor/apparmor/issues/41 |
Please change the target branch to staging. |
@joachifm Okay When do we make pull request to |
@dingxiangfei2009 for changes that incur massive rebuilds, to avoid unduly delaying channels built from master. |
@GrahamcOfBorg build systemd apparmor-parser |
Thank you |
When cross compiling apparmor-parser, Makefile will use ar for creating the static library. However, ar produces libraries on the build platform. The right ar could be prefixed with the target platform triples. Signed-off-by: Xiang Fei Ding <dingxiangfei2009@gmail.com> Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Ref: NixOS/nixpkgs#63999 Bug: https://gitlab.com/apparmor/apparmor/issues/41
Motivation for this change
apparmor
assumes that the archiver always has no target platform prefix, which is not true when cross compiling. This PR fixes this, so thatapparmor-parser
in particular will cross compile.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)