26.9.1 fails to build on NetBSD #4354
|
First things first. pkgsrc does not allow fetching during build, so the following is no good So, I've patched that and declared it directly in Of course, there's a side issue because what's listed in But only to reach this point, I give-up for now and hopefully these things will be fixed by next release. Regards |
Replies: 1 comment 4 replies
|
The 29 errors all come from the first change, not from anything NetBSD-specific: A I reproduced it outside of yazi, with a crate that only calls Same The part that matters for pkgsrc: a patch doesn't have to be a git patch.
[patch.crates-io]
-ratatui-core = { git = "https://github.com/yazi-rs/ratatui.git", branch = "fix_buffer_diff_wide_cells" }
+ratatui-core = { path = "../ratatui-dde5e05eccfe5b7cb7712b4bdf76edd0c2cd1f25/ratatui-core" }and leave line 68 ( And the What I measured, cargo 1.98.1 / rustc 1.98.1, on the same fork commit One Two side effects worth knowing: What I did not test: NetBSD (this is macOS/arm64), the full yazi build, and your pkgsrc |
The 29 errors all come from the first change, not from anything NetBSD-specific:
[patch.crates-io]and a path dependency don't do the same thing.A
[patch]entry replaces a crate everywhere in the graph. A path dependency only replaces your own edge to it. So once the patch section is gone,ratatui-widgets 0.3.2still resolves its ownratatui-core 0.1.2from crates.io, yazi gets the fork, and two copies of the same version are two distinct types — hencethe trait bound ratatui_core::style::Style: From<ratatui_core::style::Style> is not satisfied.I reproduced it outside of yazi, with a crate that only calls
Block::bordered().border_style(style):