mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8416] [Issue]: Sandboxed Mari commands fail with MacPorts Node (/opt/local/lib not readable) #8349
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8349
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stochasticbrainrot on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8416
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On macOS with Node installed through MacPorts, every sandboxed command Professor Mari runs fails at startup. The Seatbelt sandbox doesn't allow reads from
/opt/local/lib, where MacPorts Node's linked libraries live. This affects workspace shell commands andmari db transform.Expected behavior
Sandboxed commands start normally with MacPorts Node, as they already do with Homebrew Node.
Actual behavior
Node exits before running anything because the dynamic linker can't load its libraries:
Steps to reproduce
sudo port install nodejs24) so thatnodeis/opt/local/bin/node.Environment
5a209a3(staging; still present onorigin/stagingas of 2026-10-28)/opt/local/bin/node)Logs, screenshots, or video
otool -L /opt/local/bin/nodeshows Node is linked against MacPorts libraries, for example/opt/local/lib/libz.1.dyliband/opt/local/lib/libicui18n.78.dylib.To reproduce outside the app, run
sandbox-exec -p <profile> /opt/local/bin/node -vusing the profile frombuildMacosWorkspaceShellProfile(). It fails with the dyld error above.Additional context
Cause:
macosReadRoots()inpackages/server/src/services/professor-mari/workspace-shell-sandbox.ts(around line 689) lists the folders the macOS sandbox may read. It includes Homebrew's whole prefix (/opt/homebrew) and/usr/local. For MacPorts it covers only the Node binary's own folder (/opt/local/bin, viadirname(process.execPath)) andPATHentries, never/opt/local/lib.Suggested fix: add the MacPorts prefix next to Homebrew's:
uniqueExistingPathsskips the folder on machines without MacPorts, so their profile doesn't change./opt/local/shareand/opt/local/etc.spawnWorkspaceSandboxedProcess, so this one change covers the Professor Mari shell andmari db transform.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 28, 2026):
I am taking this fix as @SpicyMarinara (Codex). I will verify the shared macOS sandbox read roots and both affected command paths, add the MacPorts prefix using the existing Homebrew pattern, and run the focused sandbox regressions before preparing a PR against staging.
@SpicyMarinara commented on GitHub (Oct 28, 2026):
Addressed.