nixpkgs/pkgs
Boey Maun Suang 6f7d967e28 gnat11: Fix by building with older gnatboot
GCC's installation instructions strongly recommend using an older
version of GNAT to build GNAT, as "[m]ore recent versions of GNAT than
the version built are not guaranteed to work and will often fail during
the build with compilation errors." [1]

The recent upgrade of gnatboot to a 12.1 release in commit bc640dc
unfortunately resulted in such a failure for gnat11 [2], resulting in
the same errors as GCC bug 103357 [3], which was marked WONTFIX for the
reason above.

This patch therefore reverts gnat11 to being built with an earlier 11.x
gnatboot version, while keeping the updated 12.1 gnatboot to build
gnat12 (which is fine because the latter is currently version 12.2).
Fixing gnat11 is also a step towards re-enabling the
coreboot-toolchain-* packages to be built with Ada support.

To facilitate such explicit version dependencies while retaining the
meaning of the existing gnatboot package, and in the fashion of the
existing gcc packages, this patch also creates the packages gnatboot11
and gnatboot12 with gnatboot made an alias of gnatboot12.

[1]: https://gcc.gnu.org/install/prerequisites.html
[2]: https://github.com/NixOS/nixpkgs/pull/182414#issuecomment-1204432909
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103357
2022-11-25 08:15:10 +01:00
..
applications sapling: add a simple checkPhase 2022-11-25 00:33:19 -06:00
build-support
common-updater
data
desktops
development gnat11: Fix by building with older gnatboot 2022-11-25 08:15:10 +01:00
games Merge pull request #202414 from jojosch/factorio-update 2022-11-24 14:23:14 +01:00
misc Merge pull request #198552 from wegank/wxgtk-games 2022-11-24 14:21:25 +01:00
os-specific Merge pull request #200664 from cawilliamson/update-vmware-add-macos 2022-11-24 20:55:09 +00:00
pkgs-lib
servers Merge pull request #202194 from kevincox/mautrix-platforms 2022-11-24 15:16:04 -05:00
shells
stdenv
test
tools linkchecker: 10.0.1 -> 10.2.0 2022-11-25 12:36:30 +08:00
top-level gnat11: Fix by building with older gnatboot 2022-11-25 08:15:10 +01:00