cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
19 lines
1.1 KiB
ReStructuredText
19 lines
1.1 KiB
ReStructuredText
Notes for macOS
|
|
================
|
|
|
|
Mesa builds on macOS without modifications. However, there are some details to
|
|
be aware of.
|
|
|
|
- Mesa has a number of build-time dependencies. Most dependencies, including
|
|
Meson itself, are available in `homebrew <https://brew.sh>`__, which has a
|
|
Mesa package for reference. The exception seems to be Mako, a Python module
|
|
used for templating, which you can install as ``pip3 install mako``.
|
|
- macOS is picky about its build-time environment. Type ``brew sh`` before
|
|
building to get the Homebrew dependencies in your path.
|
|
|
|
Mesa's default builds with the Apple GLX uses Mesa as a front for the
|
|
hardware-accelerated system OpenGL framework, to provide hardware acceleration
|
|
to X11 applications on macOS running via XQuartz.
|
|
|
|
Mesa's Gallium drivers can be used on macOS by using the ``-Dgallium-drivers=<drivers>`` build option. Do not use with the previous software rasterizers options, instead add ``llvmpipe`` to the ``<drivers>`` list. Only software renderers and drivers that forward to other APIs can work, any linux hardware drivers will not work. For details on each driver's macOS support see their specific documentation.
|