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.
This commit is contained in:
parent
951fe852bc
commit
e0e6ce7385
|
@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
|
||||||
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx";
|
sha256 = "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# FIXME: May no longer be needed with spice-vdagent versions over 0.21.0
|
||||||
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue