Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,18 @@ or import to it. pyjnius `jnius_jvm_android.pxi` (1.9.0).

---

### iOS maturin: `ERROR Unmet dependencies … puccinialin wanted: any found: not installed`

**Cause:** maturin asks for `puccinialin` (its Rust installer) when `cargo` is not on
PATH. Forge rebuilds the iOS PATH from a fixed list, and the macos-26 runner image
(20261102) puts cargo under Homebrew's keg-only `/opt/homebrew/opt/rustup/bin`, which no
list entry covers. Every maturin recipe fails on iOS while Android stays green.

**Fix:** `cross_kwargs` in `src/forge/cross.py` now appends the directory of the caller's
`cargo`. If it recurs, check `which cargo` on the runner against that PATH. jiter 0.19.0.

---

### iOS CMake: `install TARGETS given no BUNDLE DESTINATION for MacOS bundle target "flatc"`

**Cause:** a FetchContent'd flatbuffers builds its `flatc` TOOL as part of the
Expand Down
2 changes: 1 addition & 1 deletion recipes/jiter/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: jiter
version: "0.15.0"
version: "0.19.0"

build:
number: 1
Expand Down
7 changes: 7 additions & 0 deletions src/forge/cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@ def cross_kwargs(self, kwargs):
if env is None:
env = os.environ.copy()

# Keep the caller's cargo reachable: GitHub's macOS images install it under
# Homebrew's keg-only rustup (/opt/homebrew/opt/rustup/bin), not ~/.cargo/bin.
# Without it, maturin falls back to requiring `puccinialin` and the build fails.
cargo = shutil.which("cargo", path=env.get("PATH"))
cargo_dirs = [str(Path(cargo).parent)] if cargo else []

# Ensure the path is clean, and doesn't include any non-iOS paths.
env["PATH"] = os.pathsep.join(
[
Expand All @@ -441,6 +447,7 @@ def cross_kwargs(self, kwargs):
"/sbin",
"/Library/Apple/usr/bin",
][1 if self.host_os == "android" else 0 :]
+ cargo_dirs
)

# Set VIRTUALENV to the active venv
Expand Down
Loading