Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=VBEltKOp; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=1E9IWOjF Received: by mail.netbsd.org (Postfix, from userid 605) id AAF4184EA4; Wed, 20 Mar 2024 15:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1710950396; bh=lfnpztowZ4dg2r+c07MP6QabiEdArkh5VHuRQWpRiSU=; h=Date:From:Subject:To:Reply-To:List-Id:List-Unsubscribe; b=VBEltKOpwCZM6t6UgGmRi0oqp8e257Y2DF862076WHNtKTG8XRcDM/faqFJ1JQ1Dc 02/3wlmtMy+b1JFgb3kcIi04pCRaK9/SR8pzutgl8MwwkMUgR/3ZnfO03Yhsu6kA9R p82hkzncvrSYrGrYyLi9b9rUmb6E6onoKyPI8HiU= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 9F1B084D4D for ; Wed, 20 Mar 2024 15:59:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id C3xB8ys3ZmN4 for ; Wed, 20 Mar 2024 15:59:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 10CEF84C13 for ; Wed, 20 Mar 2024 15:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1710950395; bh=lfnpztowZ4dg2r+c07MP6QabiEdArkh5VHuRQWpRiSU=; h=Date:From:Subject:To:Reply-To; b=1E9IWOjF3QvSKyzb6de51n4ioIUZSajZ+p+1j0Z/ssEx46HImX8lzTzbzWMUcG7Je Stpj4l4qUXot9Fr4FSStU8Auw65v8uWj8Wzdc2RZH6/DJ83p/HhCu+wgx51A9FHN7k 9StANGo8bMkozlmLEtZJA+WqC0BGJr1ksE/CXWb8= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0814AFA2C; Wed, 20 Mar 2024 15:59:55 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1710950394188830" MIME-Version: 1.0 Date: Wed, 20 Mar 2024 15:59:54 +0000 From: "Amitai Schleier" Subject: CVS commit: pkgsrc/mk/tools To: pkgsrc-changes@NetBSD.org Reply-To: schmonz@netbsd.org X-Mailer: log_accum Message-Id: <20240320155955.0814AFA2C@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1710950394188830 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: schmonz Date: Wed Mar 20 15:59:54 UTC 2024 Modified Files: pkgsrc/mk/tools: tools.Darwin.mk Log Message: macOS: fix false positives from xcrun --find. xcrun lately seems to include PATH in its search, which means programs that aren't part of Apple's developer tools get matched: :; xcrun --find mutt /opt/pkg/bin/mutt xcrun also has a cache, so this can produce even odder results: :; xcrun --find yacc /opt/pkg/bin/yacc :; env - xcrun --find yacc /opt/pkg/bin/yacc :; xcrun --no-cache --find yacc /opt/pkg/bin/yacc :; env - xcrun --no-cache --find yacc xcrun: error: unable to find utility "yacc", not a developer tool or in PATH Since xcrun has had the "--no-cache" argument dating back to at least the days of OS X 10.6.8 with gcc 4.2.1 and Apple clang 1.7, add it to "xcrun --find" commands (along with an empty PATH) for more deterministic results. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 pkgsrc/mk/tools/tools.Darwin.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1710950394188830 Content-Disposition: inline Content-Length: 1605 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/mk/tools/tools.Darwin.mk diff -u pkgsrc/mk/tools/tools.Darwin.mk:1.64 pkgsrc/mk/tools/tools.Darwin.mk:1.65 --- pkgsrc/mk/tools/tools.Darwin.mk:1.64 Mon Mar 11 14:11:24 2024 +++ pkgsrc/mk/tools/tools.Darwin.mk Wed Mar 20 15:59:54 2024 @@ -1,7 +1,9 @@ -# $NetBSD: tools.Darwin.mk,v 1.64 2024/03/11 14:11:24 schmonz Exp $ +# $NetBSD: tools.Darwin.mk,v 1.65 2024/03/20 15:59:54 schmonz Exp $ # # System-supplied tools for the Darwin (Mac OS X) operating system. +OSX_XCRUN= ${SETENV} PATH= /usr/bin/xcrun --no-cache + TOOLS_PLATFORM.[?= [ # shell builtin TOOLS_PLATFORM.awk?= /usr/bin/awk TOOLS_PLATFORM.basename?= /usr/bin/basename @@ -17,7 +19,7 @@ TOOLS_PLATFORM.bsdtar?= /usr/bin/bsdtar # CLT 15.3.0.0.1.1708646388 does not provide yacc. Check whether the # /usr/bin/yacc xcode-select stub's target exists before defaulting to it. .if !defined(OSX_PATH_TO_YACC) -OSX_PATH_TO_YACC_cmd= /usr/bin/xcrun --find yacc 2>/dev/null | \ +OSX_PATH_TO_YACC_cmd= ${OSX_XCRUN} --find yacc 2>/dev/null | \ sed -e 's|^/Library/Developer/CommandLineTools||' OSX_PATH_TO_YACC= ${OSX_PATH_TO_YACC_cmd:sh} .endif @@ -101,7 +103,7 @@ TOOLS_PLATFORM.ls?= /bin/ls # CLT 15.3.0.0.1.1708646388 does not provide m4. Check whether the # /usr/bin/m4 xcode-select stub's target exists before defaulting to it. .if !defined(OSX_PATH_TO_M4) -OSX_PATH_TO_M4_cmd= /usr/bin/xcrun --find m4 2>/dev/null | \ +OSX_PATH_TO_M4_cmd= ${OSX_XCRUN} --find m4 2>/dev/null | \ sed -e 's|^/Library/Developer/CommandLineTools||' OSX_PATH_TO_M4= ${OSX_PATH_TO_M4_cmd:sh} .endif --_----------=_1710950394188830--