8ff9da2ff9
Per local/AGENTS.md Rule 2 (NO OVERLAY-STYLE PATCHES — AMENDED 2026), big external projects must NOT have source forks in local/sources/. PipeWire's Red Bear edits now live as external patches in local/patches/pipewire/, matching the established mesa, libdrm, and wireplumber migration pattern. The patch contains the redox_compat/ shim headers (byteswap.h, sys/mman.h) that bridge relibc gaps for the meson subprojects, the __redox__ guards in src/pipewire/mem.c for the memfd_create emulation on the redox ramfs scheme, and the __redox__ stubs in src/pipewire/thread.c for pthread_setname_np and sched_get_priority_min/max. It also includes the README-redbear.md fork gap analysis and a small number of build script adjustments for cross-compilation under the Redox toolchain. The local/sources/pipewire/ fork is preserved as a historical reference of the migration baseline but no longer used by the build system. A follow-up commit will remove it after we verify a clean rebuild from upstream git + the external patch. The recipe's REDBEAR_PATCHES_DIR uses ../../../.. (four dots) to correctly resolve to local/patches/pipewire/ from the recipe's depth (local/recipes/libs/pipewire/recipe.toml). The mesa and libdrm migrations shipped a path-count typo (one short); this recipe uses the correct depth per local/AGENTS.md.