| Submitter | Jacob Kjaergaard |
|---|---|
| Date | March 19, 2013, 7:28 a.m. |
| Message ID | <46e41207e288af3a1244633f8b234ec7a25710b9.1363678101.git.jacob.kjaergaard@prevas.dk> |
| Download | mbox | patch |
| Permalink | /patch/228928/ |
| State | Accepted |
| Delegated to: | Esben Haabendal |
| Headers | show |
Comments
Patch
diff --git a/recipes/lftp/lftp-4.4.5/config.site b/recipes/lftp/lftp-4.4.5/config.site new file mode 100644 index 0000000..ce54c84 --- /dev/null +++ b/recipes/lftp/lftp-4.4.5/config.site @@ -0,0 +1 @@ +i_cv_posix_fallocate_works=${i_cv_posix_fallocate_works=yes} diff --git a/recipes/lftp/lftp-4.4.5/gets-undefined-in-C11.patch b/recipes/lftp/lftp-4.4.5/gets-undefined-in-C11.patch new file mode 100644 index 0000000..c9db819 --- /dev/null +++ b/recipes/lftp/lftp-4.4.5/gets-undefined-in-C11.patch @@ -0,0 +1,14 @@ +--- 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 --git a/recipes/lftp/lftp_4.4.5.oe b/recipes/lftp/lftp_4.4.5.oe new file mode 100644 index 0000000..3d9d683 --- /dev/null +++ b/recipes/lftp/lftp_4.4.5.oe @@ -0,0 +1,5 @@ +LICENSE = "GPL-3.0+" + +require lftp.inc + +SRC_URI += "file://gets-undefined-in-C11.patch" diff --git a/recipes/lftp/lftp_4.4.5.oe.sig b/recipes/lftp/lftp_4.4.5.oe.sig new file mode 100644 index 0000000..5f0aa72 --- /dev/null +++ b/recipes/lftp/lftp_4.4.5.oe.sig @@ -0,0 +1 @@ +b985c5985b6663703d4cd815c27dc7e74103c975 lftp-4.4.5.tar.bz2
From: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk> --- recipes/lftp/lftp-4.4.5/config.site | 1 + .../lftp/lftp-4.4.5/gets-undefined-in-C11.patch | 14 ++++++++++++++ recipes/lftp/lftp_4.4.5.oe | 5 +++++ recipes/lftp/lftp_4.4.5.oe.sig | 1 + 4 files changed, 21 insertions(+) create mode 100644 recipes/lftp/lftp-4.4.5/config.site create mode 100644 recipes/lftp/lftp-4.4.5/gets-undefined-in-C11.patch create mode 100644 recipes/lftp/lftp_4.4.5.oe create mode 100644 recipes/lftp/lftp_4.4.5.oe.sig