From 5ebeb444df1aab5ff6a5827584128ba80945edb4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 19 Dec 2012 00:41:03 +0100 Subject: [PATCH] findutils: Fix gets compile error in gnulib. --- findutils/findutils.nm | 4 +-- findutils/patches/findutils-4.5.10-gets.patch | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 findutils/patches/findutils-4.5.10-gets.patch diff --git a/findutils/findutils.nm b/findutils/findutils.nm index c05b86743..6aee52ade 100644 --- a/findutils/findutils.nm +++ b/findutils/findutils.nm @@ -5,7 +5,7 @@ name = findutils version = 4.5.10 -release = 3 +release = 4 groups = System/Tools url = http://www.gnu.org/software/findutils/ @@ -21,7 +21,7 @@ description names generated by the find command). end -source_dl = +source_dl = http://ftp.gnu.org/pub/gnu/findutils/ build requires diff --git a/findutils/patches/findutils-4.5.10-gets.patch b/findutils/patches/findutils-4.5.10-gets.patch new file mode 100644 index 000000000..24eecc30e --- /dev/null +++ b/findutils/patches/findutils-4.5.10-gets.patch @@ -0,0 +1,29 @@ +From fe7079ab7e5794b9222af5e56c6f25b424ca72f3 Mon Sep 17 00:00:00 2001 +From: Kamil Dudka +Date: Tue, 28 Aug 2012 17:24:21 +0200 +Subject: [PATCH] gnulib: do not require gets() to be declared + +--- + gnulib/lib/stdio.in.h | 6 ------ + 1 files changed, 0 insertions(+), 6 deletions(-) + +diff --git a/gnulib/lib/stdio.in.h b/gnulib/lib/stdio.in.h +index 57e93ba..b1e5bb6 100644 +--- a/gnulib/lib/stdio.in.h ++++ b/gnulib/lib/stdio.in.h +@@ -175,12 +175,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + "use gnulib module fflush for portable POSIX compliance"); + #endif + +-/* It is very rare that the developer ever has full control of stdin, +- so any use of gets warrants an unconditional warning. Assume it is +- always declared, since it is required by C89. */ +-#undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +- + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) +-- +1.7.1 + -- 2.39.2