-
Notifications
You must be signed in to change notification settings - Fork 2
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
Only static link gnutls #2
Conversation
This prevents a crash on firmware versions 3.6+. The NSS functions in glibc don't play nice with static linking.
Limit publish to only on the release tag
The one concern I have here, is that no longer static linking means that we could have other compatibility issues in the future that break this build of wget on some versions. Which is why we static linked in the first place. |
I have tested this and it does seem to work on 2.15.1 though, so I'd be willing to merge it and add a new tag though. Have you tested on a rM1/2 on 3.6+? |
True, but we have compatibility issues right now with 3.6+, even though we're statically linking. If we want to keep it static, we need to move to a musl toolchain.
I've tested on 2.15, 3.5 and 3.6. |
I would be more comfortable moving this to musl than making it dynamic. I'll take a look later today at doing so. |
For the interim though, did you explore updating the image this is building with to the latest to see if that resolved this first? |
https://stackoverflow.com/a/57478728 Due to this, I'm more comfortable merging this in the current state, and moving just this to a musl based static build at a later date. We may still run into issues with new versions not being properly backwards compatible, as glibc has broken backwards compatibility in the past. These issues seem to be minor though, so I'm not as concerned for now. |
I did not, but as glibc is definitely not forwards compatible, moving to 3.x would break older firmwares.
Nice find, and yeah, we might run into other issues, but currently it's not working, so at least this should improve it. |
Static compile should avoid most of that, but as we've found, NSS calls are the exception here, so it will probably break things. Right now we don't support older than 2.6.1.71 due to the breaking Qt library changes that happened at that version. So we aren't as worried about dropping support for older than that, but perhaps we should still be. We should also probably document the minimum version properly, right now you have to infer it from the toolchain readme as most things use the 2.x branch. This wget build is still using the 1.x branch, so it should still work on older and newer versions.
Alright, I'm going to merge this, and sort out how to get it pushed out to the website etc, and then we'll need to update toltec-bootstrap to use it. |
This prevents a crash on firmware versions 3.6+.
The NSS functions in glibc don't play nice with static linking.
Resolves toltec-dev/toltec#731