Fix jpkg jerbuild invocation #21

Merged
ober merged 1 commit from fix/jpkg-jerbuild-invocation into master 2026-08-13 21:25:54 -04:00
Owner

Fixes jpkg install when invoked via the jpkg multicall symlink.\n\nThe installer was resolving JERBOA_SELF_EXE first, so jpkg tried to run , which re-entered the jpkg command parser and failed with . It now prefers the sibling === jerbuild build ===
Config: /Users/user/work/jerboa-release-0.8.1/.jerbuild
=== jerbuild binary build ===
Entry: /Users/user/work/jerboa-release-0.8.1/jerbuild.ss
Output: /Users/user/work/jerboa-release-0.8.1/jerbuild-local
Host: tarm64osx
CC: cc
Chez: /Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx
Deterministic LDFLAGS=' -Wl,-no_uuid'
Program image: compile-whole-program (standalone default)

==> [1/5] Program compile in isolated subprocess (multicall self)
helper: /tmp/jerbuild-binary-36336/cross-wpo-compile.ss
cmd: '/Users/user/.local/bin/jerboa' runtime '/tmp/jerbuild-binary-36336/cross-wpo-compile.ss'
helper: /tmp/jerbuild-binary-36336/cross-wpo-whole.ss
cmd: '/Users/user/.local/bin/jerboa' runtime '/tmp/jerbuild-binary-36336/cross-wpo-whole.ss'
Canonicalized Chez gensym session prefix in 2894 object occurrence(s) (2407 input, 487 WPO-only)
Stripped deterministic WPO FASL metadata: /tmp/jerbuild-binary-36336/program.wp.so
==> [3/5] Embed boots + program as C arrays
==> [4/5] Generate main.c
==> [5/5] Compile + link -> /Users/user/work/jerboa-release-0.8.1/jerbuild-local
cc -I'/tmp/jerbuild-binary-36336' -I'/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx' -O2 -o '/Users/user/work/jerboa-release-0.8.1/jerbuild-local' '/tmp/jerbuild-binary-36336/main.c' '/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx/libkernel.a' '/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx/liblz4.a' '/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx/libz.a' -Wl,-no_uuid -lm -lpthread -lncurses -liconv

=== Build complete: /Users/user/work/jerboa-release-0.8.1/jerbuild-local === entrypoint next to the current executable.\n\nVerified:\n- Jerboa source file verifies via jerboa_verify\n- Built Linux amd64 native multicall on linux.cons.io\n- From uploaded v0.8.2 artifact: succeeds\n- Installed llm-search version 0.1.6 prints Unknown command: version
Commands: serve, index, stats, search, export, mcp

Fixes jpkg install when invoked via the jpkg multicall symlink.\n\nThe installer was resolving JERBOA_SELF_EXE first, so jpkg tried to run , which re-entered the jpkg command parser and failed with . It now prefers the sibling === jerbuild build === Config: /Users/user/work/jerboa-release-0.8.1/.jerbuild === jerbuild binary build === Entry: /Users/user/work/jerboa-release-0.8.1/jerbuild.ss Output: /Users/user/work/jerboa-release-0.8.1/jerbuild-local Host: tarm64osx CC: cc Chez: /Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx Deterministic LDFLAGS=' -Wl,-no_uuid' Program image: compile-whole-program (standalone default) ==> [1/5] Program compile in isolated subprocess (multicall self) helper: /tmp/jerbuild-binary-36336/cross-wpo-compile.ss cmd: '/Users/user/.local/bin/jerboa' runtime '/tmp/jerbuild-binary-36336/cross-wpo-compile.ss' helper: /tmp/jerbuild-binary-36336/cross-wpo-whole.ss cmd: '/Users/user/.local/bin/jerboa' runtime '/tmp/jerbuild-binary-36336/cross-wpo-whole.ss' Canonicalized Chez gensym session prefix in 2894 object occurrence(s) (2407 input, 487 WPO-only) Stripped deterministic WPO FASL metadata: /tmp/jerbuild-binary-36336/program.wp.so ==> [3/5] Embed boots + program as C arrays ==> [4/5] Generate main.c ==> [5/5] Compile + link -> /Users/user/work/jerboa-release-0.8.1/jerbuild-local cc -I'/tmp/jerbuild-binary-36336' -I'/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx' -O2 -o '/Users/user/work/jerboa-release-0.8.1/jerbuild-local' '/tmp/jerbuild-binary-36336/main.c' '/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx/libkernel.a' '/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx/liblz4.a' '/Users/user/.cache/jerbuild/3ed3bf632ac164ea35af772188e403afa608a44cba247d6e290055a5294cc342/csv/tarm64osx/libz.a' -Wl,-no_uuid -lm -lpthread -lncurses -liconv === Build complete: /Users/user/work/jerboa-release-0.8.1/jerbuild-local === entrypoint next to the current executable.\n\nVerified:\n- Jerboa source file verifies via jerboa_verify\n- Built Linux amd64 native multicall on linux.cons.io\n- From uploaded v0.8.2 artifact: succeeds\n- Installed llm-search version 0.1.6 prints Unknown command: version Commands: serve, index, stats, search, export, mcp
Fix jpkg jerbuild invocation
Some checks failed
required-ci / gerbil-compat (push) Successful in 5s
required-ci / gerbil-compat (pull_request) Successful in 7s
version-policy / required (pull_request) Successful in 42s
release / freebsd-amd64 (push) Failing after 10m59s
freebsd-required / required (pull_request) Successful in 17m52s
required-ci / required (push) Failing after 19m30s
required-ci / required (pull_request) Failing after 18m55s
a37ffc3f66
Author
Owner

Correct verification notes:

  • Fix: jpkg was resolving JERBOA_SELF_EXE first, so the jpkg symlink invoked itself as jpkg jerbuild transpile ...; the jpkg command parser treats jerbuild as an unknown command. The patch prefers the sibling jerbuild symlink next to the current executable.
  • Source verification: jerboa_verify lib/std/pkg/project.ss passes.
  • Built Linux amd64 native multicall on linux.cons.io.
  • Uploaded artifact: https://git.jerboa.sh/ober/jerboa/releases/download/v0.8.2/jerboa-v0.8.2-linux-amd64.tar.gz
  • SHA256: 435f2a2ee76bdd0f675d82bd9ee5189fdcb01b38deea2b13440d1a9f12d866fb
  • From the uploaded artifact, this now works: ./jpkg install @ober/jerboa-llm-search-linux-amd64@0.1.7
  • Installed llm-search --version prints: llm-search version 0.1.7
Correct verification notes: - Fix: jpkg was resolving JERBOA_SELF_EXE first, so the jpkg symlink invoked itself as `jpkg jerbuild transpile ...`; the jpkg command parser treats `jerbuild` as an unknown command. The patch prefers the sibling `jerbuild` symlink next to the current executable. - Source verification: `jerboa_verify lib/std/pkg/project.ss` passes. - Built Linux amd64 native multicall on `linux.cons.io`. - Uploaded artifact: https://git.jerboa.sh/ober/jerboa/releases/download/v0.8.2/jerboa-v0.8.2-linux-amd64.tar.gz - SHA256: `435f2a2ee76bdd0f675d82bd9ee5189fdcb01b38deea2b13440d1a9f12d866fb` - From the uploaded artifact, this now works: `./jpkg install @ober/jerboa-llm-search-linux-amd64@0.1.7` - Installed `llm-search --version` prints: `llm-search version 0.1.7`
ober scheduled this pull request to auto merge when all checks succeed 2026-08-13 21:25:41 -04:00
ober merged commit 3edd21f750 into master 2026-08-13 21:25:54 -04:00
ober referenced this pull request from a commit 2026-08-13 21:25:55 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ober/jerboa!21
No description provided.