Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2021 11:50:04 -0400
From:      Cameron Katri via freebsd-current <freebsd-current@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: PATH: /usr/local before or after /usr ?
Message-ID:  <20210716155004.d2qiciqkipmegs3j@FreeBSDY540>
In-Reply-To: <CAOtMX2g3G0nFCXGoWo14d1iwOisBUBAom6=v_gTHfJOoT3mJdw@mail.gmail.com>
References:  <CAOtMX2g3G0nFCXGoWo14d1iwOisBUBAom6=v_gTHfJOoT3mJdw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210716155004.d2qiciqkipmegs3j>