virtualbox: patch HostServices/SharedClipboard/x11-stub.cpp to use RT_NOREF

Signed-off-by: Florian Klink <flokli@flokli.de>
This commit is contained in:
Florian Klink
2017-12-07 01:46:18 +01:00
parent d8787a8aac
commit c8ee4d0928
2 changed files with 160 additions and 2 deletions
@@ -88,8 +88,13 @@ in stdenv.mkDerivation {
set +x
'';
patches = optional enableHardening ./hardened.patch
++ [ ./qtx11extras.patch ];
patches =
optional enableHardening ./hardened.patch
# https://www.virtualbox.org/pipermail/vbox-dev/2017-December/014888.html
++ optional headless [ ./HostServices-SharedClipboard-x11-stub.cpp-use-RT_NOR.patch ]
++ [ ./qtx11extras.patch ];
postPatch = ''
sed -i -e 's|/sbin/ifconfig|${nettools}/bin/ifconfig|' \