-
Notifications
You must be signed in to change notification settings - Fork 680
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
Add support for OpenBSD #685
Comments
The first priority here is to get OpenBSD supported as a Tier 3 platform, where we automatically test it. We use cross for our testing, and right now it doesn't support OpenBSD. It looks like it'll take a bit of work to make that happen. We'd also welcome patches to |
(Also, if you could condense that list into action items, that'd be great. Seems like there are some improper datatypes and missing constants/functions in libc, so it should be pretty easy). |
Hmm cross support seems blocked on, "having official releases of the rust-std component for OpenBSD". cross-rs/cross#97 I'll proceed with attempting to get nix building for my own purposes and go from there. |
Looking at the code for |
Yep I tried it to try to get a version newer than 1.16.0:
It's missing from https://github.com/rust-lang-nursery/rustup.rs/blob/master/rustup-init.sh#L189-L223 Hacking the script to include OpenBSD results in:
|
Alright, well looks like rustup is going to need someone who loves OpenBSD to get to work on it! Is that you?! :-) Anyways, yes, let's confine ourselves to fixing OpenBSD compilation currently and we'll defer on CI for now. |
688: Support for OpenBSD r=Susurrus Fixes #685 These changes get nix building on OpenBSD 6.1. There is one failing test that I want a little guidance on: ``` error[E0308]: mismatched types --> src/sys/event.rs:333:30 | 333 | assert!(expected.data == actual.data()); | ^^^^^^^^^^^^^ expected i64, found isize ``` `KEvent::data` is: ``` pub fn data(&self) -> intptr_t { self.kevent.data as intptr_t } ``` I assume the test should be updated to cast to the expected type but wanted to confirm that before making the change.
OpenBSD appears to be not currently supported. Attempting to compile nix v0.8.1 on OpenBSD 6.1 amd64 with rust 1.16.0 produces the errors below. I would like to use nix in a project that I'll be deploying on OpenBSD so will take an initial pass at adding support. I'll update the task list here as I get more details on what needs to be implemented:
The text was updated successfully, but these errors were encountered: