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

FreeBSD support #143

Open
probonopd opened this issue Nov 1, 2021 · 3 comments
Open

FreeBSD support #143

probonopd opened this issue Nov 1, 2021 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@probonopd
Copy link

Feature description

It would be nice if yabridge could run on FreeBSD. Can it?

Anything else?

WINE is available on FreeBSD.

@robbert-vdh
Copy link
Owner

In theory the only non-POSIX thing yabridge is doing is the use of procfs here and here, so those things would probably need to be changed. Other than that it should presumably work fine, but I've obviously never tested it.

@probonopd
Copy link
Author

probonopd commented Nov 1, 2021

Happy to report that there is procfs on FreeBSD too:

https://www.freebsd.org/cgi/man.cgi?query=procfs&apropos=0&sektion=5&manpath=FreeBSD+12.2-RELEASE&arch=default&format=html

But there are differences, e.g.,;

FreeBSD% cat /proc/0/exe    
cat: /proc/0/exe: No such file or directory

@robbert-vdh
Copy link
Owner

FreeBSD's procfs is different from Linux's so neither of the two things I linked would work there without any changes, but those two things are both fairly simple. The first thing is to check if a Unix domain socket is already opened by a program without having to shell out to lsof/ss, and the second usage is to check if a process is alive and not a zombie (since kill(pid, 0) also returns success when the process has ended without having been reaped by its parent yet). If Xorg, the rlimit functions, some realtime scheduling things, and the Freedesktop conventions all work the same on FreeBSD as they do on Linux (presumably they are, but I've never used FreeBSD myself) then everything else should work without any changes.

@robbert-vdh robbert-vdh added enhancement New feature or request help wanted Extra attention is needed labels Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants