3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/lib
Adam Joseph de88969f12 lib/systems: fix uname.processor for powerpc{32,64}, mips64
Cross-compilation of anything downstream of gtk3 requires qemu (due to
gobject-introspection) with --target-list=*-linux-user.  Without this commit,
those qemu builds will fail on a powerpc64le host due to qemu being configured
with --cpu=powerpc64le instead of --cpu=ppc64le.  Unfortunately the build
failure message from qemu in this situation is extremely cryptic.

The root cause turns out not to be the qemu expression, but rather the fact that
on powerpc64le hostPlatform.uname.processor returns the gnu-name (powerpc64le)
for the cpu instead of the linux-name (ppc64le) for the cpu.

uname.processor on mips64el also needs adjustment -- the Linux-name is "mips64"
for both big and little endian (unlike powerpc64, where the Linux-name includes
a "le" suffix):

```
nix@oak:/tmp$ uname -m; lscpu | head -n2
mips64
Architecture:        mips64
Byte Order:          Little Endian
```

uname.processor on powerpc32 has also been adjusted.
2023-01-01 16:20:50 -08:00
..
systems lib/systems: fix uname.processor for powerpc{32,64}, mips64 2023-01-01 16:20:50 -08:00
tests lib/versions: add pad 2022-12-21 12:58:21 +01:00
ascii-table.nix
asserts.nix doc: auto-generate asserts and attrset library docs 2022-12-08 22:58:22 +01:00
attrsets.nix attrsets: fix and add some doc types 2022-12-24 14:08:11 +01:00
cli.nix
customisation.nix lib/customisation.overrideDerivation: propagate evaluation condition 2023-01-01 14:10:42 +01:00
debug.nix
default.nix lib: Add isStringLike 2022-12-31 01:47:28 +01:00
deprecated.nix
derivations.nix lib: fix typos 2022-12-17 18:59:29 -05:00
fetchers.nix
filesystem.nix
fixed-points.nix
flake.nix
generators.nix stdenv/check-meta: do deep type checks 2023-01-01 14:10:42 +01:00
kernel.nix
licenses.nix linuxdoc-tools: init at 0.9.82 2022-12-28 00:17:27 +01:00
lists.nix
meta.nix
minver.nix
modules.nix lib: fix typos 2022-12-17 18:59:29 -05:00
options.nix attrsets: fix and add some doc types 2022-12-24 14:08:11 +01:00
source-types.nix
sources.nix
strings-with-deps.nix
strings.nix lib.isStringLike: Remove use of list 2022-12-31 01:33:47 +01:00
trivial.nix lib/trival: Bump oldestSupportedRelease to 2211 2023-01-01 14:57:25 +01:00
types.nix lib.strings: isSimpleCoercibleString -> isStringLike 2022-12-31 01:33:46 +01:00
versions.nix lib/versions: add pad 2022-12-21 12:58:21 +01:00
zip-int-bits.nix