Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp48425pxu; Tue, 1 Dec 2020 05:58:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuGqCIl2zo1nKt5GXd1IglIsqaG44S9mR0/wSrg6lhENDm8IU/nsQXbmW6ruO62bqCzPSc X-Received: by 2002:a17:906:1e0e:: with SMTP id g14mr3225981ejj.128.1606831081374; Tue, 01 Dec 2020 05:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606831081; cv=none; d=google.com; s=arc-20160816; b=fczQE0Ct+6u3I6/0gAVIDqA4rHtCPT5KdPiB/KazpApuOz62RwAAEXKbi9fy88xyje AxRg0AqjDbFuWOB8o8JsvPYkCrOQnZ+WWVlzORkhKjdZkm9AzCOWT6rr3stzDmVFNZd/ gDZhzwOdFA4HXUA836gFzqTbVJSCFm+k4nmGfNNfsuslLxYeriU475RpukLPqSqvCB8N 4h+n72krWM2O+LqX5NZWX0+swE2ZsttBWwrrjVN9BrzQNyENggxY0O7meas+RMQ/cezE cR8V4gZRVdUByz0IhpnsuhSDZiC+PhR7RuZKmNWfFJMiaMpJneBsFfgkNFRbAegYCAPK 03sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=Ok1QqgsbTvLJR9T2w9uzm16olUMbK7QKnvuiz2CLeqM=; b=Sz8HBK0mY7+5KyfEusLVR6Eo0plxWX1rSRG9XxABWyMRaFMCBFPr024bGfs9VOO44J E0UaeHQH+IGkqEGZbPefOgcPUC2IYHcgtc5n0+fzSNt36fBnP0HkGiKkWpOg/OAf96UQ xh8GmsHif7sh1og+hNLjNtZsYqdhEIDub5BN43eHy0uYjwbsFkpzFbHKgIqyq0tu6yJu BEJBiWwTWJ+ZfoOp1EsemaE/jQKNJ2/DDPgdfIkPAHFyVJqts1UaJF3aQaSVL1IkTOcs V4mz+N5fdaM0dkzu7OazpYmH3YZ9FNUWLnBk3RyssUX0G5m6GX1QButLQdOGMBjS+epC GbGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="qN/IjIZB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si981973ejc.434.2020.12.01.05.57.39; Tue, 01 Dec 2020 05:58:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="qN/IjIZB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391492AbgLANyi (ORCPT + 99 others); Tue, 1 Dec 2020 08:54:38 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:37562 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390730AbgLANyh (ORCPT ); Tue, 1 Dec 2020 08:54:37 -0500 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 0B1DrQTV021869; Tue, 1 Dec 2020 22:53:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 0B1DrQTV021869 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1606830807; bh=Ok1QqgsbTvLJR9T2w9uzm16olUMbK7QKnvuiz2CLeqM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qN/IjIZBhMZoBtAgolas/uVF3Rp/Hk0w0pMlmeOop7VUsl/YaBH2movBpJWDegVJA vnxeRoD6m2RKQZCbqbCKvRi38r+rGpKkt/67VyTCB0b1uhKJC4Q3zf05t0W9Wf+9gi zS2wc/t3UJnZQz5jD9p+lnnGB5g0gGxnL+Pk2clHnx+lEPcV6tT/qblqHk6BugwW0j wEoPSj9tVpVUlYOjGCnzilyrjyZUnHN+lX/5F1AvnO1l1PweA91a8/l7n64FAGEviY 3smNN36Wf4UfKU9sAdj7a4BEbKLtTU5MhX6UYu9WWFzIHQWIWZATgOza97Tb93vGyO m+29oJTO4+/bw== X-Nifty-SrcIP: [209.85.214.176] Received: by mail-pl1-f176.google.com with SMTP id bj5so1184179plb.4; Tue, 01 Dec 2020 05:53:27 -0800 (PST) X-Gm-Message-State: AOAM532H5py1JWCD8BMFJkeYbqoyMvvBzYj4o/FNnpa3guZzbA4gx5Sx gGcQ421QlcO6KJihLxKdotXHIII3PDr4XH9Qt18= X-Received: by 2002:a17:90a:5905:: with SMTP id k5mr2779502pji.198.1606830806327; Tue, 01 Dec 2020 05:53:26 -0800 (PST) MIME-Version: 1.0 References: <1606828650-29841-1-git-send-email-asmadeus@codewreck.org> In-Reply-To: <1606828650-29841-1-git-send-email-asmadeus@codewreck.org> From: Masahiro Yamada Date: Tue, 1 Dec 2020 22:52:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] ld-version: use /usr/bin/env awk for shebank To: Dominique Martinet Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 1, 2020 at 10:18 PM Dominique Martinet wrote: > > /usr/bin/awk is not garanteed to exist (and doesn't on e.g. nixos), > using /usr/bin/env to have it look in PATH is more robust > > Signed-off-by: Dominique Martinet > --- Both applied to linux-kbuild. Thanks. > I've been carrying these two patchs for local kernel development on > nixos for a while, I don't think it'd break anything for anyone so > might as well submit these -- please consider it :) > > scripts/ld-version.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh > index f2be0ff9a738..05476b8f8925 100755 > --- a/scripts/ld-version.sh > +++ b/scripts/ld-version.sh > @@ -1,4 +1,4 @@ > -#!/usr/bin/awk -f > +#!/usr/bin/env -S awk -f > # SPDX-License-Identifier: GPL-2.0 > # extract linker version number from stdin and turn into single number > { > -- > 2.28.0 > -- Best Regards Masahiro Yamada