Skip to content

Offer a Homebrew install route through the repository's own tap (refines #732) #787

Open

Description

@pithead-developer

What's the problem

There is no brew route. #732 asks for one, but macOS is marked deprecated (#493/#504), brew cannot do the root tuning (GRUB, hugepages, MSR) that RandomX needs, and Linuxbrew's prefix is user-owned.

What it impacts

macOS and Linuxbrew DIY users and the macOS support wording.

How I found it

#732 criteria, README.md:20-22, and rigforge.sh's own brew install (about line 945) and launchd path (_mac_plist, 3815). Uninstall and most verbs are Linux-only today.

How important is it

Low to medium: lowest-value channel for real mining, labelled best effort, ships after apt.

Acceptance criteria

  • scripts/build-homebrew-formula.sh renders Formula/rigforge.rb from Formula/rigforge.rb.in with the release tarball url and the sha256 from SHA256SUMS, failing if they disagree.
  • The formula installs the tree to libexec, writes a wrapper exporting the lib and state vars (state under brew var) with bash, jq and flock on PATH, and the marker with value brew; there is no service block and setup stays explicit.
  • brew tap p2pool-starter-stack/rigforge <repo url> then brew install works on macOS and Linux; test do runs an offline rigforge --version on both.
  • On Linux, setup under a brew tree is refused by the Refuse to render root-run units from a code tree writable by a non-root user #783 guard; a test proves it.
  • The release uploads a generated rigforge.rb beside the tarball with the tarball sha256; after the release completes, a job opens a PR from a fixed branch name updating Formula/rigforge.rb on main using the repository's bot app token (same repository, no cross-repo token), never a direct push; the formula is live only after that PR merges; the job is skipped for drafts and prereleases and when the bot is not configured.
  • The tap is added with an explicit URL: brew tap p2pool-starter-stack/rigforge , then brew install p2pool-starter-stack/rigforge/rigforge.
  • Install is inert, as with the .deb: caveats tell the user to run rigforge setup explicitly; brew upgrade is followed by a printed hint, never an automatic restart of a running miner (the 2026-11-20 auto-restart ruling applies to apt only).
  • README and getting-started replace "deprecated" for macOS with a best-effort policy and the degraded-feature list.

Possible solutions

Decided on 2026-11-20: in-repo tap installed by URL, formula generated by a build script and bumped by a bot PR, mirroring node-manager (Formula/.rb and Formula/.rb.in on main, release-asset formula, bot PR, explicit-remote tap). The separate homebrew-rigforge repo is rejected. Linux: macOS-only support, or Linuxbrew CLI-only behind the guard.

Activity

  1. added this to the v1.20.0 milestone on Nov 20, 2026
  2. added
    enhancement
    infra
    size:M
    on Nov 20, 2026
  3. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.22.0. Trimmed from v1.20.0 (update API only) per the owner. Install-route chain after the deb start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementinfrasize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions