From patchwork Wed Dec 18 20:39:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1212783 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PFmAh0b1"; 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 47dRgs2xPbz9sP3 for ; Thu, 19 Dec 2019 07:39:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E78C486D80; Wed, 18 Dec 2019 20:39:17 +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 J0gWv1fDInZZ; Wed, 18 Dec 2019 20:39:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2A86A86D8D; Wed, 18 Dec 2019 20:39:16 +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 E05081BF9AD for ; Wed, 18 Dec 2019 20:39:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D8F3A87E63 for ; Wed, 18 Dec 2019 20:39:11 +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 qVxib3jmvTeu for ; Wed, 18 Dec 2019 20:39:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by hemlock.osuosl.org (Postfix) with ESMTPS id 429B588345 for ; Wed, 18 Dec 2019 20:39:11 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id z3so3747487wru.3 for ; Wed, 18 Dec 2019 12:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0m1HhzpHWaaYOqL8ESD4pT71/OZVesygqQ/0ixpGdZ0=; b=PFmAh0b1XLCJZGN6nZdLpv4zLwZ8k5N2AHACbgVMLL7G1t7Nqvooyaig0XiRwBPHMK v6k8Xb3wM4QhcMh2c54+Cj5w2LUASWvDPCHOYRFVFebX1wqu6awXmgemgV8rxDacHE/i CjzDjC4RxmSn4cH/n6IoBBFZR2IOY14PHQlxWSOfNQmOVZDA7BOQrn56A1OH7YKCNIt6 +NkTDX8V3sEt9MdU8iolti7JpIAdnWl8yjxG3UrVlK6TyXqr61JVMzcrVTnXq9Pu54NZ bJNRhxIImf+MmvfuTUamzxw/KNMZl4tSw03XMyK3A05tx0yr2ZfhzrUYpilqmcTJGWJm L6PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=0m1HhzpHWaaYOqL8ESD4pT71/OZVesygqQ/0ixpGdZ0=; b=Yt9eJ5xjddRXQzFmcQ05p8iISt9RqU/z2JTzTYLn2XFhmqPikTpMOZHmWAwpk0TLw/ LujfP8PRDedHglofip5w9H9TvKiDx9IlgxLzfNTwn5DEGocd3MQLqzrIiBXQAGsPnG80 kaNlHLdUeNz6GmjXPsG9lejEsmYq38/+sR/wXGSzUQS26Ton0A18k9nXwjWhzsqsyCMJ 9Og2tGb6LGjpotE7HworzEL4yx0BzMGatORxuu/Q/jeUaTrSDBLOR/8LLE8B1IXBqFUV gNx+XEWhfDbuda4ib3t1NDlKi+xkvG0lywP9dWzlEC3ZF5VZbMYJ0fEKxhhxT9FxWxjs hKFw== X-Gm-Message-State: APjAAAUhNiGCdKNn9olrLnsMKTSoFsWQIwknoDft9+bu7D58bSBXZU/9 3ostA3XPX/Ow6Xbga5VS7Z0pgK8X X-Google-Smtp-Source: APXvYqw7JsXMiL/axeRZFAB+76h1Ujj6Av1UWTxi0nddo2iYo11jC1ou9S+O0tkPVpuURSCaQ9WeBg== X-Received: by 2002:a05:6000:1241:: with SMTP id j1mr5264640wrx.26.1576701549521; Wed, 18 Dec 2019 12:39:09 -0800 (PST) Received: from scaer.home ([2a01:cb19:8b51:cb00:d010:e813:2e1b:ba63]) by smtp.gmail.com with ESMTPSA id w22sm3508758wmk.34.2019.12.18.12.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 12:39:09 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 18 Dec 2019 21:39:04 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/5] core/dependencies: check if we need to build our own host-coreutils X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E. MORIN" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Yann E. MORIN --- support/dependencies/check-host-coreutils.mk | 6 ++++++ support/dependencies/check-host-coreutils.sh | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 support/dependencies/check-host-coreutils.mk create mode 100755 support/dependencies/check-host-coreutils.sh diff --git a/support/dependencies/check-host-coreutils.mk b/support/dependencies/check-host-coreutils.mk new file mode 100644 index 0000000000..87a3f446ea --- /dev/null +++ b/support/dependencies/check-host-coreutils.mk @@ -0,0 +1,6 @@ +# Check whether the host's coreutils are up to date enough +# to provide 'ln --relative' and 'realpath'. + +ifeq (,$(call suitable-host-package,coreutils)) +BR2_COREUTILS_HOST_DEPENDENCY = host-coreutils +endif diff --git a/support/dependencies/check-host-coreutils.sh b/support/dependencies/check-host-coreutils.sh new file mode 100755 index 0000000000..4d36d74933 --- /dev/null +++ b/support/dependencies/check-host-coreutils.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Exit on the first error +set -e + +# Does ln supports the --relative/-r option? +ln --relative --help >/dev/null 2>&1 + +# Does realpath exist? +realpath --help >/dev/null 2>&1 + +echo OK