diff --git a/zile-2.3.21-no_gets.patch b/zile-2.3.21-no_gets.patch new file mode 100644 index 0000000..85cb610 --- /dev/null +++ b/zile-2.3.21-no_gets.patch @@ -0,0 +1,19 @@ +diff -urN zile-2.3.21.orig/lib/stdio.in.h zile-2.3.21/lib/stdio.in.h +--- zile-2.3.21.orig/lib/stdio.in.h 2010-11-11 17:51:04.000000000 +0530 ++++ zile-2.3.21/lib/stdio.in.h 2012-08-05 15:56:36.840677597 +0530 +@@ -146,10 +146,12 @@ + #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. */ ++ so any use of gets warrants an unconditional warning; besides, C11 ++ removed it. */ + #undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#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@ diff --git a/zile.spec b/zile.spec index ff1293d..a045d67 100644 --- a/zile.spec +++ b/zile.spec @@ -1,12 +1,12 @@ Summary: Zile Is Lossy Emacs Name: zile Version: 2.3.21 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ Group: Applications/Editors URL: http://www.gnu.org/software/%{name}/ Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: zile-2.3.21-no_gets.patch BuildRequires: ncurses-devel help2man %description @@ -16,6 +16,8 @@ similar as possible to Emacs; every Emacs user should feel at home. %prep %setup -q +%patch0 -p1 -b .no_gets + iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,} mv THANKS{.utf8,} @@ -24,21 +26,19 @@ mv THANKS{.utf8,} make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install rm -f $RPM_BUILD_ROOT/%{_infodir}/dir -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README THANKS %{_bindir}/* %{_mandir}/man1/* %{_datadir}/%{name}/ %changelog +* Sat Aug 04 2012 Parag Nemade - 2.31.21-5 +- Fix gets call for glibc-2.16 changes + * Sun Jul 22 2012 Fedora Release Engineering - 2.3.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild