[packages/m4] - fix missing gets definition - rel 2
baggins
baggins at pld-linux.org
Wed Dec 12 14:00:47 CET 2012
commit e90703a35841bf639f88ed46a431dd91a9551a7d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Dec 12 14:00:31 2012 +0100
- fix missing gets definition
- rel 2
m4-stdio-gets.patch | 13 +++++++++++++
m4.spec | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/m4.spec b/m4.spec
index 859c470..d35910a 100644
--- a/m4.spec
+++ b/m4.spec
@@ -9,13 +9,14 @@ Summary(pl.UTF-8): GNU procesor języka makrodefinicji
Summary(tr.UTF-8): GNU Makroİşlemcisi
Name: m4
Version: 1.4.16
-Release: 1
+Release: 2
Epoch: 3
License: GPL v3+
Group: Applications/Text
Source0: http://ftp.gnu.org/gnu/m4/%{name}-%{version}.tar.xz
# Source0-md5: 7548ec061a1ba993790159764f522d0e
Patch0: %{name}-info.patch
+Patch1: %{name}-stdio-gets.patch
URL: http://www.gnu.org/software/m4/
BuildRequires: tar >= 1:1.22
BuildRequires: texinfo
@@ -74,6 +75,7 @@ Statyczna biblioteka m4.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure \
diff --git a/m4-stdio-gets.patch b/m4-stdio-gets.patch
new file mode 100644
index 0000000..51df5b0
--- /dev/null
+++ b/m4-stdio-gets.patch
@@ -0,0 +1,13 @@
+diff -up m4-1.4.16/lib/stdio.in.h.orig m4-1.4.16/lib/stdio.in.h
+--- m4-1.4.16/lib/stdio.in.h.orig 2012-05-30 13:55:51.092600199 +0200
++++ m4-1.4.16/lib/stdio.in.h 2012-05-30 13:56:25.763794100 +0200
+@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not
+ so any use of gets warrants an unconditional warning. Assume it is
+ always declared, since it is required by C89. */
+ #undef gets
++#if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/m4.git/commitdiff/e90703a35841bf639f88ed46a431dd91a9551a7d
More information about the pld-cvs-commit
mailing list