From nobody Mon Jan 15 02:24:27 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TCwvH5nHDz57LBX; Mon, 15 Jan 2024 02:24:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TCwvH4qYZz3x98; Mon, 15 Jan 2024 02:24:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705285467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7A6eO/xH3YkbKV+Jh/30nOi5guEGkB0IPo00BRzlHGk=; b=EzeMASGy34tmZTWxwxxiG7sUM/KFGzZI2LMhibomkWALwF5q58+7aBCYlpdiaijRq/By2h T/BYQ+f8sRjnmc3Q0JiLdTf/JvvfXt1btw8CoBEQcTnch496foYiUZJMfIWNC+jg+w2M4H IhqDEeNbnk/KVmrBMWMZ3hlU/9Znl+EOvIrjlwef6k8yAWXeX15JSVMG7AY90ZFUnXBJTy 9oaXyO8HhyX+d42DjD94rZHZMEGKmPvS9QrLOZFv6HRIhy5b6msKhqSGsUtALU4F0j1d2Q x2YMTSGp8DneWWqdRIOot3c2KX3avV4JFkQb6q3RF1zJcEHU8nvQVJ4tUq4Nog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705285467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7A6eO/xH3YkbKV+Jh/30nOi5guEGkB0IPo00BRzlHGk=; b=CQiH34JWk26Pvh55OWVkOnvhfNZjDcg3n63a8DukQkWKpQSRnLmrJ7L6BQr8IdTYpXT2GE xNZI252D2bwsJReplukIvWjR6jSeFDofScSRgsEnpDgDJddvK1eIOFss8BcfD8kEDwjop9 +4KL6hW5eeLg+Mj5EIelDrAPMTIYUmjlSj+z8asyzuoQyARZH5/oIibK3plEKbZxQXl1qk ijbSTSRpq9qQgeGVdZCQYG22ITKRSP0ht7LIwBRs0+92EcrjuMA4gtdjXo19OH5cRLfW/r Wedz/sqAqFf5uiyWe7zTGMUC7yeOIka7SnbvgO/b0IXUuqmthvd8avZOt5Xayg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705285467; a=rsa-sha256; cv=none; b=XYYG5LXTXLBxy8fb1BlCEa6NBrCKg/E3hVP8GVUF/jEEKi/qFjVWIZ8Dmf8XOtVmzqIIPB Yv8b/28hW70aWumHp7SaD+XxUlBzam3umL8BFyvtb3br6S4rVwtiZSMUPRR1Vlk8vydS6Z w+Ja0JJkuIcEtcR+8RphiyXiJ9+LZVxjCAj9Fq93GjN7yaa6w9TFK88moY0oIgNJ37gYL4 NaH+221ZqSgS+lumCh0kfxgDaX6TBuesy5Fzti7JjxnY9X6XE086iwjaCSiAo3Gx1Q0oJP R5K0H28n5r9BqIHMuL2+IAyVFOMGt0HZ4n4tKHXUMWS6lYFDYG/4ei8DLy0FjQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TCwvH3sN3zdyq; Mon, 15 Jan 2024 02:24:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40F2ORCm093487; Mon, 15 Jan 2024 02:24:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40F2OR6f093484; Mon, 15 Jan 2024 02:24:27 GMT (envelope-from git) Date: Mon, 15 Jan 2024 02:24:27 GMT Message-Id: <202401150224.40F2OR6f093484@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 3d939d967ad4 - main - build: Use ls -i | cut rather than stat -f %i to extract inode List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d939d967ad49f747b8b9db4fdec8086a7067582 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=3d939d967ad49f747b8b9db4fdec8086a7067582 commit 3d939d967ad49f747b8b9db4fdec8086a7067582 Author: Warner Losh AuthorDate: 2023-05-02 20:51:09 +0000 Commit: Warner Losh CommitDate: 2024-01-15 02:23:45 +0000 build: Use ls -i | cut rather than stat -f %i to extract inode ls -i dates back to 5th edition Unix and is more portable than the stat command, though %% is a newer shellism, it works on any shell that FreeBSD builds with. Sponsored by: Netflix --- Makefile.inc1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 34b49ee319ec..8a0073547ed0 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1059,8 +1059,8 @@ _cleanworldtmp: .PHONY .if ${USING_SYSTEM_COMPILER} == "yes" .for cc in cc c++ if [ -x ${WORLDTMP}/usr/bin/${cc} ]; then \ - inum=$$(stat -f %i ${WORLDTMP}/usr/bin/${cc}); \ - find ${WORLDTMP}/usr/bin -inum $${inum} -delete; \ + inum=$$(ls -i ${WORLDTMP}/usr/bin/${cc}); \ + find ${WORLDTMP}/usr/bin -inum $${inum%% *} -delete; \ fi .endfor .endif # ${USING_SYSTEM_COMPILER} == "yes"