Page MenuHomeFreeBSD

base/*: Remove the base ports to install an external toolchain in /usr.
ClosedPublic

Authored by jhb on Feb 13 2023, 7:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 8:12 AM
Unknown Object (File)
Mar 22 2024, 5:48 PM
Unknown Object (File)
Dec 22 2023, 11:58 PM
Unknown Object (File)
Dec 21 2023, 9:25 PM
Unknown Object (File)
Dec 14 2023, 4:46 AM
Unknown Object (File)
Nov 3 2023, 4:10 PM
Unknown Object (File)
Nov 2 2023, 3:11 PM
Unknown Object (File)
Nov 2 2023, 3:11 PM
Subscribers

Details

Summary

This was originally motivated for providing a native toolchain for
platforms not supported by the in-tree LLVM toolchain. Now, however,
all of our current platforms are well supported by the in-tree LLVM
toolchain. In addition, these ports required additional maintenance
beyond the existing devel/binutils and devel/freebsd-gccX ports. A
more sustainable path if we need this in the future is probably to
have simple wrappers for /usr/bin/cc and other binaries in /usr that
redirect to binaries provided by the existing devel/ ports.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Feb 13 2023, 7:39 PM

I know there is also some stuff in ports/Mk for things like CROSS_TOOLCHAIN, etc. That is potentially useful for other cross-building setups though, but I'm not sure if there any other base/ specific bits in other parts of the tree? (Also, if we do want to remove CROSS_TOOLCHAIN and friends from Mk/, I'd rather @bapt or someone else more experienced in Mk/ handle that.)

In D38561#877328, @jhb wrote:

I know there is also some stuff in ports/Mk for things like CROSS_TOOLCHAIN, etc. That is potentially useful for other cross-building setups though, but I'm not sure if there any other base/ specific bits in other parts of the tree? (Also, if we do want to remove CROSS_TOOLCHAIN and friends from Mk/, I'd rather @bapt or someone else more experienced in Mk/ handle that.)

I'd like to preserve some cross building support so we have a way to cross bootstrap llvm packages. D29236 was a stab at making CROSS_TOOCHAIN work for cmake (and seems to have been sufficient for LLVM with a a couple years ago with a CMAKE_TOOLCHAIN_FILE).

This revision is now accepted and ready to land.Feb 13 2023, 9:12 PM