-
Notifications
You must be signed in to change notification settings - Fork 47
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
[BUG] macchina-5.0.4 nearly broken on NetBSD #217
Comments
I guess so. I'm unsure what change screwed up all these readouts. I have a question about the WindowManager readout, in our latest version of libmacchina, we introduced a new module, With the latest changes, |
@grtcdr I'll get back to you with the output on NetBSD but, I guess this will cause trouble elsewhere.
In other words, not very useful. |
@grtcdr Ok, here's from NetBSD,
Why using this now? I mean, why changing to freedesktop/RedHat XDG implementation? |
I decided it was time to start supporting Wayland compositors so the only way I could do that was to check the session type before proceeding to check which compositor/window manager is running. What's wrong with the XDG spec? Is there any other variable that we can use that exists on NetBSD?
Not sure, but we recently updated the libc dependency version so maybe that could be the culprit. |
AFAIK, Wayland support for NetBSD still hasn't landed, so we'll skip checking the output of |
Fair enough.
Well, as you could see from the output on my Linux machine, it's not universal. Which, is fine but, let's not pretend it is.
Weird!? Are you sure you didn't touch the logics of those readouts?
It has but, not in the way you are used to. The only WM available is |
My apologies, I really thought most of if not all of the XDG spec was shared between every *nix machine.
Nope, I haven't touched the
That sucks, I've been enjoying Wayland a lot recently, and the security issues it addresses seem like a step forward for *nix as a whole. |
Anyways, I've bumped |
Ok, thanks!
No worries, I don't run typical systems. NetBSD respects XDG DIRS but, doesn't force them on you.
I understand that but, it's well over my head to port this and it looks like it won't be happening soon.
Thanks, I've seen your commits now :) |
Oh, got it.
Yeah, it doesn't seem trivial whatsoever.
Of course, although I still can't seem to build macchina on my NetBSD VM due to that pesky "linker 'cc' not found" error. |
As usual, create a beta-branch and I can test this for you. Although, it won't be possible before tomorrow morning. I believe the error you are facing it's because you are building outside pkgsrc. Rust needs the c-toolchain to link and it doesn't find it.
|
The newest changes have already been pushed to the main branch, so I guess compile and run from there when you have the time.
:( I'm beginning to lose it with Rust and Pkgsrc. |
@grtcdr No worries, I'll build it from git-HEAD first thing in the morning 😴 |
Great, thank you :) and sorry for the trouble! |
@grtcdr Why was this issue closed? |
@grtcdr Anyway, the good news first, "WindowManager" is back, thank you. As usual forget about "LocalIP", it works fine if I enable it but, ...
"Host" and "Shell" are still missing 😢 Looking at v5.0.3 it has libc v0.2.104, I wonder what regression cause this going to libc v0.2.107 ? I'll see if I can find it. |
Looking at the commits, I only see added functionality, which is good as it increases support. |
Okay, so we're using The Shell readout also fails due to the same reason, as it shares some of the same logic as the |
@grtcdr Could this be it?
|
Or, maybe not :( |
I don't know what I'm supposed to be looking for here... I don't see a single mention of NetBSD in the diff. What interests us is these two functions:
They've worked fine for a long time for every Unix-like operating system libmacchina supports (except FreeBSD), and I find it odd that it would just stop working all of a sudden and only on NetBSD. |
Yeah, I've just jumped ahead and did a quick grep and diff, sorry for the noise. I'll keep looking |
No worries, I'll have a closer look at what changed between libmacchina's releases. It's very unlikely that there's a bug in NetBSD's core libraries. |
@grtcdr The thing is this is the only file that has changed on the NetBSD specific code. I only see additions, which should bring better support and nothing that could be causing this.
|
You're right, but I'm not a systems expert, so I couldn't tell you for sure why this might be happening or if the new changes could have an effect on the functions we use. It's a weird situation, Linux, Android, NetBSD, and macOS all share the same |
Sure, I understand this. I just would like to find it so I could open an issue with |
Hmm, before filing an issue, I'll create a branch with libc downgraded to the latest known working version, and tell me if host/shell work. |
@grtcdr I had the same thought and was about to ask you for that but, didn't dare :) Let me know when it's there and I'll build it straight away. Thanks! |
Alrighty, the branch is ready, it's called |
Awesome, give me 30 min. |
Take your time, just know that I have no issues sticking with 0.2.104 for a while if it turns out to be a libc issue. |
I don't see it downgraded in |
libmacchina also has a branch called |
|
Hmm... got a warning but, it compiled just fine.
Although, the issue doesn't seem to be with
And if I install macchina-5.0.3 again it's fine, wtf? |
I'll fix that right up.
Absolutely, I have no idea what's going on at this point... EDIT: I do know what's wrong, it's me. Let's observer one of the conditions of
if passwd != std::ptr::null_mut() {
// do something
}
if passwd.is_null() {
// do something
} I was basically trying to satisfy clippy, but forgot to prepend a |
I just had to try going back to v5.0.3 and here,
Just so you know, I'm not just assuming. |
Read my edit, it turned out to be me that made a big, gigantic, huge mistake. |
I have the same errors as you, my apologies for this gigantic fuck-up on my part. |
I've published the fix, and will release a new version right away. |
@grtcdr No worries, I'm happy we have reached the bottom of this. |
Thank you 😄 |
Closing this now! Thanks! |
I'll build and merge the new version as soon as possible but, my time for today is out. |
No problem ✌️ |
Hi guys,
Here we go again,
Forget about "LocalIP", this is simply because I didn't specify the interface but, failed to fetch "Host", "WindowManager" and "Shell"?
EDIT: @grtcdr I think is better not to merge this release and let users stay on 5.0.3 for now.
The text was updated successfully, but these errors were encountered: