From 0cf5e0846d876b84e1f2935897c81da304639a29 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 6 Aug 2012 10:58:00 +0200 Subject: [PATCH] tar: fixed stage 0 build when glibc >= 2.16 is installed on the build host (see note!) Note: This patch was taken from the current 'master' branch of the opensde package repository. The only difference is that here we only apply this patch at toolchain stage (aka stage 0). original commit: 8c9f1a8254ccc0961c5c50c94876f1e00c1402c5 tar: fixed to build with glibc 2.16 where 'gets' is not defined in the gnulib anymore --- ...ar-1.26-glibc-2.16-no-gets.patch.toolchain | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 archiver/tar/tar-1.26-glibc-2.16-no-gets.patch.toolchain diff --git a/archiver/tar/tar-1.26-glibc-2.16-no-gets.patch.toolchain b/archiver/tar/tar-1.26-glibc-2.16-no-gets.patch.toolchain new file mode 100644 index 000000000..938543351 --- /dev/null +++ b/archiver/tar/tar-1.26-glibc-2.16-no-gets.patch.toolchain @@ -0,0 +1,34 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../tar/tar-1.26-glibc-2.16-no-gets.patch.toolchain +# Copyright (C) 2012 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Since the 2.16 release of the glibc, 'gets' is not defined in the gnulib anymore + +This is a hack until upstream pulls in a new gnulib version + +Within gnulib this issue was already adsressed in the following commit: + +http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c80734 + +--- tar-1.26/gnu/stdio.in.h.orig 2012-08-05 05:24:10.869839261 +0200 ++++ tar-1.26/gnu/stdio.in.h 2012-08-05 05:24:27.415681108 +0200 +@@ -164,7 +164,6 @@ + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@