Skip to content

sagemath: keep GAP startup probe output on three lines - #109

Closed
dimpase wants to merge 1 commit into
mainfrom
fix/sagemath-gap-probe-wrapping
Closed

dimpase wants to merge 1 commit into
mainfrom
fix/sagemath-gap-probe-wrapping

Conversation

@dimpase

@dimpase dimpase commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Importing Sage during the documentation build in #67 fails when Homebrew's temporary home directory makes a GAP root path long enough to wrap. GAP inserts a backslash and newline into kernel-info.g output; Sage's kernel_info() expects exactly three lines and raises ValueError: too many values to unpack.

Disable stdout formatting in the small GAP probe before it prints its machine-readable fields. This affects only the probe subprocess, which immediately exits. Bump sagemath to revision 1 and rebuild its bottles. This PR changes only that formula.

Add a formula regression test that runs the installed probe with a long root path, requires exactly three output lines and checks the complete path survived. It runs with both macOS Python versions and Linux Python 3.14 alongside the existing runtime tests.

Validation: reproduced locally with the exact beta6 probe and GAP 4.16.1; the original emits six lines and the corrected probe emits three. Ruby syntax, Homebrew style and whitespace checks pass. Full normal three-platform CI and fresh bottle audits are required before publication. The documentation build will be rerun against the resulting runtime bottles.

@dimpase
dimpase force-pushed the fix/sagemath-gap-probe-wrapping branch from 847adcb to 187f3fd Compare November 9, 2026 09:23
@github-actions github-actions Bot closed this in 40351ca Nov 9, 2026
@github-actions
github-actions Bot deleted the fix/sagemath-gap-probe-wrapping branch November 9, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant