Page MenuHomeFreeBSD

heir: Document SYSROOT conventions
ClosedPublic

Authored by imp on Jan 5 2022, 9:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 20 2024, 7:08 PM
Unknown Object (File)
Jan 14 2024, 6:08 PM
Unknown Object (File)
Dec 20 2023, 12:55 AM
Unknown Object (File)
Nov 27 2023, 9:22 AM
Unknown Object (File)
Nov 24 2023, 1:30 AM
Unknown Object (File)
Nov 23 2023, 7:42 AM
Unknown Object (File)
Nov 23 2023, 6:42 AM
Unknown Object (File)
Nov 22 2023, 1:25 AM

Details

Summary

Define a place for sysroot trees to live. This assumes they come from
the base in some way, though there's not yet a build/install/etc sysroot
target. Include the FreeBSD version so multiple verrsions can be
installed on one system (it also includes the whole uname version, so
one could, in theory, install variants like CheriBSD or whatever on the
same system as FreeBSD). Use MACHINE.MACHINE_ARCH to be consistent with
the release practices, /usr/obj and other naming conventions.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 5 2022, 9:56 PM

This seems viable, but I wonder where we envision the sysroots coming from and if it impacts the location?

share/man/man7/hier.7
570

This seems viable, but I wonder where we envision the sysroots coming from and if it impacts the location?

I'm unsure. I'm thinking that we'll eventually have a top-level make target to create them. That puts them
in /usr/share or /usr/lib somewhere. I'd expect this would be one of the optional packages to install once
we transition to pkgbase. I don't expect to have ports of them in the mean time, but if we did, they'd
land in the analogous /usr/local/share/sysroot/$VERSION/$MACHINE.$MACHINE_ARCH.

English LGTM. Can't attest to the rest.

share/man/man7/hier.7
570

Agree with that suggestion.

address brooks and Pau's concerns...

It seems like with pkgbase you want some sort of magic packages or re-rooted pkg repo support so you can get them from the specific target's pkg repo, but that's for another day.

This revision is now accepted and ready to land.Jan 7 2022, 4:37 PM
This revision was automatically updated to reflect the committed changes.