Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634900 - =net-firewall/fwbuilder-5.3.7 fail qt version check
Summary: =net-firewall/fwbuilder-5.3.7 fail qt version check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Kevin Bauman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qtbindir
  Show dependency tree
 
Reported: 2017-10-20 22:09 UTC by Francesco Riosa
Modified: 2017-12-04 21:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2017-10-20 22:09:58 UTC
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
Comment 1 Joshua Kinard gentoo-dev 2017-11-19 19:10:40 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2017-12-04 21:52:34 UTC
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(-)