Closed dwf closed 2 years ago
It looks like buildroot has a simple for fix - we can provide the host ARCH explicitly:
https://git.busybox.net/buildroot/commit/?id=cfa74ee3218d4a39615870abb72a0b15bf21eba4
I will open a PR for this shortly.
I would suggest also filing an upstream issue in libselinux for this, as using uname to detect the host platform is clearly incorrect.
Describe the bug
Cross-compiling libselinux from i686 currently fails.
Steps To Reproduce
Steps to reproduce the behavior:
nix-build -A pkgsi686Linux.pkgsCross.raspberryPi.libselinux '<nixpkgs>'
Expected behavior
The derivation builds successfully.
Additional context
The build fails with
This boils down to a line in the Makefile using
uname -m
to detect the architecture, which gives the wrong answer for cross-compiles. This should be fixed upstream too, but could be fixed by patching the Makefile in the meantime.Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: