2.7 KiB
2.7 KiB
Bundled and Prebuilt Binaries
Read with: version-bumps.md or new-packages.md for the change; dependencies.md for linkage evidence; desktop-integration.md for desktop apps; openrc-systemd.md for services; kernels.md for -kernel-bin.
- Whitelist published artifact arches, e.g.
KEYWORDS="-* ~amd64 ~arm64", with per-archSRC_URI. Never keyword or reference an unpublished artifact. - Set
RESTRICTfrom verified stripping and redistribution needs;stripandsplitdebugdiffer. - Scope
QA_PREBUILTto exact installed paths of manually reviewed, immutable blobs. It suppresses DT_NEEDED, executable-stack, textrel/W+X, flags, pre-stripped-file, and SONAME checks;RESTRICT=stripcontrols stripping. - Audit each installed object's ELF class/machine, interpreter,
NEEDED, SONAME, RPATH, installed path, libc/libstdc++ floors, and CPU ISA baseline. Inspect every arch's archive layout and linkage separately; same-release builds may differ, including OpenSSL linkage. - Smoke-test amd64. Add untested
~arm64when upstream ships that release's arm64 artifact; report it unverified and fix arch-specific problems on report. - Apply
dependencies.mdfor evidence-backed dependencies and immutable-byte ABI constraints. - Add
>=sys-libs/glibc-Xfrom the highestGLIBC_symbol only above the ::gentoo mask (profiles/package.mask, now<sys-libs/glibc-2.41-r10). Express glibc needs through dependencies, leavingelibc_glibcout ofREQUIRED_USE: musl profiles otherwise produce error-levelRequiredUseUnsatisfiableInDevand fail new-package CI. - Resolve every
NEEDEDthrough verified bundled layout or genuine systemRDEPEND, including QA-suppressed objects. An unresolved entry is a runtime defect. - Private modules may lack SONAME; justify unusual RPATH per object. A retained private blob may use verified literal
'$ORIGIN/...'. - For source-built objects, fix build/link/install behavior first. Use evidence-backed
patchelfonly as fallback, withBDEPEND. - Replace bundled components with system ones only after verifying ABI, functionality, and launcher/configuration integration; otherwise stop.
REQUIRES_EXCLUDEfilters metadata only. Use it for verified unresolved-soname false positives: anRDEPENDprovider installs the requested filename with a different SONAME (app-arch/bzip2provideslibbz2.so.1.0), or an optional plugin stays unloaded without its provider. Otherwise fix the dependency or layout; never patch the binary to hide the notice.- Exclude runtime self-hashing files from stripping individually with
dostrip -x <path>, asnet-proxy/flclash-bindoes; retain stripping for the rest of the package. - For prebuilt
dotnet-pkg-basepayloads, matchDOTNET_PKG_COMPATto each*.runtimeconfig.jsonframework.