treewide: freebsd13 -> freebsd#308032
Conversation
|
Some references in favor of dropping the version number https://wiki.freebsd.org/BinaryCompatibility tl;dr FreeBSD provides syscall abi backwards compatibility. We can convert that to forwards compatibility by running our buildbots on the oldest supported (wrt nixpkgs) version of FreeBSD. This can be further converted to forwards compatibility for everyone once the jail code is merged, nix can simply be configured to build in a jail claiming to be the lowest supported version. |
Thanks for pointing it out! When NixBSD chose to use freebsd (instead of netbsd), and removed the version number from the code (similar to this PR), I once doubted the correctness of what they did. |
|
The decision to use FreeBSD and to remove the version number were very practical. Removing the version number removes a lot of manual work adding new platforms, and it's not even that useful: if you're worried about forward compatibility than a binary built for 13.2-RELEASE isn't guaranteed to run on 13.0-RELEASE. NetBSD can't easily support sandboxed builders, so if we wanted pure native builds we'd have to figure out how to do something weird (maybe boot a vm for each derivation off virtio-9p of that's possible?). FreeBSD makes this relatively easy with jails. |
|
So the ABI can grow but not changing in a breaking away from 13.0 -> 13.2 and also from 13.03 -> 14? Are the ABI guarantees more or less the same regardless of whether it a difference in the major or minor number? |
Co-authored-by: Alyssa Ross <hi@alyssa.is>
036270d to
266cdd7
Compare
|
@alyssais that's an approval, with the indentation fixed? |
- Nixpkgs stopped using versioned FreeBSD OS parts: NixOS/nixpkgs@266cdd7d3795263 NixOS/nixpkgs#308032 - mipsi*r* tuples were removed: NixOS/nixpkgs@94d9a6ce177b3a6 - mips-none and mips64-none were added.
Description of changes
@rhelmot and @artemist think this is correct. @alyssais was once quite convinced it was not correct. I have no idea, but we should decide soon so we can all be happy for 24.05.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.