1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-19 17:39:34 +00:00
nixpkgs/pkgs/applications
aszlig 6cfb3b6364
nixos/tests: Use a patched QEMU for testing
The reason to patch QEMU is that with latest Nix, tests like "printing"
or "misc" fail because they expect the store paths to be owned by uid 0
and gid 0.

Starting with NixOS/nix@5e51ffb1c2, Nix
builds inside of a new user namespace. Unfortunately this also means
that bind-mounted store paths that are part of the derivation's inputs
are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534.

This in turn causes things like sudo or cups to fail with errors about
insecure file permissions.

So in order to avoid that, let's make sure the VM always gets files
owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store
path.

In addition, this adds a virtualisation.qemu.program option so that we
can make sure that we only use the patched version if we're *really*
running NixOS VM tests (that is, whenever we have imported
test-instrumentation.nix).

Tested against the "misc" and "printing" tests.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-17 17:16:16 +01:00
..
altcoins bitcoin: 0.13.0 -> 0.13.1 2016-11-03 21:03:52 +01:00
audio ssr: init at 2016-11-03 2016-11-14 13:07:05 +01:00
backup add self to crashplan maintainers 2016-11-13 14:41:57 -05:00
display-managers lightdm: 1.19.4 -> 1.19.5 2016-10-14 21:28:18 -04:00
editors eclipse-plugin-testng: 6.9.12 -> 6.9.13 2016-11-17 00:06:41 +01:00
gis Python: more evaluation fixups. 2016-10-14 00:03:12 +02:00
graphics shutter: add patch for CVE-2015-0854 with remote code 2016-11-16 22:06:06 -05:00
inferno
misc Merge pull request #20311 from mguentner/subsurface 2016-11-15 04:56:35 +01:00
networking opera: 40.0.2308.90 -> 41.0.2353.56 2016-11-16 12:14:27 -05:00
office homebank: 5.1 -> 5.1.1 2016-11-11 16:34:11 +01:00
science Merge #20264: root: fix environment setup 2016-11-14 22:27:09 +01:00
search Remove pycairo from top-level 2016-08-14 13:52:42 +02:00
taxes
version-management git: 2.10.1 -> 2.10.2 2016-11-15 18:05:02 -05:00
video motion: init at 4.0.1 2016-11-08 10:55:13 +11:00
virtualization nixos/tests: Use a patched QEMU for testing 2016-11-17 17:16:16 +01:00
window-managers i3-gaps: 4.12 -> 4.13 2016-11-11 14:03:33 +01:00