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
netbsd.sys: fix build #119793
netbsd.sys: fix build #119793
Conversation
Permanently changing the directory here was breaking the kernel build, which needs to do other things after moveUsrDir.
Required to build the NetBSD kernel.
Otherwise, would try to install firmware to /libdata/firmware.
Native compilation on x86_64-linux fails:
|
I think that's fine. This package should probably be NetBSD-only, but the meta.platforms line is commented out for some reason. I'd like to leave it that way for now until I have a better handle on why that might have been. Sound okay to you? |
Sure, don't see why we necessarily need the NetBSD kernel on Linux… FWIW,
No real comments from my side. |
I don't think there's any reason for this not to be set. Maybe it was from before netbsd.headers overrode meta.platforms for its constituents.
Yeah, I've changed my mind and added the |
Motivation for this change
Tested with
I haven't tested what happens if I try to build it on Linux without going through pkgsCross.
Note that despite the comment above the package definition, this is not the full NetBSD kernel, only the headers, firmware and bootloader. I would like it to also build the kernel, but haven't managed to get that working yet (but I'm probably close).
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)