mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
syslinux: Use gcc 4.8 until a proper fix for 5 is made
This commit is contained in:
parent
f4a42ae509
commit
3000e55b06
@ -8,8 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "03l5iifwlg1wyb4yh98i0b7pd4j55a1c9y74q1frs47a5dnrilr6";
|
||||
};
|
||||
|
||||
# gcc5-fix should be in 6.04+, so remove if it fails to apply.
|
||||
patches = [ ./perl-deps.patch ./gcc5-fix.patch ];
|
||||
patches = [ ./perl-deps.patch ];
|
||||
|
||||
buildInputs = [ nasm perl libuuid ];
|
||||
|
||||
|
@ -1,26 +0,0 @@
|
||||
diff --git a/com32/include/menu.h b/com32/include/menu.h
|
||||
index bc0182f..b0251e4 100644
|
||||
--- a/com32/include/menu.h
|
||||
+++ b/com32/include/menu.h
|
||||
@@ -195,7 +195,7 @@ void local_cursor_enable(bool);
|
||||
|
||||
static inline int my_isspace(char c)
|
||||
{
|
||||
- return (unsigned char)c <= ' ';
|
||||
+ return (unsigned char)c <= ' ' || (unsigned char)c == '\x7f';
|
||||
}
|
||||
|
||||
int my_isxdigit(char c);
|
||||
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
|
||||
index b7814be..a433fad 100644
|
||||
--- a/com32/menu/readconfig.c
|
||||
+++ b/com32/menu/readconfig.c
|
||||
@@ -299,7 +299,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
|
||||
char c;
|
||||
|
||||
while ((c = *src++)) {
|
||||
- if (c <= ' ' && c == '\x7f') {
|
||||
+ if (my_isspace(c)) {
|
||||
if (!was_space)
|
||||
*dst++ = '_';
|
||||
was_space = true;
|
@ -10048,7 +10048,13 @@ let
|
||||
|
||||
sysklogd = callPackage ../os-specific/linux/sysklogd { };
|
||||
|
||||
syslinux = callPackage ../os-specific/linux/syslinux { };
|
||||
syslinux = callPackage ../os-specific/linux/syslinux {
|
||||
# Using GCC5 with 6.03 creates a broken isolinux.bin
|
||||
# Make sure to test booting the livecd on a bios system
|
||||
# if changing this override.
|
||||
# nixos.tests.bootBiosCdrom is useful for this.
|
||||
stdenv = overrideCC stdenv gcc48;
|
||||
};
|
||||
|
||||
sysstat = callPackage ../os-specific/linux/sysstat { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user