git.iko.soy/typeable/nixpkgs
on master help sign in
rush: 1.7 -> 1.8 (#20424)
commit39297fa36bb12d100421bc3831ea999fbfd37536 authorLancelot SIX <lsix+github@lancelotsix.com> dateTue 15 Nov 2016, 14:33 (10 years ago) parent1958f07
3 files changed+15−16
pkgs/shells/rush/default.nix+3−3 pkgs/shells/rush/fix-format-security-error.patch+12 pkgs/shells/rush/gets.patch−13
pkgs/shells/rush/default.nix+3−3
@@ -1,14 +1,14 @@
11{ fetchurl, stdenv }:
22
33stdenv.mkDerivation rec {
4− name = "rush-1.7";
4+ name = "rush-1.8";
55
66 src = fetchurl {
77 url = "mirror://gnu/rush/${name}.tar.gz";
8− sha256 = "0fh0gbbp0iiq3wbkf503xb40r8ljk42vyj9bnlflbz82d6ipy1rm";
8+ sha256 = "1vxdb81ify4xcyygh86250pi50krb16dkj42i5ii4ns3araiwckz";
99 };
1010
11− patches = [ ./gets.patch ];
11+ patches = [ ./fix-format-security-error.patch ];
1212
1313 doCheck = true;
1414
pkgs/shells/rush/fix-format-security-error.patchnew file+12
@@ -0,0 +1,12 @@
1+diff -Nur rush-1.8.orig/lib/wordsplit.c rush-1.8/lib/wordsplit.c
2+--- rush-1.8.orig/lib/wordsplit.c 2016-08-18 20:11:43.000000000 +0200
3++++ rush-1.8/lib/wordsplit.c 2016-11-14 14:37:02.976177414 +0100
4+@@ -2330,7 +2330,7 @@
5+ break;
6+
7+ default:
8+- wsp->ws_error (wordsplit_strerror (wsp));
9++ wsp->ws_error ("%s", wordsplit_strerror (wsp));
10+ }
11+ }
12+
pkgs/shells/rush/gets.patchdeleted−13
@@ -1,13 +0,0 @@
1−--- rush-1.7/gnu/stdio.in.h.org 2010-06-13 19:14:59.000000000 +0200
2−+++ rush-1.7/gnu/stdio.in.h 2013-12-30 14:29:55.000000000 +0100
3−@@ -138,8 +138,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not
4− /* It is very rare that the developer ever has full control of stdin,
5− so any use of gets warrants an unconditional warning. Assume it is
6− always declared, since it is required by C89. */
7−+#if defined gets
8− #undef gets
9− _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
10−+#endif
11−
12− #if @GNULIB_FOPEN@
13− # if @REPLACE_FOPEN@