[arch-commits] Commit in lftp/trunk (PKGBUILD lftp-4.3.8-gets.patch)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Sep 28 20:05:54 UTC 2012


    Date: Friday, September 28, 2012 @ 16:05:53
  Author: andyrtr
Revision: 167230

upgpkg: lftp 4.4.0-1

upstream update 4.4.0

Added:
  lftp/trunk/lftp-4.3.8-gets.patch
Modified:
  lftp/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |    9 ++++++---
 lftp-4.3.8-gets.patch |   16 ++++++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-09-28 19:51:26 UTC (rev 167229)
+++ PKGBUILD	2012-09-28 20:05:53 UTC (rev 167230)
@@ -3,7 +3,7 @@
 # Contributor: Aaron Griffin <aaron at archlinux.org>
 
 pkgname=lftp
-pkgver=4.3.8
+pkgver=4.4.0
 pkgrel=1
 pkgdesc="Sophisticated command line based FTP client"
 arch=('i686' 'x86_64')
@@ -12,11 +12,14 @@
 optdepends=('perl: needed for convert-netscape-cookies and verify-file')
 url="http://lftp.yar.ru/"
 backup=('etc/lftp.conf')
-source=(http://ftp.yars.free.net/pub/source/lftp/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('adced9c3e0f6b96821811dc87c0a1eeb')
+source=(http://ftp.yars.free.net/pub/source/lftp/${pkgname}-${pkgver}.tar.bz2
+       lftp-4.3.8-gets.patch)
+md5sums=('9d6a048bb6be9bc3baecfea53b0d8330'
+         '77168a7f368b07eec7e079b55496fa97')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
+  patch -Np1 -i ${srcdir}/lftp-4.3.8-gets.patch
   ./configure --prefix=/usr --with-gnutls \
 	--without-openssl --disable-static
   make

Added: lftp-4.3.8-gets.patch
===================================================================
--- lftp-4.3.8-gets.patch	                        (rev 0)
+++ lftp-4.3.8-gets.patch	2012-09-28 20:05:53 UTC (rev 167230)
@@ -0,0 +1,16 @@
+diff -up lftp-4.3.8/lib/stdio.in.h.gets lftp-4.3.8/lib/stdio.in.h
+--- lftp-4.3.8/lib/stdio.in.h.gets	2012-07-22 15:07:15.101115146 -0400
++++ lftp-4.3.8/lib/stdio.in.h	2012-07-22 15:08:09.777098512 -0400
+@@ -702,10 +702,12 @@ _GL_WARN_ON_USE (getline, "getline is un
+ /* 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.  */
++#if defined gets
+ #undef gets
+ #if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif // if defined gets
+ 
+ 
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@




More information about the arch-commits mailing list