-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 support in the client #19160
netbsd support in the client #19160
Conversation
Anything you need from me on this? |
I literally copypasted the openbsd go-ps file to netbsd, REALLY requires a closer look. But AFAICT that's the only truly nonportable code.
Building broke on BSDs due to these: - #16949 - 38900b9 AFAICT all that is needed are the following changes to get things building again. Tested on NetBSD, but guessing the same will apply to OpenBSD and FreeBSD hence why also all those build headers. Renamed stop_linux.go to stop_nix.go to reflect applicability. _Probably_ this works fine. On NetBSD I am only concerned with the command line so don't care about stopping the GUI. One thing to note with regards to running on NetBSD - using Linux Emulation so you have the procfs mounted helps a lot. In fact I don't think the process_netbsd.go file in go-ps is required at all then. NetBSD can just use the Linux one (after adding itself to the build header)
591d230
to
8d0b2aa
Compare
Could you check out building on netbsd now? Anything else we can do? I have a ticket to add cross compilation to CI as well. |
Tested master and it builds and works fine (so for me this was upgrading from 4.4.0 to 4.5.0):
|
I can't think of anything. I'm not personally concerned with a GUI on BSDs. As long as I can keep the command line client working I'm happy, thank you. |
Fwiw I also cross compiled that latest master build to NetBSD arm and tried that on an NetBSD arm box and it worked there to; I didn't build on the arm box due in part to laziness - would need to also build golang there. I did see one odd thing where it died, but it ran ok when I tried again:
You can see how lazy I was being as I couldn't even be bothered to put the executable in my |
Hmm, weird. May be due to the upgrade, if it happens again let us know. Glad you got it working! |
Oh, what about KBFS? Does fuse work on bsd? (although it is useful even without fuse via the git remote helper and |
Hmm... I have not looked at KBFS at all yet. I will take a look and report back. At the moment:
|
It is a different daemon, you have to build There are some docs here: https://keybase.io/docs/kbfs, https://keybase.io/docs/kbfs/understanding_kbfs. On that note: does netbsd have something like systemd/shepherd that handles daemon services? |
@heronhaye Just to follow-up on the kbfs stuff. Someone started on a branch for openbsd for bazil/fuse. OpenBSD and NetBSD are often pretty close so I will dig through that and see if it's possible to finish off and get working, but won't be a quick thing. |
@atomicules Ah, thanks for looking into it. Let me know if you need any help getting that working on Keybase's side. |
@atomicules