From 18aada9c4ce7a7d0eabffdbfea458d1c80b577a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 8 Nov 2017 09:44:57 +0100 Subject: [PATCH] virtualbox: fixup build with glibc-2.26 Explanation: https://www.linuxquestions.org/questions/slackware-14/sbo-scripts-not-building-on-current-read-1st-post-pls-4175561999/page46.html#post5753698 --- pkgs/applications/virtualization/virtualbox/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index 4f6da3c7cd91..6649b027c316 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -94,6 +94,14 @@ in stdenv.mkDerivation { postPatch = '' sed -i -e 's|/sbin/ifconfig|${nettools}/bin/ifconfig|' \ src/VBox/HostDrivers/adpctl/VBoxNetAdpCtl.cpp + patch -p0 < ${ + fetchurl { # for glibc-2.26 + name = "conflicting-types-for-greg_t.patch"; + url = "http://www.linuxquestions.org/questions/" + + "attachment.php?attachmentid=25801&d=1504099531"; + sha256 = "1bcyf9qrqxizyjp1s662k6n1cfyfjbl7256r4n20kbr65yxcydps"; + } + } ''; # first line: ugly hack, and it isn't yet clear why it's a problem