-
Notifications
You must be signed in to change notification settings - Fork 90
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 *BSD (e.g: FreeBSD) #44
Comments
Support for BSDs is added here #14, just some build tags. As I can see from your link the problem is |
@gen2brain That was my point? I can't compile on FreeBSD with your library right now. Can we fix this? I quite like beep :) |
But that is not controlled by me, it is another repo, dbus? |
There is also this issue godbus/dbus#315, are you cross-compiling? Can you try on actual FreeBSD? |
Also, this one godbus/dbus#237, as stated there, is the only platform that uses CGO, so in order to cross-compile, you will need FreeBSD toolchain on Linux. |
Ok, so it looks like there is no bug, after all, What I can do here to make it easier for you is to add e.g. |
I was cross-compiling yes. But the user that had a problem was not. |
Why do we depend on dbus here anyway? How is this getting pulled in? |
Oh! So you're using dbus here for something? And that forces CGO to be used? If so, yes please, if we can have a CGO-less option here that would be great 👌 |
@gen2brain I'm still not sure why we depend on dbus in the first place, but if we do for a good reason, is there a way we can interop with dbus without CGO? Is there a better library we can use here? I mean D-Bus has an API right? |
D-Bus is used to send notifications, i.e |
The cgo requirement comes from this file here: https://github.com/godbus/dbus/blob/master/transport_unixcred_freebsd.go Building with dbus on FreeBSD could be guarded with the "cgo" build tag and use a fallback like notify-send for CGO_ENABLED=0 . |
Well, the first line in that file is the reason As I said, I can add The other, more complicated solution for you would be to compile FreeBSD toolchain on Linux (maybe there are ready-made Docker or scripts) and compile with something similar to this: |
Can we file (you should probably) upstream to the author of that dbus library to fix this? We should get native support there too! |
@gen2brain Please do this 👌 Let's not ruin a good "notification" library just because *BSD hasn't implement something Linux has had for a while 😂 cough 🤣 |
Added |
Nice one! 👌 Would you mind also tagging a new release when you're done too? 🙇♂️ |
I'm trying to see if your commit lets me cross-compile (when I do releases) but something is not working for me :/
What am I doing wrong? |
I really don't have time to debug your project. You are probably not passing tag everywhere, for |
I wasn't expecting you to, and that came across as a "tad bit rude", I hope you didn't mean for that to happen 🤗 I'll work it out don't worry 😅 |
Of course, I didn't mean to be rude. |
Can we add support for FreeBSD and perhaps other *BSD(s)?
As reported here this library doesn't work on FreeBSD due to some missing implemtnation?
Let's fix this!
The text was updated successfully, but these errors were encountered: