Use Qt path when searching for qmake even if not in PATH
When running kdesrc-build on a Fedora system where kdesrc-build has built and installed Qt5 to /usr/local/qt5
(see !3 (merged)), trying to run kdesrc-build to build something non-trivial fails immediately:
# kdesrc-build --stop-on-failure --include-dependencies dolphin --stop-after kcoreaddons
Updating kde-build-metadata (to branch master)
Updating sysadmin-repo-metadata (to branch master)
Unable to find qmake. This program is absolutely essential for building
the modules: extra-cmake-modules kcoreaddons attica.
Please ensure the development packages for
Qt are installed by using your distribution's package manager.
You can also see the
https://techbase.kde.org/Getting_Started/Build/Distributions page for
information specific to your distribution (although watch for outdated
information :( ).
* Aborting now to save a lot of wasted time.
* export KDESRC_BUILD_IGNORE_MISSING_PROGRAMS=1 and re-run (perhaps with --no-src)
* to continue anyways. If this check was in error please report a bug against
* kdesrc-build at https://bugs.kde.org/
qmake is definitely present at /usr/local/qt5/bin
, and the qtdir option is correctly set. So kdesrc-build should be able to find this.