Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2008 09:32:38 GMT
From:      Volker Werth <volker@vwsoft.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/126820: [patch] devel/qt4-moc refuses to configure/compile
Message-ID:  <200808250932.m7P9Wcp3006088@www.freebsd.org>
Resent-Message-ID: <200808250940.m7P9e7jX017662@freefall.freebsd.org>

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

>Number:         126820
>Category:       ports
>Synopsis:       [patch] devel/qt4-moc refuses to configure/compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 25 09:40:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Volker Werth
>Release:        7-STABLE
>Organization:
>Environment:
>Description:
qt4-moc does not configure/compile out of the box:

===>  Configuring for qt4-moc-4.4.1
/bin/cp /usr/ports/devel/qt4-moc/../../devel/qt4/files/configure /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/../../../
/usr/bin/sed -i.bak -e 's|target.path.*|target.path=/usr/local/bin|g'  -e 's|^TARGET.*|TARGET=moc-qt4|g'  /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/moc.pro
/bin/mkdir -p /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/../../../mkspecs
/bin/ln -sf /usr/local/bin/qmake-qt4 /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/../../../bin/qmake

This is the Qt/X11 Open Source Edition.


   The specified system/compiler is not supported:

      /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/mkspecs/freebsd-g++

   Please see the README file for a complete list.

===>  Script "configure" failed unexpectedly.

work/*/mkspec is empty at that point but must have been populated with the file LOCALBASE/share/qt4/mkspecs/freebsd-g++
>How-To-Repeat:
cd /usr/ports/devel/qt4-moc; make
>Fix:
attached patch (Makefile change only) symlinks the directory share/qt4/mkspecs/freebsd-g++ at pre-configure time

Patch attached with submission follows:

--- devel/qt4-moc/Makefile.orig	2008-08-25 11:21:23.000000000 +0200
+++ devel/qt4-moc/Makefile	2008-08-25 11:22:35.000000000 +0200
@@ -49,6 +49,7 @@
 			-e 's|^TARGET.*|TARGET=moc-qt4|g' \
 		${WRKSRC}/${PORTNAME}.pro
 	${MKDIR} ${WRKSRC}/../../../mkspecs
+	${LN} -sf ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++ ${WRKSRC}/../../../mkspecs/
 	${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../../bin/qmake
 
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



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