Hello,

I just forward the failed to build from source (FTBFS) bug and patch
from Adam.

Maybe you will apply it.

Thanks for your work.

Regards.

-------- Weitergeleitete Nachricht --------
> Von: Adam Conrad <adcon...@debian.org>
> Reply-to: Adam Conrad <adcon...@debian.org>, 697...@bugs.debian.org
> An: Debian Bug Tracking System <sub...@bugs.debian.org>
> Betreff: Bug#697217: FTBFS with glibc 2.16, patch attached
> Datum: Wed, 02 Jan 2013 12:52:03 -0700
> 
> Package: lftp
> Version: 4.3.8-1.1
> Severity: important
> Tags: patch
> User: ubuntu-de...@lists.ubuntu.com
> Usertags: origin-ubuntu raring ubuntu-patch
> 
> 
> 
> In Ubuntu, the attached patch was applied to achieve the following:
> 
>   * gets-undefined-in-C11.patch: Only play with gets() if it's defined.
> 
> This is needed because glibc 2.16 (found in Debian experimental and
> Ubuntu raring) no longer defines gets(), as it's been dropped from
> ISO C11.  The patch itself should be self-explanatory.
> 
> ... Adam
> 
> 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers raring-updates
>   APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 
> 'raring')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 3.7.0-7-generic (SMP w/4 CPU cores)
> Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash

-- 
Noël Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org
diff -Nru lftp-4.3.8/debian/changelog lftp-4.3.8/debian/changelog
diff -Nru lftp-4.3.8/debian/patches/gets-undefined-in-C11.patch lftp-4.3.8/debian/patches/gets-undefined-in-C11.patch
--- lftp-4.3.8/debian/patches/gets-undefined-in-C11.patch	1969-12-31 17:00:00.000000000 -0700
+++ lftp-4.3.8/debian/patches/gets-undefined-in-C11.patch	2013-01-02 12:45:29.000000000 -0700
@@ -0,0 +1,19 @@
+Description: Only play with gets() if it's defined.
+Author: Adam Conrad <adcon...@ubuntu.com>
+Forwarded: no
+
+--- lftp-4.3.8.orig/lib/stdio.in.h
++++ lftp-4.3.8/lib/stdio.in.h
+@@ -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.  */
++#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@
diff -Nru lftp-4.3.8/debian/patches/series lftp-4.3.8/debian/patches/series
--- lftp-4.3.8/debian/patches/series	2012-12-01 08:09:43.000000000 -0700
+++ lftp-4.3.8/debian/patches/series	2013-01-02 12:45:01.000000000 -0700
@@ -1,2 +1,3 @@
 config-dns-inet6_before_inet.patch
 lftp_sys-stdint-kfreebsd.patch
+gets-undefined-in-C11.patch

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to