about summary refs log tree commit diff
path: root/pkgs/build-support/vm
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-10-26 20:47:16 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-10-26 20:56:42 +0100
commit82d88b5bcb68d7c039aa689210512cf08aedb22c (patch)
treef04b59ee300f9479148c8c8f158bc227eedd85de /pkgs/build-support/vm
parent3b85cf704cd49dcaa1d9ae6b1fdf429172934b38 (diff)
downloadnixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.tar
nixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.tar.gz
nixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.tar.bz2
nixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.tar.lz
nixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.tar.xz
nixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.tar.zst
nixlib-82d88b5bcb68d7c039aa689210512cf08aedb22c.zip
vmTools.commonDebPackages: Add "mawk".
While debugging an issue with running NixOps tests, I found out that the
output from debClosureGenerator is not deterministic.

The reason behind this is the way how Provides and Replaces fields are
handled. I haven't yet found out what's the exact issue, but so far
packages "Provides" are more or less picked at random.

So, running the NixOps Hetzner tests we get either mawk, original-awk or
gawk altering on every invocation.

While for the test it isn't poisionous whether wi have mawk or gawk,
having original-awk certainly is, because live-build only works with
mawk or gawk.

The best solution would obviously be to make debClosureGenerator
deterministic, but in the case of "Provides: awk", we can safely pick
mawk by default, because the latter has a "Priority: required" in its
package description.

This also has the advantage that we can safely cherry-pick this to
release-15.09 because it's very unlikely that we'll break the
debClosureGenerator by adding a dependency to commonDebPackages.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/build-support/vm')
-rw-r--r--pkgs/build-support/vm/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix
index 5ebb6db8bfe1..1e3cef3e10c3 100644
--- a/pkgs/build-support/vm/default.nix
+++ b/pkgs/build-support/vm/default.nix
@@ -1837,6 +1837,7 @@ rec {
     "bzip2"
     "tar"
     "grep"
+    "mawk"
     "sed"
     "findutils"
     "g++"