Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2009 09:28:31 +0300
From:      Marin Atanasov <dnaeon@gmail.com>
To:        freebsd-ports@freebsd.org
Cc:        kde@freebsd.org
Subject:   x11-toolkits/qt4-gui fails to install - solution
Message-ID:  <717f7a3e0909172328u3c3ee54al3091a1ec9fdb7f2b@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I've been upgrading my ports using portmaster today, but during upgrade of
qt4-gui the install process fails.

Here's the output that I get when I try to install x11-toolkits/qt4-gui

<... snip... >

===>  Configuring for qt4-gui-4.5.2_1
/bin/cp /usr/ports/x11-toolkits/qt4-gui/../../devel/qt4/files/configure
/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../../
/bin/mkdir -p
/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../../mkspecs
/bin/ln -sf /usr/local/bin/qmake-qt4
/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../../bin/qmake
/bin/ln -sf /usr/local/bin/moc-qt4
/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../../bin/moc
/bin/ln -sf /usr/local/bin/rcc
/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../../bin/rcc
/bin/ln -sf /usr/local/bin/uic-qt4
/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../../bin/uic

   The specified system/compiler is not supported:


/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/mkspecs/freebsd-g++

   Please see the README file for a complete list.

===>  Script "configure" failed unexpectedly.
Please report the problem to kde@FreeBSD.org [maintainer] and attach the
"/usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.5.2/src/gui/../..//config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt4-gui.

Searching and found a similar problem already reported -
http://www.freebsd.org/cgi/query-pr.cgi?pr=126820

Applying the following patch solves the issue:

--- Makefile.orig       2009-09-18 09:16:17.000000000 +0300
+++ Makefile    2009-09-18 09:23:17.000000000 +0300
@@ -87,7 +87,7 @@
 pre-configure:
        ${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
        ${MKDIR} ${WRKSRC}/../../mkspecs
-       ${LN} -sf ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
${WRKSRC}/../../../mkspecs/
+       ${LN} -sf ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
${WRKSRC}/../../mkspecs/
        ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../bin/qmake
        ${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/../../bin/moc
        ${LN} -sf ${LOCALBASE}/bin/rcc ${WRKSRC}/../../bin/rcc

Regards,

-- 
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?717f7a3e0909172328u3c3ee54al3091a1ec9fdb7f2b>