From patchwork Tue Sep 21 20:51:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1530891 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=EqOt3Gfs; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@lists.buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4HDYW41J3Xz9sXV for ; Wed, 22 Sep 2021 06:51:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 11B7283E96; Tue, 21 Sep 2021 20:51:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ygIEL2xqlnrU; Tue, 21 Sep 2021 20:51:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 64D7683E7A; Tue, 21 Sep 2021 20:51:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 447B91BF47E for ; Tue, 21 Sep 2021 20:51:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 40A3240311 for ; Tue, 21 Sep 2021 20:51:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OmUYwDEiZiTH for ; Tue, 21 Sep 2021 20:51:20 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by smtp4.osuosl.org (Postfix) with ESMTPS id D98AD402FC for ; Tue, 21 Sep 2021 20:51:19 +0000 (UTC) Received: by mail-ed1-x531.google.com with SMTP id h17so1312942edj.6 for ; Tue, 21 Sep 2021 13:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UXQef6nBCjp/pW7EFwXHntgTiojCVByqd+I7jTB9n2A=; b=EqOt3GfsroIEDJxQNuUZXa0B8BV7r6INF0Tw2uNfKBtTEh58U7/JAxcslWYDY6oEeQ qbV7IKpGAG3gsOIE5gTMBTPuJ2LmKipyfD4Z31yn8uCi4A2k+YucnSzImOqZ0mNce1dh yu3hyk0U/9h1y9EfyspCzEeKknAjej9GpYF/yJG0uwTbSlwZ8EHotnqIoAmCyKMGzBQF UWxnRPAeDGJRdPYF9v1iWl5X1SdNnrNUaDW4Ior0+YiMK7zXVOKLniJgLjNLzL2eSvS1 ZNRPXdaV13BArKRFwyzuBV1oOk5p1/l/dHFNurUwwfITIPbCVwaPh+M1zexFP+PbFefR cVqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UXQef6nBCjp/pW7EFwXHntgTiojCVByqd+I7jTB9n2A=; b=sou3UKJTSr1nNiIAqwhTG9IB2i+KrkbXNJV8Q9H1OB0XRvNjfwrFzf2NfGxlubDiXz ZpTmhYAJE8H9pjGndWQVy/QnrkEixGnSFov9zSOi++s8lAluhv3W6SLga7SLNzDDT6Zf uoRbt6iD/mEc5riT2tpjB/pKvzT7CfnYEzyBRdqlj0ekogz32YAk/XuhU+l7G6aHNW8E E2IylsBoCebn8HhcuM/NDERU32vrglfLfR8ea99Q4tFIgwM3Nt8Wkthxm16e49otd5vJ EXwloPklHHpV1zkFhi4wnf1RdJYi9Hpy86BqqPFNnqcw99PoBnzO01OrrnWkncZrYC2v IM/g== X-Gm-Message-State: AOAM530eFy/VUqP/cu2xdYtUnCfWGpqhp4fWTOEtNk+cyh6s9m8Xu6hW 1Nm6cofirJcf7jeU5e+lvftL5jt/dTU= X-Google-Smtp-Source: ABdhPJwrcUg0dn2zoJJ2EC/2GOhvA/3+jTO4JQmimC3cT02o8Kk4JNWyMsIa0N73FUodw4ICXvU52Q== X-Received: by 2002:a05:6402:5206:: with SMTP id s6mr38146343edd.135.1632257478062; Tue, 21 Sep 2021 13:51:18 -0700 (PDT) Received: from localhost.localdomain (gw1.ms-free.net. [185.243.124.10]) by smtp.gmail.com with ESMTPSA id f18sm15093edt.60.2021.09.21.13.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 13:51:17 -0700 (PDT) From: Petr Vorel To: buildroot@buildroot.org Date: Tue, 21 Sep 2021 22:51:10 +0200 Message-Id: <20210921205112.39176-1-petr.vorel@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [Buildroot] [RFC PATCH 0/2] use `command -v' instead of `which' X-BeenThere: buildroot@lists.buildroot.org 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: , Errors-To: buildroot-bounces@lists.buildroot.org Sender: "buildroot" Hi, I've tested the patchset on dash as the default shell. But it certainly deserve more people to have look and test. NOTE: If accepted, we might want to use `command -v' also in scripts: $ git grep '$(which' package/fakedate/fakedate:for date in $(which -a date |tac); do package/transmission/S92transmission:DAEMON=$(which $NAME) Kind regards, Petr Petr Vorel (2): make: support: use `command -v' instead of `which' support/dependencies: don't check for `which' Makefile | 22 +++++++++---------- package/Makefile.in | 8 +++---- support/dependencies/check-host-bison-flex.mk | 4 ++-- support/dependencies/check-host-cmake.sh | 2 +- support/dependencies/check-host-gzip.sh | 2 +- support/dependencies/check-host-lzip.sh | 4 ++-- support/dependencies/check-host-python3.sh | 2 +- support/dependencies/check-host-tar.sh | 4 ++-- support/dependencies/check-host-xzcat.sh | 4 ++-- support/dependencies/dependencies.sh | 18 +++++++-------- .../pkg-toolchain-external.mk | 2 +- 11 files changed, 35 insertions(+), 37 deletions(-)