Fix gets call for glibc-2.16 changes
This commit is contained in:
parent
86f311dd92
commit
f281a85da8
|
@ -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@
|
14
zile.spec
14
zile.spec
|
@ -1,12 +1,12 @@
|
||||||
Summary: Zile Is Lossy Emacs
|
Summary: Zile Is Lossy Emacs
|
||||||
Name: zile
|
Name: zile
|
||||||
Version: 2.3.21
|
Version: 2.3.21
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
URL: http://www.gnu.org/software/%{name}/
|
URL: http://www.gnu.org/software/%{name}/
|
||||||
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
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
|
BuildRequires: ncurses-devel help2man
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -16,6 +16,8 @@ similar as possible to Emacs; every Emacs user should feel at home.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .no_gets
|
||||||
|
|
||||||
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
|
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
|
||||||
mv THANKS{.utf8,}
|
mv THANKS{.utf8,}
|
||||||
|
|
||||||
|
@ -24,21 +26,19 @@ mv THANKS{.utf8,}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 04 2012 Parag Nemade <paragn AT fedoraproject DOT org> - 2.31.21-5
|
||||||
|
- Fix gets call for glibc-2.16 changes
|
||||||
|
|
||||||
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.21-4
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.21-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue