patch from Wookey for FTBFS with eglibc-2.16 per #693352
authorBdale Garbee <bdale@gag.com>
Thu, 14 Feb 2013 22:25:19 +0000 (15:25 -0700)
committerBdale Garbee <bdale@gag.com>
Thu, 14 Feb 2013 22:25:19 +0000 (15:25 -0700)
debian/.gitignore [deleted file]
debian/changelog
debian/patches/eglibc-2.16-ftbfs-gnulib-nogets [new file with mode: 0644]
debian/patches/series

diff --git a/debian/.gitignore b/debian/.gitignore
deleted file mode 100644 (file)
index 5956d7f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-files
-tar.1
-tar.debhelper.log
-tar.postinst.debhelper
-tar.postrm.debhelper
-tar.substvars
-tar
-
index b959464e8ba1e22900a79ae3aeb28582bf3867ca..85b1fd6c1326a3b1838b5df286170ce65c480e9f 100644 (file)
@@ -1,3 +1,10 @@
+tar (1.26+dfsg-5) UNRELEASED; urgency=low
+
+  [ Wookey ]
+  * Fix included gnulib so we don't get FTBFS with eglibc-2.16, closes: #693352
+
+ -- Bdale Garbee <bdale@gag.com>  Thu, 14 Feb 2013 15:23:33 -0700
+
 tar (1.26+dfsg-0.1) unstable; urgency=low
 
   * non-maintainer upload
diff --git a/debian/patches/eglibc-2.16-ftbfs-gnulib-nogets b/debian/patches/eglibc-2.16-ftbfs-gnulib-nogets
new file mode 100644 (file)
index 0000000..42161c4
--- /dev/null
@@ -0,0 +1,28 @@
+Description: Allow package to build with glibc-2.16
+ 'gets' has been removed from glibc-2.16 but gnulib still refers to it
+ causing build failures.
+ The simple fix for now is just to put a check around the reference in
+ lib/stdio.in.h
+ A new release made with a new gnulib is a better fix.
+ .
+ tar (1.26-5) unstable; urgency=low
+ .
+   * Fix gnu/stdio.in.h to build with glibc-2.16 (gets removed)
+Author: Wookey <wookey@wookware.org>
+Last-Update: 2012-11-5
+Bug : http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html
+Bug-Debian: http://bugs.debian.org/687986
+Forwarded: not-needed
+
+--- tar-1.26.orig/gnu/stdio.in.h
++++ tar-1.26/gnu/stdio.in.h
+@@ -164,7 +164,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
++#ifdef 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 aa99656d4a83f54ef8e4c8e05a4b9f85881e4fc3..15f752372c954f2a83b6eba538b4d2fb32ec48ed 100644 (file)
@@ -1,3 +1,4 @@
 doc-hack.diff
 longlink-hack.diff
 listed03-linux-only
+eglibc-2.16-ftbfs-gnulib-nogets