nixpkgs-suyu/pkgs/applications/virtualization/qemu
Will Dietz 3d4aa7e95d qemu: workaround 'struct sysinfo' conflict musl <--> linux
Most everyone using musl patches the linux headers instead,
but various software uses a local workaround like the
one added in this commit (psutils, for example).

It's not obvious to me which project has the "bug",
and I'm reluctant to even propose modifying our headers
without clear answer on the issue.

Also, modifying those headers triggers rebuild-all-the-things.

Hopefully upstream projects sort this out, in the meantime
adding this define is a bit of a kludge but does the job.

-------

For the curious, the patch usually is something like this:
https://patchwork.kernel.org/patch/3833241/

Here's an updated version that also ensures
kernel users get the sysinfo struct as expected too:
https://raw.githubusercontent.com/openwrt/openwrt/e3c43ade0bae9491aeea50fa361e846bb5002dc0/target/linux/generic/pending-4.14/270-uapi-kernel.h-glibc-specific-inclusion-of-sysinfo.h.patch

(cherry picked from commit dtzWill/nixpkgs@91b5f5a463)
2018-04-26 17:58:16 +02:00
..
default.nix qemu: workaround 'struct sysinfo' conflict musl <--> linux 2018-04-26 17:58:16 +02:00
fix-hda-recording.patch qemu: fix HDA recording latency 2017-08-16 09:48:49 +02:00
force-uid0-on-9p.patch qemu_test: Rebase force-uid0-on-9p.patch 2017-03-11 15:16:49 +01:00
no-etc-install.patch qemu: 2.8.1 -> 2.9.0 2017-04-23 14:20:48 +02:00
riscv.nix Merge master into staging 2018-04-08 10:54:17 +02:00