From patchwork Sun Sep 9 11:14:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 967741 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.137; helo=fraxinus.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="VA26+Joz"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 427T8w711bz9rxp for ; Sun, 9 Sep 2018 21:14:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 884C184499; Sun, 9 Sep 2018 11:14:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zl2GwaPwc33C; Sun, 9 Sep 2018 11:14:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EDECE8449D; Sun, 9 Sep 2018 11:14:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 0237D1C2241 for ; Sun, 9 Sep 2018 11:14:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id F360A8449D for ; Sun, 9 Sep 2018 11:14:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c3MOXkHSFvH2 for ; Sun, 9 Sep 2018 11:14:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BFE9984499 for ; Sun, 9 Sep 2018 11:14:35 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id s14-v6so10001492wrw.6 for ; Sun, 09 Sep 2018 04:14:35 -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; bh=kqiLEJAxBf06UsqhehmMunPNTjgN5WvASssjDwffqWk=; b=VA26+JozZIp00UWIHdmdPsiucKnI8ZJhzNwNGutSWubWp/t79oTcsWdS201Cycz8QR WgeSPyHWIsBlwTHOpxs7IQ0F/Fgoq8vcbvHPETCSvknIcqnKEKd4zxl/jjyfGcLvvqdG jBGgO9iSyQnNxG01YkDIl/n0fdERWTNW+FWDBA+qZPrya6Jzu6gQ11BbJZxPb+BCB2Ou wuVnCpJBCSe2K1W6XuWgbAGGwNiepHnXOrIHLVIbncwxp+caXM5tSujldVhEie3Z7ex7 w/ZOFYfZaif0OgxHPstJhQxAH9CQwV3v6u5Yh394SHaqLQTTcd9mK457Gscz5e6E54Jl i16Q== 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; bh=kqiLEJAxBf06UsqhehmMunPNTjgN5WvASssjDwffqWk=; b=bruv5+ALBaOTE0RapxHTzu1dGP++DsmyeAQ4jsmaywzj9FCHU7+TYwm1HEk6gcB+tY +Y13zcWe34nG2odKIxtqKFVSq1xVuXYupbHxN9j4yfYg1dnnZHcZfXxGPfrMC74tSh95 LbTPUhhciILx2z3mtu6xOG9zAVufPpqjLJTq9rIBfpa/mhjj+730fs0iTHlYuex60Quq Wnw4wWA+NafAe1jszCjVeKE3HRyM/BZ7aFivZPUcdJxF7xTEUIw2RRzRHS3sbfXvYOvL jPojmPSR5IzQRxF4JsD44b+Kg8fBmLKb14yk0gvROtdCVwTyGnV5zWCXpKwruIPYATFu EmKA== X-Gm-Message-State: APzg51B/0fGhdAbUnYmhegxU1GfPoG3iQxtNHkwO+4/PtX46Myv0sUtT RWnCE+/U2Ea5aDpCAdtSiGYE/SED X-Google-Smtp-Source: ANB0VdbH8+M99z4Ab+b/f98IxoPYliBw/qNP1lud53a7h6GfwzbrPlgZiRVaIL576DH0fhqwNOcLIg== X-Received: by 2002:a5d:45cb:: with SMTP id b11-v6mr11389969wrs.122.1536491673676; Sun, 09 Sep 2018 04:14:33 -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 u4-v6sm8582815wro.47.2018.09.09.04.14.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Sep 2018 04:14:32 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 9 Sep 2018 13:14:28 +0200 Message-Id: <20180909111428.28570-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Buildroot] [PATCH] 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/0006-gdb-common-utils-use-stat-privided-by-the-system.patch diff --git a/package/gdb/8.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch b/package/gdb/8.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch new file mode 100644 index 0000000000..448e716388 --- /dev/null +++ b/package/gdb/8.1/0006-gdb-common-utils-use-stat-privided-by-the-system.patch @@ -0,0 +1,37 @@ +From e38a28a537652115f8ab78089bc35d351e7c32f6 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 +