diff --git a/gettext-0.18.1.1-stdio-gets.patch b/gettext-0.18.1.1-stdio-gets.patch index d1b3123..9f3a34d 100644 --- a/gettext-0.18.1.1-stdio-gets.patch +++ b/gettext-0.18.1.1-stdio-gets.patch @@ -1,5 +1,5 @@ ---- gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h~ 2010-05-18 04:56:12.000000000 +0900 -+++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h 2012-07-27 17:39:41.812242483 +0900 +--- gnulib-lib/stdio.in.h~ 2010-05-18 04:56:12.000000000 +0900 ++++ gnulib-lib/stdio.in.h 2012-07-27 17:39:41.812242483 +0900 @@ -140,8 +140,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 diff --git a/gettext.spec b/gettext.spec index 86b2bf9..92bd4a2 100644 --- a/gettext.spec +++ b/gettext.spec @@ -138,7 +138,13 @@ Emacs. %setup -q %patch1 -p1 -b .orig %patch2 -p1 -b .crash -%patch3 -p1 -b .gets + +# patch gnulib for deprecated gets() +cd gettext-runtime +%patch3 -p0 -b .gets +cd ../gettext-tools +%patch3 -p0 -b .gets +cd .. %build