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
Fix Qt5LinguistTools detection/lrelease binary location, use FeatureSummary #614
Conversation
You are making a number of unrelated changes, can you explain what each of them do?
|
It is just nice to have an overview of enabled/optional features at the end of configure.
FFMPEG_FOUND was necessary because
Then it works by chance, and you should not rely on that. With
<5.3.1 did not provide the Qt5::lrelease target. |
ping, anything left for me to do here? |
I had forgotten about this, I've made some changes to the build system since then including how Qt selects the correct binary (based on the QT_SELECT environment variable). As far as I know this has fixed all issues, so I don't think this is necessary anymore. I prefer to keep the build scripts simple and rely on the built-in Qt package for cmake. |
Using QT_SELECT is a workaround, not a solid fix. But I'll have a look at the delta.
I think my changes are consistent with that statement. Dropping Qt4 support would make it much simpler though, but I'm not suggesting that; I'm happy enough that we were able to keep your package thanks to Qt5 support. :) |
QT_SELECT is the method that's recommended by the Qt project itself, so I don't see the problem. It's backward-compatible and it's the easiest way to support both Qt4 and Qt5 without complex build scripts. I'm trying to re-add some of the other things though, like the Qt version check. |
QT_SELECT is only a clutch for the end user to select a default Qt visible in PATH and it relies on qtchooser being present and correctly set up, it is downright invalid for build systems to depend on it. There's nothing 'complex' about doing it properly in the build system, 95% of packages get it right out there or were fixed during Qt4 to Qt5 transition. qtchooser is being phased out by Qt upstream anyway so you can not rely on that implicit dependency in the future. |
Correctly find the Qt5 module that provides the path to Qt5-based lrelease. Available since >= Qt-5.3.1 which is well below the current minimum version.
…PEND See also: MaartenBaert/ssr#614 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
If Qt4 is default in qtchooser, cmake was picking up the wrong (qt4-based) lrelease binary.