-
Notifications
You must be signed in to change notification settings - Fork 411
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
Ship a private copy of OpenSSL for pre Qt 5.10 applications #391
Comments
Thanks @ciaeli. Do you know what they did in 5.10 to make this unnecessary? |
Maybe we should add an error message in case someone attempts to bundle an application that requires OpenSSL but is using Qt 5 below 5.10? |
I think I do. The description of #209 says that Qt 5.10 uses OpenSSL 1.1, while older versions probably still rely on version 1.0, which is no longer available on most distributions:
Some hint would be good indeed indicating that one should try to switch to Qt 5.10 or later. However, there are probably cases where that is not easily possible. So I think there should also be the option to continue building and include a private copy of OpenSSL. As you said on #209 this should be up to linuxdeployqt, not the person actually using it to build software. |
How does that work for distributions that use OpenSSL 1.0? Thanks @claell for doing the investigations and for proposing this solution. For now we have updated the documentation to recommend a newer version of Qt, which should be sufficient in most cases to address this issue. Please feel free to reopen if you run into a concrete situation where this is not sufficient. |
Good question. I assume there is either a fallback to OpenSSL 1.0 or it won't work for these distributions in that case. But I did not look into this.
To address this issue it is probably perfectly sufficient. But there might be other restrictions that keep developers from switching to 5.10. But also here that is just an assumption, I am not developing such applications, but am only a user of one which is affected by this. So maybe @RobertKrajewski and @nurupo can shed some light on this. Both are using older Qt versions and ran into this issue. So is there a reason you did not change to Qt 5.10? Also ping to @antony-jr @sudden6 @tux3 |
It's as simple as qTox AppImage being based on Debian Stretch, which packages Qt 5.7.1. |
Ah ok, did not get it the first time you wrote that. Is there a reason to use Debian Stretch (like stability or being backwards compatible)? Also would adding Qt 5.10 from a PPA work? |
For the most part, shipping the version of OpenSSL that was used to build Qt will fix any problem related to OpenSSL and Qt. And to adjust the So shipping a private copy into the AppImage may not work properly. The OpenSSL version has to be compatible with the Qt version you are bundling. So copying it from the host system is the only choice. |
Thanks for clarification. So basically the only option how to implement this in However currently that is not planned to be done, at least if there are no projects that need to rely on pre Qt 5.10. So I am currently trying to investigate whether your project is depending on pre Qt 5.10 or could also switch to Qt 5.10 in order to fix this problem. |
I'd recommend to compile on Ubuntu xenial with Qt 5.10+ from https://launchpad.net/~beineri. |
* we need Qt >= 5.10 for OpenSSL to link properly * can be removed after Ubuntu 18.04 reaches EOL (will switch to 20.04, which uses Qt 5.12.8) * see probonopd/linuxdeployqt#391
Should fix #209 thought I'd create a separate issue for it in case further discussion is needed.
The text was updated successfully, but these errors were encountered: