Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633838 - dev-qt/qtcore-5.9.2 fails configure phase - Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH, and QMAKEFEATURES environment variables prior to building Qt.
Summary: dev-qt/qtcore-5.9.2 fails configure phase - Please make sure to unset the QMA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-09 13:03 UTC by Christian Schmidt
Modified: 2017-10-10 11:15 UTC (History)
1 user (show)

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


Attachments
Patch to unset all mentioned environment variables (qtcore-5.9.2.patch,341 bytes, patch)
2017-10-09 13:03 UTC, Christian Schmidt
Details | Diff
0001-qt5-build.eclass-unset-variables-that-if-set-cause-c.patch (0001-qt5-build.eclass-unset-variables-that-if-set-cause-c.patch,769 bytes, patch)
2017-10-09 13:17 UTC, Michael Palimaka (kensington)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schmidt 2017-10-09 13:03:06 UTC
Created attachment 498210 [details, diff]
Patch to unset all mentioned environment variables

When trying to install dev-qt/qtcore-5.9.2 the configure fails phase:

>>> Configuring source in /tmp/portage/portage/dev-qt/qtcore-5.9.2/work/qtbase-opensource-src-5.9.2 ...
 * Configuring with: -prefix /usr -bindir /usr/lib64/qt5/bin -headerdir /usr/include/qt5 -libdir /usr/lib64 -archdatadir /usr/lib64/qt5 -plugindir /usr/lib64/qt5/plugins -libexecdir /usr/lib64/qt5/libexec -importdir /usr/lib64/qt5/imports -qmldir /usr/lib64/qt5/qml -datadir /usr/share/qt5 -docdir /usr/share/doc/qt-5.9.2 -translationdir /usr/share/qt5/translations -sysconfdir /etc/xdg -examplesdir /usr/share/qt5/examples -testsdir /usr/share/qt5/tests -release -no-separate-debug-info -no-optimized-tools -opensource -confirm-license -shared -accessibility -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -qml-debug -pkg-config -system-zlib -system-pcre -system-doubleconversion -no-mtdev -no-journald -no-syslog -no-libpng -no-libjpeg -no-freetype -no-harfbuzz -no-openssl -no-libproxy -no-xkbcommon-x11 -no-xkbcommon-evdev -no-xinput2 -no-xcb-xlib -glib -no-gtk -nomake examples -nomake tests -no-compile-examples -no-rpath -verbose -no-cups -no-evdev -no-tslib -no-icu -no-fontconfig -no-dbus -no-strip -no-pch -no-ltcg -no-xcb -no-eglfs -no-kms -no-gbm -no-directfb -no-linuxfb -no-mirclient -no-xkb -sm -qreal double -no-opengl -no-egl -no-libinput -system-proxies -no-warnings-are-errors -no-icu -iconv -no-journald
Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH,
and QMAKEFEATURES environment variables prior to building Qt.
 * ERROR: dev-qt/qtcore-5.9.2::gentoo failed (configure phase):
 *   configure failed

The attached patch to the ebuild enables compiling in presence of the variables.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-10-09 13:11:11 UTC
From configure:
if [ -n "$QMAKESPEC" ] || [ -n "$XQMAKESPEC" ] || \
        [ -n "$QMAKEPATH" ] || [ -n "$QMAKEFEATURES" ]; then
    echo >&2 "Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH,"
    echo >&2 "and QMAKEFEATURES environment variables prior to building Qt."
    exit 1
fi
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-10-09 13:17:07 UTC
Created attachment 498212 [details, diff]
0001-qt5-build.eclass-unset-variables-that-if-set-cause-c.patch

Since configure is called called by all qtbase packages, I think we should unset in the eclass instead. Please review attached patch.
Comment 3 Larry the Git Cow gentoo-dev 2017-10-10 11:13:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=bba86bf1171f811e5f8fe04b305d35b01f5f9a5a

commit bba86bf1171f811e5f8fe04b305d35b01f5f9a5a
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-10-09 13:14:46 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2017-10-10 11:13:19 +0000

    qt5-build.eclass: unset variables that, if set, cause configure to fail
    
    Bug: https://bugs.gentoo.org/633838

 eclass/qt5-build.eclass | 5 +++++
 1 file changed, 5 insertions(+)}
Comment 4 Larry the Git Cow gentoo-dev 2017-10-10 11:15:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f1f66749b20415bd5f172e06f6d30fce413e97

commit d9f1f66749b20415bd5f172e06f6d30fce413e97
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-10-09 13:14:46 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2017-10-10 11:15:46 +0000

    qt5-build.eclass: unset variables that, if set, cause configure to fail
    
    Closes: https://bugs.gentoo.org/633838

 eclass/qt5-build.eclass | 5 +++++
 1 file changed, 5 insertions(+)