-
Notifications
You must be signed in to change notification settings - Fork 18
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
Not working on musl #32
Comments
Here is the output if it is of any help. Anything inside ${} is what I edited out. Attempting to connect with vpnfailsafe:
Connecting with update resolv conf:
When I tried vpnfailsafe again, I got a slightly different output:
Is the problem related to glibc's getent? |
Hi @travankor,
Indeed. The glibc variant supports the I opened issues against Void and Alpine to see if it can be fixed at the source. Let's wait for feedback from @fabled, who's the current maintainer of getent.c. PS. The first log you pasted - that's unrelated to vpnfailsafe, you got AUTH_FAILED before any --up script had a chance to run. |
|
Hey @fabled! Thanks for your response. Given the lack of specification, I think following glibc makes the most sense. I've only seen two implementations on Linux so far - the glibc one and the one you're maintaining, so if you added support for It seems like it would be simple to implement, but I'm not much of a C coder, so I can't contribute a patch... What do you think ? PS. This is unrelated, but I'd suggest setting up a dedicated repo for getent. Everyone seems to just copy getent.c to distro repos - would be good to have one authoritative upstream, to keep up-to-date with any updates you make. |
I don't know why musl can't bundle getent along with some extras under some sort of auxiliary repository. Maybe a good question for the mailing list, but since I'm a newbie I would rather not ask. The current getent from NetBSD (used on Alpine/Void) is ~500 sloc, compared to ~1000 sloc for glibc's getent, so there isn't a lot of extra bloat. However, if the current getent is considered feature complete, bind-utils is a relatively heavy dependency to add. Hopefully, something more lightweight and secure can be used instead (like |
First of all, thank you first for this script. I've been using it successfully on Void Linux with glibc for several months now.
However, when I try to use vpnfailsafe on Void Linux musl libc, openvpn will not connect. I double checked the provided AUR PKGBUILD to make sure that all dependencies are installed.
The separate project update-resolv-conf.sh works fine though. Any idea what this problem could be? The openvpn output seems to be almost the same on glibc and musl, but I can upload some logs later if that helps.
The text was updated successfully, but these errors were encountered: