From patchwork Sun Jul 22 13:28:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 172515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 4CFF32C0143 for ; Sun, 22 Jul 2012 23:32:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5B518A0660; Sun, 22 Jul 2012 13:32:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iwX7M9VhkZ1K; Sun, 22 Jul 2012 13:32:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C53FAA066B; Sun, 22 Jul 2012 13:32:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3320C8F753 for ; Sun, 22 Jul 2012 13:30:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AAA2B8F4E2 for ; Sun, 22 Jul 2012 13:30:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SXBu9q8iSBND for ; Sun, 22 Jul 2012 13:30:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id A25B58F531 for ; Sun, 22 Jul 2012 13:30:24 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id hm2so1496030wib.10 for ; Sun, 22 Jul 2012 06:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=EOxqU9K4xoR+vSMb4zLuitComj/QIwbUDtCqgqv9p0E=; b=AlMpjeqWu6faLID7owA2ryRn2Jj3W0CD6RVufCSVllqi+FdTnJsLYqOcKLEs+R3hgj kcej/4hWo6VKjxYsfqOiqJ+u1o50IX9scdwNrqzQyAQfvHlgriR3jER2DcsgeEQ+Z/T0 JFZfZNY3xIL7aakqkBevnmEeJyeEkxzU9QTFwlhJr+fOr+a1d+hc0iVxZgrJFzRYyACR fe99zgQBTn6kR39kyjU5vKT8EE5r9PouEV4mWGj+m7EEur/baOO5ipyMrXpoNWDEFmsI nqoNHU3T2dtCff8Sw+OfLb2afvIJIPQxXSiDvKw0R7K7WvEJP4bkj6PwVhnwJKD0VC7Y UjpA== Received: by 10.180.14.193 with SMTP id r1mr28687995wic.19.1342963824141; Sun, 22 Jul 2012 06:30:24 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id fb20sm16263469wid.1.2012.07.22.06.30.22 (version=SSLv3 cipher=OTHER); Sun, 22 Jul 2012 06:30:23 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 22 Jul 2012 15:28:38 +0200 Message-Id: <1342963719-1810-11-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1342963719-1810-1-git-send-email-s.martin49@gmail.com> References: <1342963719-1810-1-git-send-email-s.martin49@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] =?utf-8?q?=5BPATCH_10/11=5D_tar=3A_fix_build_with_gli?= =?utf-8?b?YmMgPj0yLjE2?= X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin create mode 100644 package/tar/tar-1.26-no-gets.patch diff --git a/package/tar/tar-1.26-no-gets.patch b/package/tar/tar-1.26-no-gets.patch new file mode 100644 index 0000000..fb9d188 --- /dev/null +++ b/package/tar/tar-1.26-no-gets.patch @@ -0,0 +1,47 @@ +Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. +No tar version synchronized with gnulib since [1] has been released yet. + +This patch avoids the following error occurs when building tar <=1.4.16 on host using +a glibc >=2.16: + +make[5]: Entering directory `/home/samuel/data/workspace/src/buildroot/master/output/build/host-tar-1.26/gnu' + CC areadlink.o + CC areadlinkat.o + CC argp-ba.o + CC argp-eexst.o + CC argp-fmtstream.o + CC argp-fs-xinl.o +In file included from argp.h:24:0, + from argp-eexst.c:27: +./stdio.h:479:1: error ‘gets’ undeclared here (not in a function) +make[5]: *** [argp-eexst.o] Error 1 +make[5]: *** Waiting for unfinished jobs.... +In file included from argp-fmtstream.h:29:0, + from argp-fs-xinl.c:28: +./stdio.h:479:1: error ‘gets’ undeclared here (not in a function) +make[5]: *** [argp-fs-xinl.o] Error 1 +In file included from argp-fmtstream.h:29:0, + from argp-fmtstream.c:35: +./stdio.h:479:1: error ‘gets’ undeclared here (not in a function) +make[5]: *** [argp-fmtstream.o] Error 1 + +References: +[1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 +[2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup + +Signed-off-by: Samuel Martin + +--- +diff -purN host-tar-1.26.orig/gnu/stdio.in.h host-tar-1.26/gnu/stdio.in.h +--- host-tar-1.26.orig/gnu/stdio.in.h 2012-07-21 21:17:12.392403084 +0200 ++++ host-tar-1.26/gnu/stdio.in.h 2012-07-21 21:18:27.991993525 +0200 +@@ -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 ++#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@