Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish binaries for FreeBSD #3370

Open
zanieb opened this issue May 4, 2024 · 12 comments
Open

Publish binaries for FreeBSD #3370

zanieb opened this issue May 4, 2024 · 12 comments
Labels
releases Related to building and distributing release artifacts of uv

Comments

@zanieb
Copy link
Member

zanieb commented May 4, 2024

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

@charliermarsh charliermarsh added the releases Related to building and distributing release artifacts of uv label May 4, 2024
@charliermarsh
Copy link
Member

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).

@zanieb
Copy link
Member Author

zanieb commented May 4, 2024

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

@charliermarsh
Copy link
Member

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.

@konstin
Copy link
Member

konstin commented May 6, 2024

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

@Kartatz
Copy link

Kartatz commented May 21, 2024

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

@dbohdan
Copy link

dbohdan commented Aug 25, 2024

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.

@zanieb
Copy link
Member Author

zanieb commented Aug 26, 2024

(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)

@donnex
Copy link

donnex commented Sep 28, 2024

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.

@konstin
Copy link
Member

konstin commented Sep 28, 2024

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

@donnex
Copy link

donnex commented Sep 29, 2024

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

konstin added a commit that referenced this issue Sep 29, 2024
@konstin
Copy link
Member

konstin commented Sep 29, 2024

Could you try #7780?

@donnex
Copy link

donnex commented Sep 29, 2024

@konstin works prefectly! 🥳 🙏

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

zanieb added a commit that referenced this issue Oct 17, 2024
Playing with this because it's interesting and I learned about this cool
firecracker action.

Related #3370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
releases Related to building and distributing release artifacts of uv
Projects
None yet
Development

No branches or pull requests

6 participants