[Midnightbsd-cvs] [MidnightBSD/mports] b844cc: Add headroom AI port and Magus phase fixes (#605)

Lucas Holt noreply at github.com
Tue Jun 2 17:12:10 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: b844cceca20392ab9827db9a5b35f8de491bb6ea
      https://github.com/MidnightBSD/mports/commit/b844cceca20392ab9827db9a5b35f8de491bb6ea
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M .github/workflows/claude-code-review.yml
    M Tools/lib/Magus/Port.pm
    M Tools/magus/ready_ports.sql
    M Tools/magus/schema.sql
    M Tools/magus/www/data/magus/index.cgi
    M archivers/Makefile
    A archivers/py-zstandard/Makefile
    A archivers/py-zstandard/distinfo
    A archivers/py-zstandard/files/patch-pyproject.toml
    A archivers/py-zstandard/pkg-descr
    M devel/Makefile
    A devel/py-annotated-doc/Makefile
    A devel/py-annotated-doc/distinfo
    A devel/py-annotated-doc/pkg-descr
    A devel/py-annotated-types/Makefile
    A devel/py-annotated-types/distinfo
    A devel/py-annotated-types/pkg-descr
    A devel/py-ast-grep-cli/Makefile
    A devel/py-ast-grep-cli/Makefile.crates
    A devel/py-ast-grep-cli/distinfo
    A devel/py-ast-grep-cli/pkg-descr
    A devel/py-fastuuid/Makefile
    A devel/py-fastuuid/Makefile.crates
    A devel/py-fastuuid/distinfo
    A devel/py-fastuuid/pkg-descr
    A devel/py-opentelemetry-api/Makefile
    A devel/py-opentelemetry-api/distinfo
    A devel/py-opentelemetry-api/files/patch-pyproject.toml
    A devel/py-opentelemetry-api/pkg-descr
    A devel/py-pydantic-core/Makefile
    A devel/py-pydantic-core/Makefile.crates
    A devel/py-pydantic-core/distinfo
    A devel/py-pydantic-core/pkg-descr
    A devel/py-pydantic2/Makefile
    A devel/py-pydantic2/distinfo
    A devel/py-pydantic2/pkg-descr
    A devel/py-typing-inspection/Makefile
    A devel/py-typing-inspection/distinfo
    A devel/py-typing-inspection/files/patch-pyproject.toml
    A devel/py-typing-inspection/pkg-descr
    M misc/Makefile
    A misc/py-headroom-ai/Makefile
    A misc/py-headroom-ai/Makefile.crates
    A misc/py-headroom-ai/distinfo
    A misc/py-headroom-ai/files/headroom.in
    A misc/py-headroom-ai/files/patch-cargo-crates_ort-2.0.0-rc.12_src_lib.rs
    A misc/py-headroom-ai/files/patch-crates_headroom-core_Cargo.toml
    A misc/py-headroom-ai/files/pkg-message.in
    A misc/py-headroom-ai/pkg-descr
    A misc/py-litellm/Makefile
    A misc/py-litellm/distinfo
    A misc/py-litellm/pkg-descr
    A misc/py-openai/Makefile
    A misc/py-openai/distinfo
    A misc/py-openai/files/patch-pyproject.toml
    A misc/py-openai/pkg-descr
    M textproc/Makefile
    A textproc/py-jiter/Makefile
    A textproc/py-jiter/Makefile.crates
    A textproc/py-jiter/distinfo
    A textproc/py-jiter/pkg-descr
    A textproc/py-tokenizers/Makefile
    A textproc/py-tokenizers/Makefile.crates
    A textproc/py-tokenizers/distinfo
    A textproc/py-tokenizers/pkg-descr
    M www/Makefile
    A www/py-fastapi/Makefile
    A www/py-fastapi/distinfo
    A www/py-fastapi/pkg-descr
    A www/py-starlette/Makefile
    A www/py-starlette/distinfo
    A www/py-starlette/pkg-descr
    A www/py-uvicorn/Makefile
    A www/py-uvicorn/distinfo
    A www/py-uvicorn/pkg-descr

  Log Message:
  -----------
  Add headroom AI port and Magus phase fixes (#605)

## Summary
- fix Magus ready/phase queries for flavor-aware phase tracking
- add the new misc/py-headroom-ai port and supporting Python dependency
ports
- add an rc.d script for Headroom proxy mode
- patch Headroom/ort to avoid unsupported ONNX Runtime binary downloads
on FreeBSD targets

## Validation
- bmake package NO_DEPENDS=yes in misc/py-headroom-ai
- bmake patch NO_DEPENDS=yes in misc/py-headroom-ai
- git diff --cached --check before the final Headroom build-fix commit

## Notes
- This branch intentionally includes the earlier Magus commits that were
already on misc/py-headroom-ai.
- portlint -C was attempted after building but scanned work-py311 build
artifacts and produced artifact noise, so it was not used as a pass/fail
signal.

## Summary by Sourcery

Add a new headroom-ai Python port with proxy support and required
dependencies, adjust Magus phase and ready-port handling to be
flavor-aware and fetch-gated, and patch embedded Rust/ONNX-related
crates for better compatibility on FreeBSD.

New Features:
- Introduce the misc/py-headroom-ai port, including optional proxy-mode
dependencies and rc.d service integration.
- Add new Python ports for FastAPI, Starlette, Uvicorn, Litellm, OpenAI
client, tokenizers, Jiter, pydantic v2 and core, OpenTelemetry API,
typing-inspection, annotated-doc, annotated-types, zstandard, fastuuid,
and ast-grep CLI.

Bug Fixes:
- Correct Magus ready-port views and queries to account for port flavor
and fetch-phase status when selecting ports and aggregating phase
statistics.
- Prevent the ort crate from attempting unsupported ONNX Runtime binary
downloads on FreeBSD by switching to dynamic loading and extending
platform conditionals.

Enhancements:
- Update Magus web UI phase statistics query to disambiguate status
column usage.
- Adjust third-party Python project pyproject.toml metadata and build
requirements for compatibility with the ports framework.

Build:
- Register the new Python ports in the relevant category Makefiles for
dependency resolution and bulk builds.

Deployment:
- Provide an rc.d script to manage headroom proxy mode as a system
service.

---------

Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list