forked from pool/gettext-runtime
Accepting request 128695 from home:a_jaeger:FactoryFix
Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/128695 OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=58
This commit is contained in:
parent
5a40832fd0
commit
629b6ad56e
42
getext-stdio.in.patch
Normal file
42
getext-stdio.in.patch
Normal file
@ -0,0 +1,42 @@
|
||||
Index: gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h
|
||||
===================================================================
|
||||
--- gettext-0.18.1.1.orig/gettext-runtime/gnulib-lib/stdio.in.h
|
||||
+++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h
|
||||
@@ -141,7 +141,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@
|
||||
Index: gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h
|
||||
===================================================================
|
||||
--- gettext-0.18.1.1.orig/gettext-tools/gnulib-lib/stdio.in.h
|
||||
+++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h
|
||||
@@ -141,7 +141,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@
|
||||
Index: gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h
|
||||
===================================================================
|
||||
--- gettext-0.18.1.1.orig/gettext-tools/libgettextpo/stdio.in.h
|
||||
+++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h
|
||||
@@ -141,7 +141,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@
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 22 18:41:30 UTC 2012 - aj@suse.de
|
||||
|
||||
- Fix build with missing gets declaration (glibc 2.16)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 21 13:43:49 CET 2010 - pth@suse.de
|
||||
|
||||
|
@ -43,6 +43,7 @@ Patch5: gettext-initialize_vars.patch
|
||||
Patch6: gettext-0.15-docdir.diff
|
||||
Patch7: gettext-autotools.patch
|
||||
Patch9: gettext-needlessly_init_vars.patch
|
||||
Patch10: getext-stdio.in.patch
|
||||
|
||||
%description
|
||||
Mono with its 'resgen' program uses a design that Microsoft created and
|
||||
@ -81,6 +82,7 @@ Authors:
|
||||
%patch6
|
||||
%patch7
|
||||
%patch9
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 22 18:41:35 UTC 2012 - aj@suse.de
|
||||
|
||||
- Fix build with missing gets declaration (glibc 2.16)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 21 13:43:49 CET 2010 - pth@suse.de
|
||||
|
||||
|
@ -43,6 +43,7 @@ Patch5: gettext-initialize_vars.patch
|
||||
Patch6: gettext-0.15-docdir.diff
|
||||
Patch7: gettext-autotools.patch
|
||||
Patch9: gettext-needlessly_init_vars.patch
|
||||
Patch10: getext-stdio.in.patch
|
||||
|
||||
%description
|
||||
This package includes the tools needed to support message catalogs in
|
||||
@ -59,6 +60,7 @@ java+swing.
|
||||
%patch6
|
||||
%patch7
|
||||
%patch9
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 22 18:41:39 UTC 2012 - aj@suse.de
|
||||
|
||||
- Fix build with missing gets declaration (glibc 2.16)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 2 11:04:21 UTC 2012 - coolo@suse.com
|
||||
|
||||
|
@ -54,6 +54,7 @@ Patch5: gettext-initialize_vars.patch
|
||||
Patch6: gettext-0.15-docdir.diff
|
||||
Patch7: gettext-autotools.patch
|
||||
Patch9: gettext-needlessly_init_vars.patch
|
||||
Patch10: getext-stdio.in.patch
|
||||
|
||||
%description
|
||||
This package contains the intl library as well as tools that ease the
|
||||
@ -95,6 +96,7 @@ binary catalogs.
|
||||
%patch6
|
||||
%patch7
|
||||
%patch9
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
# expect a couple "You should update your `aclocal.m4' by running aclocal."
|
||||
|
Loading…
Reference in New Issue
Block a user