This container has only qt 5.9.2, no qt4 at all. Fwbuilder `configure` script check for qmake with the following case statement { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking version of QT this qmake is part of" >&5 $as_echo_n "checking checking version of QT this qmake is part of... " >&6; } qmake_version=`$QMAKE -v 2>&1 | awk '/Using Qt version/ { print $4;}'` case $qmake_version in 4.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qmake_version " >&5 $as_echo "$qmake_version " >&6; } ;; 5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qmake_version " >&5 $as_echo "$qmake_version " >&6; } ;; *) as_fn_error $? "\"$qmake_version -- v4.x or v5.x is required\"" "$LINENO" 5 ;; esac However $qmake_version is an empty string because qmake only return an error: # qmake --version qmake: could not find a Qt installation of '' Notice that running `qmake` in any of the following 2 ways respond as expected: # QT_SELECT=5 qmake --version QMake version 3.1 Using Qt version 5.9.2 in /usr/lib64 # qtchooser -qt=5 -run-tool=qmake --version QMake version 3.1 Using Qt version 5.9.2 in /usr/lib64 This is what qtchooser list as available on my machine: # qtchooser -list-versions 5 qt5-x86_64-pc-linux-gnu qt5
As a hack-fix, symlinking `/etc/xdg/qtchooser/qt5.conf' to `/etc/xdg/qtchooser/default.conf', for qt5, works to get fwbuilder to compile, as that'll allow qmake to return a version number to configure.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=529109a67c151e91a497aea21dd5def9473cea3f commit 529109a67c151e91a497aea21dd5def9473cea3f Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2017-12-04 21:07:50 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2017-12-04 21:52:17 +0000 net-firewall/fwbuilder: Fix src_configure, qtbindir Closes: https://bugs.gentoo.org/634900 Package-Manager: Portage-2.3.16, Repoman-2.3.6 net-firewall/fwbuilder/Manifest | 2 +- .../fwbuilder/files/fwbuilder-5.3.7-qtbindir.patch | 57 ++++++++++++++++++++++ net-firewall/fwbuilder/fwbuilder-5.3.7.ebuild | 7 +-- 3 files changed, 62 insertions(+), 4 deletions(-)