]> git.pld-linux.org Git - packages/tar.git/commitdiff
- fix missing gets when building with glibc 2.16 auto/th/tar-1.26-2 auto/ti/tar-1.26-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Dec 2012 12:54:15 +0000 (13:54 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Dec 2012 12:54:15 +0000 (13:54 +0100)
- rel 2

tar-stdio.in.patch [new file with mode: 0644]
tar.spec

diff --git a/tar-stdio.in.patch b/tar-stdio.in.patch
new file mode 100644 (file)
index 0000000..a687592
--- /dev/null
@@ -0,0 +1,13 @@
+diff -urNp tar-1.26-orig/gnu/stdio.in.h tar-1.26/gnu/stdio.in.h
+--- tar-1.26-orig/gnu/stdio.in.h
++++ tar-1.26/gnu/stdio.in.h
+@@ -139,7 +139,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 c59c58390fbd992cdb45e4ac0f9de819d27535da..7fb97d0b1b5a80eb3b018a3c58eff3e1e509777a 100644 (file)
--- a/tar.spec
+++ b/tar.spec
@@ -11,7 +11,7 @@ Summary(pt_BR.UTF-8): GNU Tape Archiver (tar)
 Summary(tr.UTF-8):     Yaygın kullanılan yedekleyici
 Name:          tar
 Version:       1.26
-Release:       1
+Release:       2
 Epoch:         1
 License:       GPL v3+
 Group:         Applications/Archiving
@@ -22,6 +22,7 @@ Source1:      http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-ma
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-pl.po-update.patch
 Patch2:                %{name}-zero-block.patch
+Patch3:                %{name}-stdio.in.patch
 URL:           http://www.gnu.org/software/tar/tar.html
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.11
@@ -142,6 +143,7 @@ z pakietu dump.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %{__rm} po/stamp-po
 
This page took 0.117426 seconds and 4 git commands to generate.