-
Notifications
You must be signed in to change notification settings - Fork 24
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
NetBSD port #70
Comments
For reference, rust-lang/libc#3927 |
First, I assume that NetBSD doesn't have the temperature type? If that's the case, check src/unix/funcs.rs:200 where it returns the temperature. We might have to make
only run on FreeBSD. If NetBSD does have it, we need to enable the type for NetBSD, in addition to FreeBSD. |
NetBSD provides temperature information using envsys, not sysctl. Here's some example rust code. |
You could try something like
If this works, that's good for now. Although, I rather we test for features (like |
Thanks. I just pushed a change based on your suggestion, now I'm down to the mib issue.
so we'll have to wait to get that merged first. |
In your pull request, please also add NetBSD to Cirrus CI in the file |
@0-wiz-0 you could try to apply my libc patch locally to overcome the |
I don't see how to add NetBSD to the Cirrus image. |
I found https://github.com/haskell/bytestring/blob/master/.cirrus.yml which uses their custom VM instances. Maybe that'll work? https://cirrus-ci.org/guide/custom-vms/ Apparently their FreeBSD instance is already of this type
|
Using @0323pin 's libc and after adapting the example code, I get, for
|
I've started a NetBSD port based mostly on the FreeBSD one. My work is here.
It currently fails to build:
The first is a problem in the libc crate which @0323pin is working on fixing.
I'm a bit confused by the other too - how do these work on other non-FreeBSD systems? I don't see
is_temperature()
defined except for FreeBSD, but I must have overlooked something.The text was updated successfully, but these errors were encountered: