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

Support for OpenBSD #231

Closed
anoduck opened this issue Sep 16, 2023 · 5 comments
Closed

Support for OpenBSD #231

anoduck opened this issue Sep 16, 2023 · 5 comments

Comments

@anoduck
Copy link

anoduck commented Sep 16, 2023

Went to install Distant on my Desktop, and received the unrecognized OS type: OpenBSD message. Rust is now commonplace on OpenBSD, and unless the software facilitates the use of native Linux network sockets (i.e. /proc/sys/net...), it should work.

I will have to examine the install script to see if it can manually be installed and configured.

Just to clarify, you support SunOS and Windows, but not BSD? Wow...interesting...

@chipsenkbeil
Copy link
Owner

chipsenkbeil commented Sep 16, 2023

@anoduck hey there! Thanks for checking out the project. I tried building on both OpenBSD and NetBSD, but hit compilation errors. You can find the remnants of the attempt to productionize releases here: https://github.com/chipsenkbeil/distant/blob/master/.github/workflows/release.yml#L185-L244

Just to clarify, you support SunOS and Windows, but not BSD? Wow...interesting...

Supported builds are in the releases section: https://github.com/chipsenkbeil/distant/releases/tag/v0.20.0. Not sure about SunOS, but we've got Windows, MacOS, Linux (including Raspberry PI), and Intel-only FreeBSD.

As for not being able to build, the current issue is tied to the OpenSSL Rust wrapper being used to support ssh, which did not build on OpenBSD or NetBSD. Once we switch over to russh (#193), a native implementation written in Rust, I believe the project should compile there may be additional issues for OpenBSD.

image

@chipsenkbeil
Copy link
Owner

chipsenkbeil commented Sep 16, 2023

You can find my comments trying to get builds running here: #150.

OpenBSD cannot be built due to an internal compiler error. Adjusting LTO and other settings didn't appear to fix it. Going to close this out as we now have a build working for FreeBSD and I've left the progress for OpenBSD and NetBSD commented in the releases workflow.

IIRC, OpenBSD only has tier 3 support for Rust, so it may have additional issues compiling.

@anoduck
Copy link
Author

anoduck commented Sep 16, 2023

OpenSSH is developed by OpenBSD, but yet OpenBSD provides it's own implementation of the library for the OS, and since so many things are based off of the "normal" OpenSSH implementation it makes life unnecessarily complicated for users like myself.

@chipsenkbeil I have seen you around the hub before, and know your a good guy who works hard. There is no need to make things difficult for everyone. So, I am going to close this one out for now. If you ever need a user to test things out on OpenBSD and run the proverbial "hamster wheel", you only need to ask. Cheers, buddy.

@anoduck anoduck closed this as completed Sep 16, 2023
@chipsenkbeil
Copy link
Owner

@anoduck sure thing! I do want to cover the BSDs at some point. The switch to russh should help with that. I'm not sure about the internal compiler error, but hoping that resolving the ssh library need will make good strides towards coverage.

Will reach out once there's a build possible.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants