nixpkgs/nixos/doc/manual/from_md/release-notes
Adam Joseph c0085404bd lib/systems/inspect.nix: remove isPowerPC
Very confusingly, the `isPowerPC` predicate in
`lib/systems/inspect.nix` does *not* match `powerpc64le`!

This is because `isPowerPC` is defined as

  isPowerPC      = { cpu = cpuTypes.powerpc; };

Where `cpuTypes.powerpc` is:

  { bits = 32; significantByte = bigEndian; family = "power"; };

This means that the `isPowerPC` predicate actually only matches the
subset of machines marketed under this name which happen to be 32-bit
and running in big-endian mode which is equivalent to:

  with stdenv.hostPlatform; isPower && isBigEndian && is32bit

This seems like a sharp edge that people could easily cut themselves
on.  In fact, that has already happened: in
`linux/kernel/common-config.nix` there is a test which will always
fail:

  (stdenv.hostPlatform.isPowerPC && stdenv.hostPlatform.is64bit)

A more subtle case of the strict isPowerPC being used instead of the
moreg general isPower accidentally are the GHC expressions:

  Update pkgs/development/compilers/ghc/8.10.7.nix
  Update pkgs/development/compilers/ghc/8.8.4.nix
  Update pkgs/development/compilers/ghc/9.2.2.nix
  Update pkgs/development/compilers/ghc/9.0.2.nix
  Update pkgs/development/compilers/ghc/head.nix

Since the remaining legitimate use sites of isPowerPC are so few, remove
the isPowerPC predicate completely. The alternative expression above is
noted in the release notes as an alternative.

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2022-05-25 09:45:42 +02:00
..
rl-1310.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1404.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1412.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1509.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1603.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1609.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1703.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1709.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1803.section.xml doc: mention the new format expected by the new vim updater 2022-04-03 18:14:14 +02:00
rl-1809.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1903.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-1909.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-2003.section.xml docs: nixos release notes (w/o 2105 - separate PR) 2021-06-22 09:52:13 -05:00
rl-2009.section.xml nixos/doc: fix merged items in 20.09 rel notes 2021-09-11 08:16:31 +00:00
rl-2105.section.xml nixos: fix release notes about linux_latest version 2021-08-16 19:32:04 +02:00
rl-2111.section.xml treewide: nixosTest -> testers.nixosTest 2022-05-09 14:16:06 +02:00
rl-2205.section.xml kops: 1.23.1 -> 1.23.2 (#174165) 2022-05-24 13:57:45 +02:00
rl-2211.section.xml lib/systems/inspect.nix: remove isPowerPC 2022-05-25 09:45:42 +02:00