[packages/tar] - fix missing gets when building with glibc 2.16 - rel 2
baggins
baggins at pld-linux.org
Thu Dec 13 13:54:35 CET 2012
commit bced666640715ca9718650902ecaf7141f64755c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Dec 13 13:54:15 2012 +0100
- fix missing gets when building with glibc 2.16
- rel 2
tar-stdio.in.patch | 13 +++++++++++++
tar.spec | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/tar.spec b/tar.spec
index c59c583..7fb97d0 100644
--- 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
diff --git a/tar-stdio.in.patch b/tar-stdio.in.patch
new file mode 100644
index 0000000..a687592
--- /dev/null
+++ b/tar-stdio.in.patch
@@ -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@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tar.git/commitdiff/bced666640715ca9718650902ecaf7141f64755c
More information about the pld-cvs-commit
mailing list