uv icon indicating copy to clipboard operation
uv copied to clipboard

Publish binaries for FreeBSD

Open zanieb opened this issue 9 months ago • 7 comments

e.g. the installer currently fails with

# curl -LsSf https://astral.sh/uv/install.sh | sh
ERROR: there isn't a package for x86_64-unknown-freebsd

I'm not sure how feasible this is, but here's a tracking issue.

Related #2442

zanieb avatar May 04 '24 06:05 zanieb

For what it's worth, you can't upload FreeBSD wheels to PyPI, so users will always need to build any dependencies from source (IIUC).

charliermarsh avatar May 04 '24 12:05 charliermarsh

I'm a little confused since I thought we didn't have Python dependencies but that's good to know.

zanieb avatar May 04 '24 15:05 zanieb

Ah, to clarify, we don’t have any Python deps, I just mean: for any dependencies they install with pip or uv, IIUC they will end up building from source.

charliermarsh avatar May 04 '24 15:05 charliermarsh

Note that freebsd is not supported by github actions, we either need a custom cross compiling solution or use cirrus ci

konstin avatar May 06 '24 07:05 konstin

Note that freebsd is not supported by github actions, we either need a custom cross compiling solution or use cirrus ci

Some time ago, I set up a cross-compiler targeting FreeBSD. I have not yet tried cross-compiling Rust programs myself, but that should be pretty straightforward to get working.

Here is the repository in case anyone is interested: https://github.com/AmanoTeam/Loki

Kartatz avatar May 21 '24 01:05 Kartatz

https://github.com/cross-platform-actions/ lets you use Free/Net/OpenBSD in GitHub Actions. I had a good experience with it in a C project. While I haven't used it, there is also https://github.com/houseabsolute/actions-rust-cross that cross-compiles Rust.

dbohdan avatar Aug 25 '24 21:08 dbohdan

(We're currently at zero 👍 for this issue, so in addition to this being technically challenging to maintain this is pretty low priority since there's not a lot of clear interest)

zanieb avatar Aug 26 '24 17:08 zanieb

I ran into this issue today. The uv package in FreeBSD ports is really old and outdated.

Has anyone been able to successfully compile the latest release of uv in FreeBSD? I had no luck with manual buld by cloning the repo.

donnex avatar Sep 28 '24 11:09 donnex

Can you share a log of what failed in the manual build?

konstin avatar Sep 28 '24 13:09 konstin

Yeah of course. I'm not sure if it's anything related to uv directly.

error: failed to run custom build command for `tikv-jemalloc-sys v0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7`

uv-cargo-build.log

donnex avatar Sep 29 '24 09:09 donnex

Could you try https://github.com/astral-sh/uv/pull/7780?

konstin avatar Sep 29 '24 13:09 konstin

@konstin works prefectly! :partying_face: :pray:

target/release/uv version
uv 0.4.17 (c2f19dfd6 2024-09-29)

donnex avatar Sep 29 '24 14:09 donnex