Files
RedBear-OS/local
vasilito 6870429b21 libdrm: migrate to Red Bear fork; apply redox patches in-tree
Migrate the libdrm recipe from the tar+patches shape (redox.patch + four
P1-P4 patches from local/patches/libdrm/) to a Local source pointing at
the new Red Bear fork at local/sources/libdrm/. The fork is based on
upstream libdrm 2.4.125 (https://gitlab.freedesktop.org/mesa/libdrm) and
already has the full redox.patch series applied in-tree.

The P1-P4 patch files referenced from the previous recipe
(P1-drm-ioctl-bridge, P2-drm-get-pci-info, P3-drm-get-version-driver-name,
P4-drmGetDeviceFromDevId-redox) were already merged into redox.patch and
no longer existed in local/patches/. Consolidating everything into a
single in-tree fork is the durable form per the FULL FORK PRINCIPLE.

The fork's redox divergence covers:
  - include/drm/drm.h: include <sys/ioctl.h> on __redox__ instead of
    <sys/ioccom.h>
  - xf86drm.h: Redox-aware ioctl type definitions
  - xf86drm.c: major()/minor()/makedev() macros from musl for __redox__,
    open_memstream fallback path (returns NULL with diagnostic on
    __redox__), redox_drm_write_all helper, and the drmOpen /
    drmGetDeviceFromDevId / etc. rewrites that dispatch through scheme:
    paths on Redox
  - xf86drmMode.c: Redox shim for drmModeGetResources /
    drmModeGetConnector / etc. and the mode probing path
  - xf86drm_redox.h: new header providing the Redox-side helper API
    (open scheme:, drm fd adaptation, dev_t packing) used by xf86drm.c

Recipe changes:
  - source: tar + patches list -> Local { path = '../../../../local/sources/libdrm' }
    (the recipe lives under both recipes/wip/x11/libdrm and
    recipes/libs/libdrm symlinks into local/recipes/libs/libdrm; the
    four-.. path resolves correctly from both locations to
    local/sources/libdrm).
  - version: bumped to 0.2.3 (Red Bear fork tracking upstream 2.4.125).
  - description: marked v6.0 2026 Red Bear fork.
  - removed: redox.patch and source/ / source.tar / target/ artifacts
    under the recipe directory; they are no longer referenced and the
    fork is the single source of truth.

Verified: ./target/release/repo cook libdrm (with
REDBEAR_ALLOW_PROTECTED_FETCH=1) builds successfully and publishes
libdrm 0.2.3 to repo/x86_64-unknown-redox/ with the fork's commit
identifier pinned.
2026-06-09 15:25:35 +03:00
..