[gettext] need to fix stdio.h for gets in gettext-tools too

Jens Petersen petersen at fedoraproject.org
Fri Jul 27 10:09:44 UTC 2012


commit bc338ba2dbd5cd821b91099c04a4eac87a45ea08
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jul 27 19:09:39 2012 +0900

    need to fix stdio.h for gets in gettext-tools too

 gettext-0.18.1.1-stdio-gets.patch |    4 ++--
 gettext.spec                      |    8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)
---
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


More information about the scm-commits mailing list