3
0
Fork 0
forked from mirrors/nixpkgs

lftp: Update to 4.4.0 and fix build

http://hydra.nixos.org/build/3896385
This commit is contained in:
Eelco Dolstra 2013-01-28 14:12:29 +01:00
parent 38ced3b436
commit 08b8512ce4
2 changed files with 27 additions and 4 deletions

View file

@ -1,12 +1,20 @@
{stdenv, fetchurl, gnutls, libtasn1, pkgconfig, readline, zlib, xz}:
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib, xz }:
stdenv.mkDerivation rec {
name = "lftp-4.3.1";
name = "lftp-4.4.0";
src = fetchurl {
url = "ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/${name}.tar.xz";
sha256 = "0v3591fknmimarzk5icm0qxdcfzfckwi2drh165vsiggmj590iyx";
sha256 = "0cg4gabya2sygbwh2b0cdr8v719q9gv929hdb5g1mxgj8npjd4y7";
};
buildInputs = [gnutls libtasn1 pkgconfig readline zlib];
patches = [ ./no-gets.patch ];
buildInputs = [ gnutls pkgconfig readline zlib ];
meta = {
homepage = http://lftp.yar.ru/;
description = "A file transfer program supporting a number of network protocols";
license = "GPL";
};
}

View file

@ -0,0 +1,15 @@
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -702,10 +702,12 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning; besides, C11
removed it. */
+#ifdef gets
#undef gets
#if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
+#endif
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@