From patchwork Sun Sep 9 16:37:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 967780 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="t9SRz9Hs"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 427cL82QL3z9s2P for ; Mon, 10 Sep 2018 02:38:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AF0F786506; Sun, 9 Sep 2018 16:38:03 +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 at7t6PyX022a; Sun, 9 Sep 2018 16:38:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 11C57864DF; Sun, 9 Sep 2018 16:38:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8B6C01C2361 for ; Sun, 9 Sep 2018 16:37:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 890E886147 for ; Sun, 9 Sep 2018 16:37:57 +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 JFsxT8ZMm0c7 for ; Sun, 9 Sep 2018 16:37:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by hemlock.osuosl.org (Postfix) with ESMTPS id 939FE86164 for ; Sun, 9 Sep 2018 16:37:56 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id s14-v6so10452191wrw.6 for ; Sun, 09 Sep 2018 09:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z7nG4I0HGYgGFV9kaF6kMTofE1bBKjHqE41AONQX9mg=; b=t9SRz9HsiW7sZB24n0wG0pUT2rfOaHFoP9jDP8kDg7OCnWw/JTNLBehihSI/OOQvH9 9NZayx4AQmC5GrKGvu/zC564J5irDRx9uL9943cong+d/BsiBoSGaEdixEGdwJGB/WPp 610AUS/E0TQo1BU3m9I/6M9JArJulFKwI4ttIX334Xxryc+UO4KfKx9zTMZpnSO4AUxa tbkvHGTvlaFFYoe42sCgxJhSklyqA9S7q1Xvjo38i1B2g/4sdku65oeuYxpb+IZ2aRZd 7yWx8CE6p3szekEP8wS+eLObTzs3HQAa4kXD1pKXAMr0IvchnZL1v0Ze0VyBDFBhm/Nx tawA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z7nG4I0HGYgGFV9kaF6kMTofE1bBKjHqE41AONQX9mg=; b=dbiGaT/xcYlmIIJfycZgkXLF41eAU3AB3zXQrY3KxCBTYYdt7/aD9BTv8FK4QwWADQ d4WaqM46hfn3f0dNcemXq/Vuba3rLsnUy+uQRSr/W75o0eEAKnMzgxwWZAvpj8lDHfOY KJ6DkelEiDcFGcK9YMYrYFj04W6CsSG+t4EdWTk2MFbxym30uFH9spmUwXBn5wV0rVs2 8vTYn6gipMAfImbFKDp9QIxy5RjQJ3qts7yl9/GIpXAFuGxypw1RYHDUq/ZaWR6i3b/W JtKoLvWyTDc0hDJw2HgxUnx59DMCeKytVjIM5ftfYVT6KGoY5OBkRUutYJmF9+Up7az9 aiCQ== X-Gm-Message-State: APzg51Cj/DTjOiCcqQJKN5DrDbN4AlENG46+6wIs709IW8G56X8Dwstk VIhEEqRgfeDQYhS76zFrwdd//uIx X-Google-Smtp-Source: ANB0VdZ0fBIfKOGWs9qdjjlRB8eetEPwOYaZjtKgoFlWG4M5QI1J/+eiZvEJqFN3sjXB4jxiEjS05Q== X-Received: by 2002:adf:a644:: with SMTP id k62-v6mr12289578wrc.78.1536511074680; Sun, 09 Sep 2018 09:37:54 -0700 (PDT) Received: from adeos.home (2a01cb000577e4007362e7db4e8430b1.ipv6.abo.wanadoo.fr. [2a01:cb00:577:e400:7362:e7db:4e84:30b1]) by smtp.gmail.com with ESMTPSA id 66-v6sm18784217wmw.34.2018.09.09.09.37.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Sep 2018 09:37:54 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 9 Sep 2018 18:37:50 +0200 Message-Id: <20180909163750.14196-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180909163750.14196-1-romain.naour@gmail.com> References: <20180909163750.14196-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH 2/2] package/gdb: use stat() privided by the system X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Use the same workaround [1] as gnulib use to get the original definition of stat. Otherwise with musl toolchains, gnulib try to use rpl_stat which is not defined. Fixes: https://gitlab.com/free-electrons/toolchains-builder/-/jobs/95552308 [1] http://git.savannah.gnu.org/cgit/gnulib.git/commit/lib/stat.c?id=c9d72f69bd201a1ab31464d91f234ea1817fe0e1 Signed-off-by: Romain Naour Cc: Thomas Petazzoni --- ...mon-utils-use-stat-privided-by-the-system.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/gdb/8.1.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch diff --git a/package/gdb/8.1.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch b/package/gdb/8.1.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch new file mode 100644 index 0000000000..650d963b9e --- /dev/null +++ b/package/gdb/8.1.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch @@ -0,0 +1,37 @@ +From a7848d4244ffa8db7bf4ab0d5152f57e71600420 Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Sun, 9 Sep 2018 12:53:34 +0200 +Subject: [PATCH] gdb/common-utils: use stat() privided by the system + +Use the same workaround [1] as gnulib use to get the original +definition of stat. Otherwise with musl toolchains, gnulib try to use +rpl_stat which is not defined. + +Fixes: +https://gitlab.com/free-electrons/toolchains-builder/-/jobs/95552308 + +[1] http://git.savannah.gnu.org/cgit/gnulib.git/commit/lib/stat.c?id=c9d72f69bd201a1ab31464d91f234ea1817fe0e1 + +Signed-off-by: Romain Naour +--- + gdb/common/common-utils.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c +index 80de826ba78..d3577c7ff5c 100644 +--- a/gdb/common/common-utils.c ++++ b/gdb/common/common-utils.c +@@ -20,7 +20,10 @@ + #include "common-defs.h" + #include "common-utils.h" + #include "host-defs.h" ++/* Get the original definition of stat. It might be defined as a macro. */ ++#define __need_system_sys_stat_h + #include ++#undef __need_system_sys_stat_h + #include + + /* The xmalloc() (libiberty.h) family of memory management routines. +-- +2.14.4 +