Accepting request 133459 from home:a_jaeger:FactoryFix
Fix build with glibc 2.16 and missing gets. OBS-URL: https://build.opensuse.org/request/show/133459 OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=91
This commit is contained in:
parent
9e5b680c4c
commit
5e01c8a618
13
emacs-24.1-gets.patch
Normal file
13
emacs-24.1-gets.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- emacs-24.1/lib/stdio.in.h.old 2012-09-10 11:22:57.405938628 +0200
|
||||||
|
+++ emacs-24.1/lib/stdio.in.h 2012-09-10 11:24:01.071262324 +0200
|
||||||
|
@@ -715,8 +715,10 @@
|
||||||
|
/* 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. */
|
||||||
|
+#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@
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 10 09:25:05 UTC 2012 - aj@suse.de
|
||||||
|
|
||||||
|
- Add emacs-24.1-gets.patch to check whether gets is declared
|
||||||
|
before warning about it (needed by glibc 2.16).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 26 07:39:27 UTC 2012 - werner@suse.de
|
Thu Jul 26 07:39:27 UTC 2012 - werner@suse.de
|
||||||
|
|
||||||
|
@ -95,6 +95,7 @@ Patch16: emacs-23.1-flyspell.patch
|
|||||||
Patch22: emacs-24.1-bnc628268.patch
|
Patch22: emacs-24.1-bnc628268.patch
|
||||||
Patch23: emacs-24.1-xevent.patch
|
Patch23: emacs-24.1-xevent.patch
|
||||||
Patch24: emacs-24.1-xgselect.patch
|
Patch24: emacs-24.1-xgselect.patch
|
||||||
|
Patch25: emacs-24.1-gets.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%global bug_345669 0
|
%global bug_345669 0
|
||||||
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
||||||
@ -203,6 +204,7 @@ fi
|
|||||||
%patch22
|
%patch22
|
||||||
%patch23
|
%patch23
|
||||||
%patch24
|
%patch24
|
||||||
|
%patch25 -p1
|
||||||
%if 0%{?suse_version} < 1130
|
%if 0%{?suse_version} < 1130
|
||||||
%patch1
|
%patch1
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user