grub: Fix build on Glibc 2.16

http://hydra.nixos.org/build/3046836
This commit is contained in:
Eelco Dolstra 2012-09-21 10:36:13 -04:00
parent 5d859baf59
commit c4041d9c39

View File

@ -4,14 +4,14 @@
let
prefix = "grub${if EFIsupport then "-efi" else ""}";
version = "2.00";
unifont_bdf = fetchurl {
url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz";
sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx";
};
in
stdenv.mkDerivation rec {
@ -43,6 +43,10 @@ stdenv.mkDerivation rec {
# See <http://www.mail-archive.com/qemu-devel@nongnu.org/msg22775.html>.
sed -i "tests/util/grub-shell.in" \
-e's/qemu-system-i386/qemu-system-x86_64 -nodefaults/g'
# Fix for building on Glibc 2.16. Won't be needed once the
# gnulib in grub is updated.
sed -i '/gets is a security hole/d' grub-core/gnulib/stdio.in.h
'';
prePatch =