From nobody Fri Jul 16 15:50:04 2021 X-Original-To: freebsd-current@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 753C3127D249 for ; Fri, 16 Jul 2021 15:50:13 +0000 (UTC) (envelope-from me@cameronkatri.com) Received: from cameronkatri.com (cameronkatri.com [206.189.178.249]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4GRG0N3LJzz4cqZ for ; Fri, 16 Jul 2021 15:50:12 +0000 (UTC) (envelope-from me@cameronkatri.com) Received: from FreeBSDY540 (c-73-84-80-103.hsd1.fl.comcast.net [73.84.80.103]) by cameronkatri.com (Postfix) with ESMTPSA id 9F2B34166D for ; Fri, 16 Jul 2021 11:50:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cameronkatri.com; s=20201109; t=1626450606; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1ilCrfqxK/LFghkOSJYD7I/g0d2yb8S8zjNY86itnX0=; b=IIcfo7nwrbS9GO1KCm9eqwA5oQnfiyAo47xklOBgag2L7UW1IO1/FbXsSUQ79AS55+rqD6 L3OIMQWqp+XTgDq6jgb0q2T1nXQXXJDG/Wvsc8YdgHOW2gxIawBHpJf4eSf6wtdlNYyv9W xQoVW1UAN2P3ZjP56VNqVuZ27Z3TZhQ= Date: Fri, 16 Jul 2021 11:50:04 -0400 To: freebsd-current@freebsd.org Subject: Re: PATH: /usr/local before or after /usr ? Message-ID: <20210716155004.d2qiciqkipmegs3j@FreeBSDY540> References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lm36po4aimq2unay" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4GRG0N3LJzz4cqZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cameronkatri.com header.s=20201109 header.b=IIcfo7nw; dmarc=pass (policy=reject) header.from=cameronkatri.com; spf=pass (mx1.freebsd.org: domain of me@cameronkatri.com designates 206.189.178.249 as permitted sender) smtp.mailfrom=me@cameronkatri.com X-Spamd-Result: default: False [-4.54 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[cameronkatri.com:+]; DMARC_POLICY_ALLOW(-0.50)[cameronkatri.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[206.189.178.249:from]; ASN(0.00)[asn:14061, ipnet:206.189.176.0/20, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RECEIVED_SPAMHAUS_PBL(0.00)[73.84.80.103:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; R_DKIM_ALLOW(-0.20)[cameronkatri.com:s=20201109]; FREEFALL_USER(0.00)[me]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.948]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[206.189.178.249:from:127.0.2.255]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] Reply-To: me@cameronkatri.com From: Cameron Katri via freebsd-current X-Original-From: Cameron Katri X-ThisMailContainsUnwantedMimeParts: N --lm36po4aimq2unay Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 16, 2021 at 09:01:49AM -0600, Alan Somers wrote: > FreeBSD has always placed /usr/local/X after /usr/X in the default PATH. > AFAICT that convention began with SVN revision 37 "Initial import of 386B= SD > 0.1 othersrc/etc". Why is that? It would make sense to me that > /usr/local/X should come first. That way programs installed from ports c= an > override FreeBSD's defaults. Is there a good reason for this convention, > or is it just inertia? The biggest example I can think of this being a problem is having binutils installed, it will cause any calls to elftoolchain or llvm-binutils to go to GNU binutils which is platform specific, so cross compiling, or LTO could be broken because of using GNU binutils which don't support cross compiling or LTO. - Cameron Katri > -Alan --=20 Cameron Katri Email: me@cameronkatri.com PGP Fingerprint: 7D3B36CEA40FCC2181FB6DCDBAFFD97826540F1C --lm36po4aimq2unay Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEfTs2zqQPzCGB+23Nuv/ZeCZUDxwFAmDxqqwACgkQuv/ZeCZU Dxy7bgf7Be69zLgkwiKAboRESi7AY7gDQoJvilWRonc3fEOrfZ/YacajrcVQsFtP XfKbZHF+EjJIFK3POeD++S6nJZdyhzhjRSs3XpBftJY1EmeojR1sMAa7vIl1d7mx Gg0ac7zZWI2CGr+2Pw8Z9dt06g+skbQ9v3eu3pTGtZw8APNYbYrfXYOWckmnXIAw bMrohjfl6NOToY+/HBddaHZmN9g3mxgjqiJWWjtz2c4hDUebsgLRGMqfjoodh2T2 ledB9PJwhR8yzebButLhpQh9bajdZYaJuFv5zxBlFsNd2TgDETb6gclcP+2shUAc lWj2nzVoVOWHm/1tvpQgETcNLXcKdw== =a1Uw -----END PGP SIGNATURE----- --lm36po4aimq2unay--