3
0
Fork 0
forked from mirrors/nixpkgs

virtualbox: fix build with gcc-5.4 by Debian patch

This commit is contained in:
Vladimír Čunát 2016-06-19 10:40:07 +02:00
parent 97c484a10f
commit a02e5ad926

View file

@ -97,7 +97,14 @@ in stdenv.mkDerivation {
set +x
'';
patches = optional enableHardening ./hardened.patch;
patches = optional enableHardening ./hardened.patch
++ [
(fetchurl rec {
name = "fix-detect-gcc-5.4.patch";
url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=827193;filename=${name};msg=5";
sha256 = "0y6v5dc6fqj9iv27cl8q2g87v1kxg19129mpas4vjg7g0529v4g9";
})
];
postPatch = ''
sed -i -e 's|/sbin/ifconfig|${nettools}/bin/ifconfig|' \