about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/spice-vdagent
diff options
context:
space:
mode:
authorBruce Toll <4109762+tollb@users.noreply.github.com>2021-05-17 17:50:38 -0400
committerBruce Toll <4109762+tollb@users.noreply.github.com>2021-05-18 11:43:32 -0400
commite0e6ce7385dc78d6833e2c554b09047b0218f90a (patch)
tree0bbd0ce188f63f8ff9eb8360ccbfb1c918354bcb /pkgs/applications/virtualization/spice-vdagent
parent951fe852bc6150d007c40bf7fd2587a135a47b95 (diff)
spice-vdagent: fix build error with glib > 2.68
The recent upgrade to glib 2.68.1 caused some deprecation errors in
spice-vdagent related to g_memdup, which is now deprecated in favor of
g_memdup2.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1943059

The simplest workaround (until this gets fixed upstream) is to allow
deprecated declarations to be treated as warnings rather than fatal
errors.
Diffstat (limited to 'pkgs/applications/virtualization/spice-vdagent')
-rw-r--r--pkgs/applications/virtualization/spice-vdagent/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/spice-vdagent/default.nix b/pkgs/applications/virtualization/spice-vdagent/default.nix
index 67ac8119fd542..2abb16298d4e2 100644
--- a/pkgs/applications/virtualization/spice-vdagent/default.nix
+++ b/pkgs/applications/virtualization/spice-vdagent/default.nix
@@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
     url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
     sha256 = "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx";
   };
+
+  # FIXME: May no longer be needed with spice-vdagent versions over 0.21.0
+  NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
+
   postPatch = ''
     substituteInPlace data/spice-vdagent.desktop --replace /usr $out
   '';