-
-
Save lheckemann/6bc6ab9c0df08935860a8b13a7f4517f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/srclib/stdio.in.h b/srclib/stdio.in.h | |
index 473c84c..e92c107 100644 | |
--- a/srclib/stdio.in.h | |
+++ b/srclib/stdio.in.h | |
@@ -695,7 +695,6 @@ _GL_CXXALIASWARN (gets); | |
/* It is very rare that the developer ever has full control of stdin, | |
so any use of gets warrants an unconditional warning. Assume it is | |
always declared, since it is required by C89. */ | |
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | |
#endif | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgsPath ? /home/linus/nixpkgs }: | |
let | |
traceId = e: builtins.trace e e; | |
kernelConfig = "defconfig"; | |
pkgs = import pkgsPath { | |
crossSystem = { | |
config = "arm-linux-gnueabihf"; | |
bigEndian = false; | |
arch = "arm"; | |
float = "hard"; | |
withTLS = true; | |
libc = "uclibc"; | |
platform = { | |
name = "kobo"; | |
kernelMajor = "2.6"; | |
kernelBaseConfig = kernelConfig; | |
kernelHeadersBaseConfig = kernelConfig; | |
uboot = null; | |
kernelArch = "arm"; | |
kernelAutoModules = false; | |
kernelTarget = "vmlinux.bin"; | |
}; | |
openssl.system = "linux-generic32"; | |
gcc.arch = "armv7-a"; | |
uclibc.extraConfig = '' | |
CONFIG_AEABI y | |
CONFIG_ARM_EABI y | |
ARCH_WANTS_BIG_ENDIAN n | |
ARCH_BIG_ENDIAN n | |
ARCH_WANTS_LITTLE_ENDIAN y | |
ARCH_LITTLE_ENDIAN y | |
UCLIBC_HAS_FPU y | |
''; | |
}; | |
config.packageOverrides = pkgs: { | |
uclibcCross = pkgs.uclibcCross.overrideDerivation (attrs: let | |
name = "uclibc-ng-1.0.21"; | |
in { | |
inherit name; | |
src = pkgs.fetchzip { | |
name = name + "-source"; | |
url = "http://downloads.uclibc-ng.org/releases/1.0.21/uClibc-ng-1.0.21.tar.xz"; | |
sha256 = "082cykxh9lq8i1c1awbwzql6qw5gf18igy6r69a8dngfsa53mv2a"; | |
}; | |
}); | |
libiconv = pkgs.libiconv.overrideDerivation (attrs: { | |
patches = attrs.patches ++ [ | |
./patches/stdio.patch | |
]; | |
}); | |
}; | |
}; | |
in | |
pkgs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment