Read first
docs/development/licensing: which licences mix, and whydocs/self-hosting/toolchain: vendoring, the offline build, recipesdocs/verification/toolchain-gates: the gates that hold all of it
Rules a change must keep
- SlopOS is
GPL-3.0-or-later. No verbatim code or prose from a
GPL-2.0-only source (Linux, seL4, rust/kernel/**) or a CDDL one
(illumos). ABI numbers, layouts and register offsets are facts and free to
take; cite the specification or documented behaviour, never the
implementation file.
slibc/,slibc-core/andabi/areMIT OR Apache-2.0and stay
permissive: no GPL or LGPL code, no dependency on a GPL crate, this tree's
own included. A third-party crate there takes a slibc/NOTICE entry.
- A font or the CA bundle loads at runtime as its own file, licence text
beside it. Never include_bytes! one into a shipped binary; the sites in
font/src/ stay #[cfg(test)].
- Third-party code linked into a shipped binary takes a
NOTICE.mdentry;
an MIT OR Apache-2.0 crate elects MIT there.
- A build reads no registry: a new crate is a
Cargo.lockdiff, a `just
vendor and the NOTICE.md` entry, in one commit.
- A kernel crate carries
#![forbid(unsafe_code)]and declares noalloc
dependency. A crate under apps/ depends on slopos-appkit,
slopos-editor-core, slopos-shooter-core and slopos-image alone.
- A recipe pins an
httpstarball by SHA-256 and builds it as shipped, a
cargo one against its crate's lock with the ports in. Its
patch only teaches the target (see toolchain/AGENTS.md); a GPL-2.0-only
or CDDL recipe carries no patch.
- Git links no OpenSSL: nothing GPL-2.0-only may gain an Apache-2.0-only
library in its DT_NEEDED closure.
Checks
scripts/check_offline_build.sh --pins-only: lockfiles against the
vendored copies
just check-offline-build: both targets from an emptyCARGO_HOMEscripts/check_libc_license.sh: every crate the C library resolvesscripts/check_recipes.sh: recipe shape, patch grammar, licence closurecargo run -p slopos-xtask -- lint alloc-dep app-deps unsafe-outside-ostd
Not yet in the docs
Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.