[MacPorts] #73375: claude-code: test phase fails
MacPorts
noreply at macports.org
Thu Jan 8 09:15:39 UTC 2026
#73375: claude-code: test phase fails
------------------------+-------------------------
Reporter: ryandesign | Owner: breun
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.11.6
Keywords: | Port: claude-code
------------------------+-------------------------
claude-code's test phase fails:
{{{
---> Testing claude-code
DEBUG: Executing org.macports.test (claude-code)
DEBUG: elevating privileges for test: euid changed to 0, egid changed to
0.
DEBUG: dropping privileges: euid changed to 502, egid changed to 501.
DEBUG: Creating test directory: /opt/local/var/macports/build/claude-code-
bfec3cc0/work/claude
DEBUG: Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/claude-code-
bfec3cc0/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='12.0'
SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
SOURCE_DATE_EPOCH='1767837264'
Executing: cd "/opt/local/var/macports/build/claude-code-
bfec3cc0/work/claude" && claude --version
DEBUG: system: cd "/opt/local/var/macports/build/claude-code-
bfec3cc0/work/claude" && claude --version
sh: claude: command not found
Command failed: cd "/opt/local/var/macports/build/claude-code-
bfec3cc0/work/claude" && claude --version
Exit code: 127
Error: Failed to test claude-code: command execution failed
DEBUG: Error code: CHILDSTATUS 14583 127
}}}
`test.cmd claude` means it would run a `claude` in /opt/local/bin, but
there isn't one there yet.
You probably want to use the relative or absolute path to the `claude` in
the destroot instead.
--
Ticket URL: <https://trac.macports.org/ticket/73375>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list