diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2014-10-30 08:27:28 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2014-10-30 10:30:08 +0100 |
commit | e630ee2fddd02761d3ad695f528a31e14b313a2e (patch) | |
tree | 53204394ae10857d9c1262111d6a9e91bf02c647 /pkgs/tools/networking | |
parent | 9d9fdb173a469fa8964c091c7289fb8aaf35ffdb (diff) | |
download | nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.tar nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.tar.gz nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.tar.bz2 nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.tar.lz nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.tar.xz nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.tar.zst nixlib-e630ee2fddd02761d3ad695f528a31e14b313a2e.zip |
wget: Update to 1.16 (fix CVE-2014-4877)
This patch updates wget to the current version, 1.16. This release fixes a remotely exploitable security issue: CVE-2014-4877. A dependency on libidn was added and the testsuite now depends on python3. A patch that disables a test was removed because it is not needed anymore. As I intend to take care of wget in the future, I added myself to the maintainers.
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/wget/default.nix | 26 | ||||
-rw-r--r-- | pkgs/tools/networking/wget/iri-test.patch | 12 |
2 files changed, 13 insertions, 25 deletions
diff --git a/pkgs/tools/networking/wget/default.nix b/pkgs/tools/networking/wget/default.nix index 27d7fe2572a0..27aa9b1775a6 100644 --- a/pkgs/tools/networking/wget/default.nix +++ b/pkgs/tools/networking/wget/default.nix @@ -1,17 +1,17 @@ -{ stdenv, fetchurl, gettext, perl, LWP, gnutls ? null }: +{ stdenv, fetchurl, gettext, libidn +, perl, perlPackages, LWP, python3 +, gnutls ? null }: stdenv.mkDerivation rec { - name = "wget-1.15"; + name = "wget-1.16"; src = fetchurl { url = "mirror://gnu/wget/${name}.tar.xz"; - sha256 = "1yw0sk4mrs7bvga3c79rkbhxivmw8cs3b5wq3cglp1f9ai1mz2ni"; + sha256 = "1rxhr3jmgbwryzl51di4avqxw9m9j1z2aak8q1npns0p184xsqcj"; }; - patches = stdenv.lib.optional stdenv.isDarwin ./iri-test.patch; - preConfigure = stdenv.lib.optionalString doCheck - '' for i in "doc/texi2pod.pl" "tests/run-px" "util/rmold.pl" + '' for i in "doc/texi2pod.pl" "util/rmold.pl" do sed -i "$i" -e 's|/usr/bin.*perl|${perl}/bin/perl|g' done @@ -24,8 +24,8 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ gettext ]; - buildInputs = - stdenv.lib.optionals doCheck [ perl LWP ] + buildInputs = [ libidn ] + ++ stdenv.lib.optionals doCheck [ perl perlPackages.IOSocketSSL LWP python3 ] ++ stdenv.lib.optional (gnutls != null) gnutls; configureFlags = @@ -33,9 +33,9 @@ stdenv.mkDerivation rec { then "--with-ssl=gnutls" else "--without-ssl"; - doCheck = (perl != null); + doCheck = (perl != null && python3 != null); - meta = { + meta = with stdenv.lib; { description = "Tool for retrieving files using HTTP, HTTPS, and FTP"; longDescription = @@ -45,11 +45,11 @@ stdenv.mkDerivation rec { scripts, cron jobs, terminals without X-Windows support, etc. ''; - license = stdenv.lib.licenses.gpl3Plus; + license = licenses.gpl3Plus; homepage = http://www.gnu.org/software/wget/; - maintainers = [ ]; - platforms = stdenv.lib.platforms.all; + maintainers = with maintainers; [ fpletz ]; + platforms = platforms.all; }; } diff --git a/pkgs/tools/networking/wget/iri-test.patch b/pkgs/tools/networking/wget/iri-test.patch deleted file mode 100644 index c1f798ce3726..000000000000 --- a/pkgs/tools/networking/wget/iri-test.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -r --unified a/wget-1.14/tests/run-px b/wget-1.14/tests/run-px ---- a/tests/run-px 2012-06-16 11:58:11.000000000 +0100 -+++ b/tests/run-px 2013-11-02 14:06:14.000000000 +0000 -@@ -48,7 +48,7 @@ - 'Test-idn-robots-utf8.px', - 'Test-iri.px', - 'Test-iri-percent.px', -- 'Test-iri-disabled.px', -+ #'Test-iri-disabled.px', - 'Test-iri-forced-remote.px', - 'Test-iri-list.px', - 'Test-k.px', |