Page MenuHomeFreeBSD

heir: Document SYSROOT conventions
ClosedPublic

Authored by imp on Jan 5 2022, 9:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 1, 9:53 AM
Unknown Object (File)
Wed, Nov 20, 5:27 AM
Unknown Object (File)
Wed, Nov 20, 4:14 AM
Unknown Object (File)
Oct 22 2024, 9:13 AM
Unknown Object (File)
Oct 14 2024, 5:28 PM
Unknown Object (File)
Oct 10 2024, 12:48 AM
Unknown Object (File)
Oct 9 2024, 1:27 AM
Unknown Object (File)
Oct 3 2024, 12:26 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.